TrackChangesTest::User Load (6.0ms) SELECT "users".* FROM "users" ActiveRecord::ActiveRecordError: ERROR: relation "users" does not exist Position: 33: SELECT "users".* FROM "users" SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users ActiveRecord::ActiveRecordError: no such table: users: SELECT users.* FROM users SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  TrackChangesTest::User Load (1.0ms) SELECT users.* FROM users ActiveRecord::ActiveRecordError: no such table: users: SELECT users.* FROM users SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  TrackChangesTest::User Load (1.0ms) SELECT users.* FROM users ActiveRecord::ActiveRecordError: no such table: users: SELECT users.* FROM users SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  TrackChangesTest::User Load (1.0ms) SELECT users.* FROM users ActiveRecord::ActiveRecordError: no such table: users: SELECT users.* FROM users SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users ActiveRecord::ActiveRecordError: no such table: users: SELECT users.* FROM users 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 (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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM 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 (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 (3.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' TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts 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 (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 (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' TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM 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 (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' TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts 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 (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 (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' TrackChangesTest::Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::User Load (1.0ms) SELECT users.* FROM users 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 (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 (5.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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' TrackChangesTest::Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users 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 (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 (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 (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' TrackChangesTest::Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users 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 (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 (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' TrackChangesTest::Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users SQL (2.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 (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 (6.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' TrackChangesTest::Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users 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 (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 (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 (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' TrackChangesTest::Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::User Load (0.0ms) SELECT users.* FROM users TrackChangesTest::Audit Load (1.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = NULL AND audits.audited_type = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 15:58:35', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' 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 (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 (1.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 (104.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 (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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 15:59:00', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (4.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) TrackChangesTest::Audit Load (0.0ms) SELECT audits.id, audits.audited_id, audits.audited_type, audits.user_id, audits.change_set, audits.created_at FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') 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 (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 (2, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:00:13', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (4.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 2) Audit Load (0.0ms) SELECT audits.id, audits.audited_id, audits.audited_type, audits.user_id, audits.change_set, audits.created_at FROM audits WHERE (audits.audited_id = 2 AND audits.audited_type = 'TrackChangesTest::Post') LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 2 AND audits.audited_type = 'TrackChangesTest::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 (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 (8.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 (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 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:00:27', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (10.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (0.0ms) SELECT audits.id, audits.audited_id, audits.audited_type, audits.user_id, audits.change_set, audits.created_at FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' 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 (1, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:01:13', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (4.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (1.0ms) SELECT audits.id, audits.audited_id, audits.audited_type, audits.user_id, audits.change_set, audits.created_at FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (6.0ms) DROP TABLE users SQL (8.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' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:02:08', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (4.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (1.0ms) SELECT audits.id, audits.audited_id, audits.audited_type, audits.user_id, audits.change_set, audits.created_at FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (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 (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 (0.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:02:39', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (4.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (0.0ms) SELECT audits.id, audits.audited_id, audits.audited_type, audits.user_id, audits.change_set, audits.created_at FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (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 (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' Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:03:14', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (5.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 = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (18.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 (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:03:34', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' SQL (4.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 = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (9.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 (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' Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:04:05', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (5.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (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 (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 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:04:51', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (5.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 = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') 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 (105.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 (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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:08:50', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (6.0ms) UPDATE posts SET title = 'Title Changed' WHERE (posts.id = 1) Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (1.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (6.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 (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 (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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:11:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 SQL (4.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 = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (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' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:15:55', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title changed ', '2010-08-19 16:15:55', 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 = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (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 (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' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:17:55', 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 16:17:55', 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 = 'TrackChangesTest::Post') ORDER BY audits.created_at DESC LIMIT 1 SQL (0.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'TrackChangesTest::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 (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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.0ms) DROP TABLE posts SQL (9.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 (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' Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:18:35', 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 16:18:35', 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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (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 (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 (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' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:19:07', 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 16:19: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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (6.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 (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' Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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 (1, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 16:47:02', 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 16:47: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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (20.0ms) DROP TABLE audits SQL (67.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 (8.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 (38.0ms) DROP TABLE users SQL (107.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 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 (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 (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' Audit Load (1.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::Post') SQL (1.0ms) INSERT INTO users (name) VALUES ('John Public') SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' 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 (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 (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 17:39: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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 17:39: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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (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 (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 (5.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 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 (13.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 (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 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 (7.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 (104.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 (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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' 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 (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 (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 (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 (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 17:44:25', 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 (1.0ms) INSERT INTO audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 17:44:25', 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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (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 (11.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 (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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 (1, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 17:45:10', 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 17:45:10', 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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (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 (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (5.0ms) DROP TABLE users SQL (9.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' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (1.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 17:49: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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 17:49: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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (13.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 (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 (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 (0.0ms) SELECT version FROM schema_migrations SQL (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (0.0ms) SELECT audits.* FROM audits TrackChangesTest::Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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 = 'TrackChangesTest::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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 17:51:54', 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, 'TrackChangesTest::Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - Test Post - Title Changed ', '2010-08-19 17:51:54', 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 = 'TrackChangesTest::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 = 'TrackChangesTest::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 (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 (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' Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (0.0ms) SELECT posts.* FROM posts TrackChangesTest::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-08-19 17:53: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-19 17:53:20', 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 (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 (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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' Audit Load (1.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 (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-19 17:53: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 (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-19 17:53: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 (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 (6.0ms) DROP TABLE audits SQL (16.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 (6.0ms) DROP TABLE users SQL (8.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' 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 (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-19 17:59:13', 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-08-19 17:59:13', 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 (85.0ms) DROP TABLE audits SQL (19.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 (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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (9.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 (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'  Audit Load (1.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 (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-08-19 18:01:18', 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-19 18:01:18', 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') 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 (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.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 (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  Audit Load (0.0ms) SELECT audits.* FROM audits 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 (2, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Test Post body: - - Hello, world! ', '2010-08-19 18:02: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 = 2) 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 - Title Changed ', '2010-08-19 18:02:45', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Audit Load (0.0ms) SELECT audits.* FROM audits WHERE (audits.audited_id = 2 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 = 2 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 (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 (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 (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 (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 (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'  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 (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) 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-19 18:03:22', 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-19 18:03:22', 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 (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 (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 (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 (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 (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-19 18:04: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"} Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:04:11', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 32ms 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 (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 (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-19 18:04: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-19 18:04:11', 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 (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 (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 (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 (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 (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 (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-19 18:05:03', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:05:03', 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 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 (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'users' SQL (2.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-19 18:05:03', 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-19 18:05: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 (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 (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 (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 (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 (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-19 18:05:54', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:05:54', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 34ms 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 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 (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 (0.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-19 18:05:54', 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-19 18:05:54', 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') 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 (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 (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 (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 (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 (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 (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-19 18:08:00', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:08:00', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 34ms 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 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-19 18:08:00', 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 (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-19 18:08:00', 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. 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 (7.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 (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 (6.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 (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 (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-19 18:08:16', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:08:16', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 38ms 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 Audit Load (1.0ms) SELECT audits.* FROM audits Post Load (1.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 (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-19 18:08:16', 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-19 18:08:17', 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 (5.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 (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 (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 (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 (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 audits (audited_id, audited_type, change_set, created_at, user_id) VALUES (1, 'Post', '--- !map:ActiveSupport::HashWithIndifferentAccess title: - - Hello body: - - Hello World ', '2010-08-19 18:11:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:11:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' 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 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-19 18:11:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' 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) 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-19 18:11: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-19 18:11: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') 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 (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 (7.0ms) DROP TABLE users SQL (7.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 (6.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 (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 (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 (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-19 18:13:56', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:13:56', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 34ms 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) 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-19 18:13:56', 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"}, "id"=>"1"} Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:13:57', 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 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 (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-19 18:13:57', 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-19 18:13:57', NULL) SQL (2.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 (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 (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 (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 (1.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 (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 (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 (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-19 18:15: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"} Completed in 2ms 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-19 18:15:33', 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 (0.0ms) INSERT INTO users (name) VALUES ('Someone Else') SQL (1.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"} Completed in 1ms 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 (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-19 18:15: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-19 18:15:34', 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 (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 (6.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 (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 (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 (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 (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-19 18:15:59', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Processing by PostsController#update as HTML Parameters: {"post"=>{"title"=>"Changed"}, "id"=>"1"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:15:59', 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 (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 (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-19 18:15:59', 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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 18:15:59', 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 (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 (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 (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-19 18:16:00', NULL) SQL (2.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-19 18:16:00', 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 (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (40.0ms) DROP TABLE audits SQL (80.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 (29.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 (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-08-19 21:44: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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 21:44:39', 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 (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-19 21:44:39', 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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 21:44:39', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 53ms 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 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 (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 (10.0ms) DROP TABLE posts SQL (15.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 (8.0ms) DROP TABLE users SQL (8.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 (38.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 (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' 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-19 21:46: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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id IS NULL) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 21:46:37', 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-19 21:46:37', NULL) SQL (0.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 (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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-08-19 21:46:37', 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 (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 (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-19 21:46:37', NULL) SQL (2.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-19 21:46: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 (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 (6.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 (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 (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-19 21:47:38', 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 (1.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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 21:47:39', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' 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 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 (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 (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 (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 (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-19 21:48:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 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-19 21:48:37', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 35ms 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 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 (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 (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 (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 (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-19 21:49:54', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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 (1.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"} User Load (1.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (1.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 INSIDE CurrentUserFilter 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-19 21:49:54', NULL) SQL (1.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 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 (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 (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 (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-19 21:51:17', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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"} User Load (0.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 INSIDE CurrentUserFilter __track_changes_to_models returned post getting ivar :post (post) 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-19 21:51:17', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 38ms 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 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 (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 (8.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 (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-19 21:52:15', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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"} User Load (1.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 INSIDE CurrentUserFilter __track_changes_to_models returned post getting ivar :post (post) 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-19 21:52:15', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 37ms 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 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 (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 (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 (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 (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-19 21:52:56', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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"} User Load (1.0ms) SELECT users.* FROM users WHERE (users.id = 1) LIMIT 1 Post Load (0.0ms) SELECT posts.* FROM posts WHERE (posts.id = 1) LIMIT 1 INSIDE CurrentUserFilter __track_changes_to_models returned post Controller is a PostsController getting ivar :post (post) 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-19 21:52:56', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 37ms 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 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 (6.0ms) DROP TABLE audits SQL (34.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 (29.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 (28.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 (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-19 21:53:51', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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 INSIDE CurrentUserFilter __track_changes_to_models returned post Controller is a PostsController getting ivar :post (post) 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-19 21:53:51', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 38ms 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 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 (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 (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 (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 (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-19 21:55:05', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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 (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 INSIDE CurrentUserFilter __track_changes_to_models returned post Controller is a PostsController getting ivar :post (post) Instance variable for nil received Completed in 15ms 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 (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 (5.0ms) DROP TABLE posts SQL (15.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 (27.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 (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-19 21:55:52', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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 (1.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 INSIDE CurrentUserFilter __track_changes_to_models returned post Controller is a PostsController getting ivar :post (post) Instance variable for # received Completed in 14ms 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 (24.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 (11.0ms) DROP TABLE users SQL (7.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 (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-19 21:56:19', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' STARTING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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 INSIDE CurrentUserFilter __track_changes_to_models returned post Controller is a PostsController getting ivar :post (post) Instance variable for # received 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-19 21:56:19', 1) 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 (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 ENDING TEST>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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 (1.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 (5.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 (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 (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-19 21:57:18', 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-19 21:57:18', 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 (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 (2.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-19 21:57:18', 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-19 21:57:18', 1) 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 (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 (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-19 21:57:18', NULL) SQL (2.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-19 21:57:18', 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 (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 (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 (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 (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 (0.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (4.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 (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-19 21:58:42', 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-19 21:58:42', 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 (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-19 21:58:42', 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 (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-19 21:58:42', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 53ms 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-19 21:58:42', 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 (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 (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-19 21:58:43', 1) SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 82ms 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 (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-19 21:58:43', 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-19 21:58:43', 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) 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 (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.0ms) CREATE TABLE schema_migrations (version VARCHAR(255) NOT NULL) SQL (0.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = 'schema_migrations' AND type = 'index' SQL (4.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 (1.0ms) SELECT version FROM schema_migrations SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'schema_migrations' SQL (8.0ms) INSERT INTO schema_migrations (version) VALUES ('0') 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 (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 (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 (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-19 22:00: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 (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' 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-19 22:00:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 46ms 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 (4.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-19 22:00:49', 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 (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-19 22:00:49', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 72ms 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-19 22:00:49', 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 (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-19 22:00:49', 1) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 83ms 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 (2.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-19 22:00:49', 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-19 22:00:50', 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 (2.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 (7.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 (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 (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 (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 (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-19 22:01:26', 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-19 22:01:26', 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 (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-19 22:01:26', 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-19 22:01:26', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 52ms 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 (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-19 22:01:26', 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 (1.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-19 22:01:26', 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 (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 (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-08-19 22:01:27', 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-19 22:01:27', 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') 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 (50.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 (63.0ms) DROP TABLE posts SQL (56.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 (54.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 (49.0ms) DROP TABLE audits SQL (8.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 (52.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 (13.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 (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-19 22:02:14', 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 (1.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-19 22:02:14', 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 (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-19 22:02:14', 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-19 22:02:14', NULL) SQL (1.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 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-19 22:02:14', 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 (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-19 22:02:14', 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 (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 (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-19 22:02:14', 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-19 22:02:14', 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. 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 (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 (27.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 (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 (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-19 22:02:41', 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-19 22:02:41', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 46ms 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 (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-19 22:02:41', 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 (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-19 22:02:41', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 53ms 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-19 22:02:41', 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 (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-08-19 22:02:41', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 81ms 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 (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-08-19 22:02:41', 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-19 22:02:41', 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') 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 (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 (0.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 (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 (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 (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 (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 (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-08-19 22:03:40', 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-19 22:03:40', 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 (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 (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-19 22:03:40', 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 (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 (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-19 22:03:40', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 52ms 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 (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-08-19 22:03:40', 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 (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-19 22:03:40', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 82ms 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 (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-19 22:03:40', 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-19 22:03:40', 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 (2.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 (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 (25.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 (1.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (36.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 (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 (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-19 22:04:00', 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-19 22:04:01', 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 (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) 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-19 22:04:01', 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-19 22:04:01', NULL) SQL (1.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 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-19 22:04:01', 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 (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 (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-19 22:04:01', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 81ms 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 (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-19 22:04:01', 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-19 22:04:01', 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. 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 (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 (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 (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 (6.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 (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-19 22:04:21', 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-19 22:04:21', 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 (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 (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) 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-19 22:04:21', 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 (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 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-19 22:04:21', 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 (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-19 22:04:21', 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 (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-19 22:04:22', 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 (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 (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-19 22:04:22', 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-19 22:04:22', 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 (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 (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 (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 (8.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 (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 (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 (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-19 22:05:28', 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-19 22:05:28', 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 (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) 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-19 22:05:28', 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 (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-19 22:05:28', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 67ms 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-19 22:05:28', 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-19 22:05:28', 1) SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 99ms 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 (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 (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-19 22:05:28', 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-19 22:05:28', 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') 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 (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 (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 (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 (21.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (6.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 (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 (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-19 22:05:59', 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-19 22:05:59', 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-19 22:05:59', 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-19 22:05:59', NULL) SQL (1.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 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-19 22:05:59', 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 (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 (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-19 22:06:00', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 101ms 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 (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-19 22:06:00', 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-08-19 22:06:00', 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') 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 (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 (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 (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 (39.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 (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 (8.0ms) DROP TABLE users SQL (41.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-08-19 22:07:08', 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 (1.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-19 22:07:08', 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 (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-19 22:07:08', 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 (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-08-19 22:07:08', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 68ms 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-19 22:07: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-19 22:07:09', 1) SQL (4.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 109ms 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-08-19 22:07:09', NULL) SQL (1.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-19 22:07: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 (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 (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 (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 (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 (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 (105.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 (7.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 (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-19 22:07: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 (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-19 22:07:33', 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 (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-19 22:07:33', 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-19 22:07:33', NULL) SQL (1.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 71ms 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-19 22:07:33', NULL) SQL (0.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 (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-08-19 22:07:33', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 100ms 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 (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-19 22:07:33', 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-19 22:07:33', 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. SQL (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.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 (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 (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 (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 (1.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  SQL (6.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 (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-19 22:08: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 (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-19 22:08:34', 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 (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 (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) 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-19 22:08: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 (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-19 22:08:34', 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 (2.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-19 22:08:34', 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 (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 (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-19 22:08:34', 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 (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 (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-19 22:08: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 (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-19 22:08: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') 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 (7.0ms) DROP TABLE audits SQL (33.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 (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 (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 (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 (1.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 (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' 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-19 22:10: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 (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-19 22:10:34', 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 (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-19 22:10:34', 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 (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-08-19 22:10:34', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 71ms 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-19 22:10: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 (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 (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-19 22:10:34', 1) SQL (2.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 105ms 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 (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 (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-19 22:10: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-19 22:10:34', 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 (9.0ms) DROP TABLE audits SQL (35.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 (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 (39.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 (25.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-19 22:45:34', 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 (1.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-19 22:45:34', 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-19 22:45:34', 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 (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-08-19 22:45:34', 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 (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-19 22:45:34', 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 (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-19 22:45:34', 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 (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-08-19 22:45: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-19 22:45:34', 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 (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 (1.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 (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 (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 (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 (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-19 23:46:01', 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-08-19 23:46:01', 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 (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 (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-19 23:46:01', 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-19 23:46:01', NULL) SQL (0.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 66ms 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-19 23:46:01', 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 (1.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-08-19 23:46:01', 1) SQL (3.0ms) SELECT SEQ FROM SQLITE_SEQUENCE WHERE NAME = 'audits' Redirected to http://test.host/posts Completed 302 Found in 89ms 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 (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-19 23:46:01', 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-19 23:46:01', 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 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 (3.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (2.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 (3.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 (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 (2.0ms) DROP TABLE posts SQL (5.0ms) CREATE TABLE posts (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, title VARCHAR(255), body text)  SQL (3.0ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' SQL (2.0ms) DROP TABLE users SQL (2.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 (2.0ms) SELECT version FROM schema_migrations SQL (3.0ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  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:26:26', 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-20 23:26:26', 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 (3.0ms) SELECT COUNT(*) AS count_id FROM audits WHERE (audits.audited_id = 1 AND audits.audited_type = 'Post') Audit Load (3.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:26:26', NULL) SQL (2.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 (2.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:26:27', NULL) SQL (0.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 (3.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:26:27', 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-20 23:26:27', 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 (3.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-08-20 23:26:27', 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-08-20 23:26:27', 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')