SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) CREATE TABLE schema_migrations (version VARCHAR(255) NOT NULL) SQL (3.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = 'schema_migrations' AND type = 'index' SQL (2.0ms) CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations (version) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (2.0ms) SELECT version FROM schema_migrations SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'schema_migrations' SQL (7.0ms) INSERT INTO schema_migrations (version) VALUES ('0') SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (3.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-20 23:38:36', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (3.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-20 23:38:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 60ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-20 23:38:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-20 23:38:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 50ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (3.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-20 23:38:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (3.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-20 23:38:37', 1) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 90ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-20 23:38:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (2.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-20 23:38:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Creating scope :desc. Overwriting existing method Audit.desc. SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (72.0ms) DROP TABLE audits SQL (10.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (33.0ms) DROP TABLE users SQL (6.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (6.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (13.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:20:22', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:20:22', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 45ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:20:23', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:20:23', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 63ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:20:23', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:20:23', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 96ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:20:23', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:20:23', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Creating scope :desc. Overwriting existing method Audit.desc. SQL (2.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (7.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:22:10', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:22:11', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 43ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:22:11', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:22:11', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 73ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:22:11', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:22:11', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 79ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:22:11', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:22:11', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (10.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:42:19', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:42:19', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 41ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:42:19', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:42:19', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 61ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:42:19', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:42:20', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 85ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:42:20', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:42:20', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (3.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:43:23', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:43:23', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 43ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:43:23', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:43:23', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 59ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:43:23', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (1.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:43:24', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 98ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:43:24', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:43:24', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (3.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (2.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (103.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE users SQL (7.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (1.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (9.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:43:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:43:45', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:43:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:43:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 59ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:43:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (1.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:43:46', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 80ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:43:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (2.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:43:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (1.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:44:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:44:49', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 49ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:44:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:44:49', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 73ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:44:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:44:49', 1) SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 91ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:44:50', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:44:50', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (6.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (8.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE users SQL (6.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:45:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:45:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 41ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:45:25', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:45:25', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 61ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:45:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:45:26', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 85ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (2.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:45:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:45:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Creating scope :desc. Overwriting existing method Audit.desc. SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (18.0ms) DROP TABLE posts SQL (11.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE users SQL (47.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:48:44', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 00:48:44', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:48:44', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:48:44', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 62ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 00:48:44', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 00:48:44', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 80ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 00:48:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 00:48:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE audits SQL (53.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (105.0ms) DROP TABLE posts SQL (50.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (55.0ms) DROP TABLE users SQL (42.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (22.0ms) DROP TABLE audits SQL (120.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:12:02', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 01:12:02', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 49ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:12:02', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 01:12:02', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 63ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:12:02', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 01:12:02', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 77ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 01:12:03', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 01:12:03', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. Creating scope :desc. Overwriting existing method Audit.desc. SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (8.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) Redirected to http://test.host/posts Completed 302 Found in 21ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (14.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) Redirected to http://test.host/posts Completed 302 Found in 33ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (8.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE audits SQL (7.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (7.0ms) DROP TABLE users SQL (8.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) Redirected to http://test.host/posts Completed 302 Found in 41ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) Redirected to http://test.host/posts Completed 302 Found in 20ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) Redirected to http://test.host/posts Completed 302 Found in 36ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (3.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (6.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:45:50', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 01:45:50', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:45:50', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 01:45:50', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 62ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:45:51', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 01:45:51', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 97ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 01:45:51', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 01:45:51', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Creating scope :desc. Overwriting existing method Audit.desc. SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (8.0ms) DROP TABLE audits SQL (15.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (10.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (12.0ms) DROP TABLE users SQL (8.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (10.0ms) DROP TABLE audits SQL (9.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:53:08', NULL) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 01:53:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 47ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:53:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 01:53:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 60ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 01:53:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 01:53:08', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 96ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 01:53:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 01:53:08', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (8.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (19.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (1.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (3.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:37:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 22:37:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 54ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:37:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 22:37:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 78ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:37:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 22:37:25', 1) SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 123ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 22:37:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 22:37:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (10.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (2.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (3.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (106.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:38:33', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 22:38:33', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 73ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:38:34', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 22:38:34', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 91ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:38:34', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 22:38:34', 1) SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 113ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 22:38:34', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 22:38:34', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (3.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:39:07', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-08-24 22:39:07', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 54ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:39:08', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 22:39:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 78ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-24 22:39:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-08-24 22:39:08', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 123ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-24 22:39:08', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-24 22:39:08', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (53.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (28.0ms) DROP TABLE users SQL (24.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:14:52', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:14:52', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 43ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:14:52', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:14:52', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 76ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:14:53', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (1.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:14:53', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 87ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (22.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:14:53', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:14:53', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:14:53', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (104.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:15:24', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:15:24', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:15:24', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:15:24', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 57ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:15:24', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:15:25', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 93ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:15:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (2.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:15:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:15:25', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (30.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:18:20', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 124ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:18:20', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 56ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:18:20', 1) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 65ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (2.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:18:20', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (103.0ms) DROP TABLE users SQL (6.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (104.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (7.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE users SQL (64.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:19:35', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:19:36', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:19:36', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:19:36', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 59ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:19:36', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:19:36', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 110ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (1.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:19:36', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:19:36', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:19:36', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (24.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:20:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:20:37', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 44ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:20:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:20:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 58ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:20:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:20:37', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 104ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (1.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:20:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:20:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (3.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (7.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:21:45', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:21:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 44ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:21:45', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:21:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 61ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:21:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:21:46', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 99ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:21:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:21:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:21:46', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:22:38', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:22:38', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 41ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:22:38', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:22:38', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 60ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:22:38', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (1.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:22:39', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 95ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:22:39', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:22:39', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:22:39', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (1.0ms) SELECT audits.* FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 57ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 17:26:45', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 92ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 17:26:45', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (1.0ms) SELECT audits.* FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 18:23:41', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 18:23:42', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 40ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 18:23:42', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:23:42', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 58ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-09-02 18:23:42', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (14.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:23:42', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 84ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 18:23:42', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 18:23:42', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-09-02 18:23:42', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (1.0ms) SELECT audits.* FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) Completed in 41ms SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) Completed in 15ms SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) Completed in 27ms Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (2.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (1.0ms) SELECT audits.* FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (3.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (104.0ms) DROP TABLE users SQL (6.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user Completed in 52ms SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user Completed in 15ms SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user Completed in 13ms Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (1.0ms) SELECT audits.* FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 18:29:07', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 160ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:29:07', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 47ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:29:07', 1) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 71ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits Post Load (2.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 18:29:07', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (1.0ms) SELECT audits.* FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (6.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE users SQL (6.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (38.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 18:29:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 217ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:29:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 43ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:29:49', 1) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 47ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (2.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (2.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 18:29:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (0.0ms) SELECT audits.* FROM audits SQL (2.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 18:30:02', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 156ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:30:02', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 42ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 18:30:02', 1) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 47ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (2.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 18:30:02', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (0.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (1.0ms) SELECT audits.* FROM audits SQL (2.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (11.0ms) DROP TABLE audits SQL (13.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (15.0ms) DROP TABLE posts SQL (8.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (7.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (5.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE posts SQL (6.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (6.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-02 19:01:29', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 190ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 19:01:29', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 57ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (2.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (1.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-02 19:01:29', 1) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 65ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (3.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (1.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-02 19:01:29', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (0.0ms) SELECT audits.* FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (10.0ms) DROP TABLE audits SQL (6.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE posts SQL (106.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE users SQL (4.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-15 17:29:44', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 158ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM (SELECT 1 FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post')) AS subquery Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-15 17:29:44', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 47ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (2.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-15 17:29:44', 1) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 36ms Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (3.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-15 17:29:44', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM (SELECT 1 FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post')) AS subquery SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (0.0ms) SELECT audits.* FROM audits SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (2.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (3, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess {} ', '2010-09-15 17:29:44', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL)  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255))  SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (5.0ms) DROP TABLE audits SQL (4.0ms) CREATE TABLE audits (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, audited_id integer(0) NOT NULL, audited_type VARCHAR(255) NOT NULL, user_id integer(0), change_set text NOT NULL, created_at DATETIME NOT NULL) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (4.0ms) DROP TABLE posts SQL (4.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.0ms) DROP TABLE users SQL (5.0ms) CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255)) SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed ', '2010-09-15 17:30:08', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 118ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM (SELECT 1 FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post')) AS subquery Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "id"=>"1", "user_id"=>nil} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-15 17:30:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 39ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello World', 'Hello') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (0.0ms) DELETE FROM users SQL (0.0ms) INSERT INTO users (name) VALUES ('ControllerTest') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed User Test"}, "user_id"=>1, "id"=>"1"} get_user User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 get_post Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 current_user SQL (0.0ms) UPDATE posts SET title = 'Changed User Test' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Hello - Changed User Test ', '2010-09-15 17:30:09', 1) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 43ms Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 Audit Load (2.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts User Load (0.0ms) SELECT users.* FROM users Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) SQL (0.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-09-15 17:30:09', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') ORDER BY audits.created_at DESC, audits.id DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM (SELECT 1 FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post')) AS subquery SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (0.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits Audit Load (0.0ms) SELECT audits.* FROM audits SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (1.0ms) INSERT INTO posts (body, title) VALUES ('Hello, world!', 'Test Post') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'posts' SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits