TrustyCms::Config Load (17.2ms) SELECT `config`.* FROM `config` TrustyCms::Config Load (1.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.title' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.8ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.title', 'TrustyCms CMS') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (2.1ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.parts' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.3ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.parts', 'Body,Extended') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'defaults.page.status' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('defaults.page.status', 'Draft') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (0.9ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'pagination.param_name' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('pagination.param_name', 'page') TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'pagination.per_page_param_name' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.5ms) INSERT INTO `config` (`key`, `value`) VALUES ('pagination.per_page_param_name', 'per_page') TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` TRANSACTION (0.9ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'admin.pagination.per_page' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('admin.pagination.per_page', '50') TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` TRANSACTION (1.3ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'site.title' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.5ms) INSERT INTO `config` (`key`, `value`) VALUES ('site.title', 'Your site title') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'site.host' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.1ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('site.host', 'www.example.com') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.2ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'user.allow_password_reset?' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.6ms) INSERT INTO `config` (`key`, `value`) VALUES ('user.allow_password_reset?', 'true') TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` TRANSACTION (1.5ms) COMMIT TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'session_timeout' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.1ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('session_timeout', '1209600') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.7ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.url' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.url', '/system/:attachment/:id/:style/:basename:no_original_style.:extension') TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.path' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.path', ':rails_root/public/system/:attachment/:id/:style/:basename:no_original_style.:extension') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.skip_filetype_validation' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.3ms) BEGIN TrustyCms::Config Create (0.2ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.skip_filetype_validation', 'true') TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` TRANSACTION (1.1ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.storage' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.3ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.storage', 'filesystem') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.2ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'paperclip.fog.public?' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.1ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('paperclip.fog.public?', 'true') TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` TRANSACTION (1.2ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_image_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_image_thumbnails?', 'true') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_video_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_video_thumbnails?', 'true') TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` TRANSACTION (1.1ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.create_pdf_thumbnails?' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.create_pdf_thumbnails?', 'true') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (0.7ms) COMMIT TrustyCms::Config Load (0.6ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.image' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.image', 'normal:size=640x640>|small:size=320x320>') TrustyCms::Config Load (0.2ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.8ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.video' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.video', 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.0ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.thumbnails.pdf' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.4ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.thumbnails.pdf', 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.9ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.max_asset_size' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.2ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.max_asset_size', '5') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.5ms) COMMIT TrustyCms::Config Load (0.4ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.display_size' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.1ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.display_size', 'normal') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (0.8ms) COMMIT TrustyCms::Config Load (0.5ms) SELECT `config`.* FROM `config` WHERE `config`.`key` = 'assets.insertion_size' ORDER BY `config`.`id` ASC LIMIT 1 TRANSACTION (0.1ms) BEGIN TrustyCms::Config Create (0.3ms) INSERT INTO `config` (`key`, `value`) VALUES ('assets.insertion_size', 'normal') TrustyCms::Config Load (0.3ms) SELECT `config`.* FROM `config` TRANSACTION (1.3ms) COMMIT  (5.0ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.5ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.4ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.4ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.4ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (4.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC  (0.2ms) SELECT GET_LOCK('6658685849647950510', 0)  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC Migrating to CreateTrustyTables (1)  (12.3ms) DROP TABLE IF EXISTS `config`  (9.4ms) CREATE TABLE `config` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key` varchar(40) DEFAULT '' NOT NULL, `value` varchar(255) DEFAULT '')  (8.2ms) CREATE UNIQUE INDEX `key` ON `config` (`key`)  (7.4ms) DROP TABLE IF EXISTS `pages`  (8.6ms) CREATE TABLE `pages` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `title` varchar(255), `slug` varchar(100), `breadcrumb` varchar(160), `class_name` varchar(25), `status_id` int DEFAULT 1 NOT NULL, `parent_id` int, `layout_id` int, `created_at` datetime, `updated_at` datetime, `published_at` datetime, `created_by` int, `updated_by` int)  (6.6ms) DROP TABLE IF EXISTS `page_parts`  (8.4ms) CREATE TABLE `page_parts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `filter` varchar(25), `content` text, `page_id` int)  (6.8ms) DROP TABLE IF EXISTS `snippets`  (9.1ms) CREATE TABLE `snippets` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100) DEFAULT '' NOT NULL, `filter` varchar(25), `content` text, `created_at` datetime, `updated_at` datetime, `created_by` int, `updated_by` int)  (9.9ms) CREATE UNIQUE INDEX `name` ON `snippets` (`name`)  (4.8ms) DROP TABLE IF EXISTS `layouts`  (7.9ms) CREATE TABLE `layouts` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `content` text, `created_at` datetime, `updated_at` datetime, `created_by` int, `updated_by` int)  (5.9ms) DROP TABLE IF EXISTS `users`  (8.9ms) CREATE TABLE `users` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(100), `email` varchar(255), `login` varchar(40) DEFAULT '' NOT NULL, `password` varchar(40), `admin` tinyint(1) DEFAULT FALSE NOT NULL, `developer` tinyint(1) DEFAULT FALSE NOT NULL, `created_at` datetime, `updated_at` datetime, `created_by` int, `updated_by` int, `salt` varchar(255))  (10.1ms) CREATE UNIQUE INDEX `login` ON `users` (`login`) TRANSACTION (0.3ms) BEGIN ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('1') TRANSACTION (0.8ms) COMMIT Migrating to InsertInitialData (2) TRANSACTION (0.2ms) BEGIN ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('2') TRANSACTION (0.8ms) COMMIT Migrating to RenameFilterColumn (4)  (7.9ms) ALTER TABLE `page_parts` RENAME COLUMN `filter` TO `filter_id`  (7.3ms) ALTER TABLE `snippets` RENAME COLUMN `filter` TO `filter_id` TRANSACTION (0.2ms) BEGIN ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('4') TRANSACTION (1.0ms) COMMIT Migrating to AddVirtualColumnToPage (5)  (8.0ms) ALTER TABLE `pages` ADD `virtual` tinyint(1) DEFAULT FALSE NOT NULL TRANSACTION (0.3ms) BEGIN ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('5') TRANSACTION (0.8ms) COMMIT Migrating to RemoveUserLoginIndex (6)  (5.9ms) DROP INDEX `login` ON `users` TRANSACTION (0.2ms) BEGIN ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('6') TRANSACTION (0.5ms) COMMIT Migrating to RemoveVirtualColumnFromPage (7)  (7.9ms) ALTER TABLE `pages` DROP COLUMN `virtual` TRANSACTION (0.2ms) BEGIN ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('7') TRANSACTION (1.0ms) COMMIT Migrating to AddVirtualColumnToPageAgain (8)  (9.0ms) ALTER TABLE `pages` ADD `virtual` tinyint(1) DEFAULT FALSE NOT NULL TRANSACTION (0.2ms) BEGIN ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('8') TRANSACTION (1.3ms) COMMIT Migrating to AddContentTypeFieldToLayout (9)  (17.3ms) ALTER TABLE `layouts` ADD `content_type` varchar(40) TRANSACTION (0.2ms) BEGIN ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('9') TRANSACTION (0.8ms) COMMIT Migrating to CreateSites (10)  (1.2ms) CREATE TABLE `sites` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `domain` varchar(255), `homepage_id` int)  (0.3ms) SELECT RELEASE_LOCK('6658685849647950510')  (0.3ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.7ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.5ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.4ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.4ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL  (0.4ms) SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set `legacy_connection_handling` to `false` in your application. The new connection handling does not support `connection_handlers` getter and setter. Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling (called from at /Users/greaves/Documents/Development/trusty-cms/spec/dummy/config/environment.rb:5)  (10.3ms) CREATE DATABASE `trusty_cms_dev` DEFAULT CHARACTER SET `utf8mb4`  (2.9ms) CREATE DATABASE `trusty_cms_test` DEFAULT COLLATE `utf8mb4_bin`