mover 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,14 +32,14 @@ We also want the article's comments to be archived when the article is.
32
32
  <pre>
33
33
  class Article < ActiveRecord::Base
34
34
  has_many :comments
35
- before_move_to :ArticleArchive do
35
+ before_move :ArticleArchive do
36
36
  comments.each { |c| c.move_to(CommentArchive) }
37
37
  end
38
38
  end
39
39
 
40
40
  class ArticleArchive < ActiveRecord::Base
41
41
  has_many :comments, :class_name => 'CommentArchive', :foreign_key => 'article_id'
42
- before_move_to :Article do
42
+ before_move :Article do
43
43
  comments.each { |c| c.move_to(Comment) }
44
44
  end
45
45
  end
@@ -59,7 +59,9 @@ Reserve a spot
59
59
  Before you create a record, you can "reserve a spot" on a table that you will move the record to later.
60
60
 
61
61
  <pre>
62
- ArticleArchive.create(:id => Article.reserve_id)
62
+ archive = ArticleArchive.new
63
+ archive.id = Article.reserve_id
64
+ archive.save
63
65
  </pre>
64
66
 
65
67
  Magic columns
@@ -11,17 +11,27 @@ module Mover
11
11
 
12
12
  module ClassMethods
13
13
 
14
- def after_move_to(to_class, &block)
15
- @after_move_to ||= []
16
- @after_move_to << [ to_class, block ]
14
+ def after_move(*to_class, &block)
15
+ @after_move ||= []
16
+ @after_move << [ to_class, block ]
17
17
  end
18
18
 
19
- def before_move_to(to_class, &block)
20
- @before_move_to ||= []
21
- @before_move_to << [ to_class, block ]
19
+ def before_move(*to_class, &block)
20
+ @before_move ||= []
21
+ @before_move << [ to_class, block ]
22
22
  end
23
23
 
24
- def move_to(to_class, conditions, instance=nil)
24
+ def after_copy(*to_class, &block)
25
+ @after_copy ||= []
26
+ @after_copy << [ to_class, block ]
27
+ end
28
+
29
+ def before_copy(*to_class, &block)
30
+ @before_copy ||= []
31
+ @before_copy << [ to_class, block ]
32
+ end
33
+
34
+ def move_to(to_class, conditions, instance=nil, copy = false)
25
35
  from_class = self
26
36
  # Conditions
27
37
  add_conditions! where = '', conditions
@@ -36,9 +46,17 @@ module Mover
36
46
  select << connection.quote(Time.now.utc)
37
47
  end
38
48
  # Callbacks
39
- collector = lambda { |(klass, block)| block if eval(klass.to_s) == to_class }
40
- before = (@before_move_to || []).collect(&collector).compact
41
- after = (@after_move_to || []).collect(&collector).compact
49
+ collector = lambda do |(classes, block)|
50
+ classes.collect! { |c| eval(c.to_s) }
51
+ block if classes.include?(to_class) || classes.empty?
52
+ end
53
+ if copy
54
+ before = (@before_copy || []).collect(&collector).compact
55
+ after = (@after_copy || []).collect(&collector).compact
56
+ else # move
57
+ before = (@before_move || []).collect(&collector).compact
58
+ after = (@after_move || []).collect(&collector).compact
59
+ end
42
60
  # Instances
43
61
  instances =
44
62
  if instance
@@ -63,11 +81,15 @@ module Mover
63
81
  FROM #{from_class.table_name}
64
82
  #{where}
65
83
  SQL
66
- connection.execute("DELETE FROM #{from_class.table_name} #{where}")
84
+ connection.execute("DELETE FROM #{from_class.table_name} #{where}") unless copy
67
85
  exec_callbacks.call after
68
86
  end
69
87
  end
70
-
88
+
89
+ def copy_to(to_class, conditions, instance=nil)
90
+ move_to(to_class, conditions, instance, true)
91
+ end
92
+
71
93
  def reserve_id
72
94
  id = nil
73
95
  transaction do
@@ -82,6 +104,10 @@ module Mover
82
104
  def move_to(to_class)
83
105
  self.class.move_to(to_class, "#{self.class.primary_key} = #{id}", self)
84
106
  end
107
+
108
+ def copy_to(to_class)
109
+ self.class.copy_to(to_class, "#{self.class.primary_key} = #{id}", self)
110
+ end
85
111
  end
86
112
  end
87
113
 
data/require.rb CHANGED
@@ -17,7 +17,7 @@ Require do
17
17
  name 'mover'
18
18
  homepage "http://github.com/winton/#{name}"
19
19
  summary "Move ActiveRecord records across tables like it ain't no thang"
20
- version '0.2.0'
20
+ version '0.2.1'
21
21
  end
22
22
 
23
23
  bin { require 'lib/mover' }
@@ -33,6 +33,7 @@ Require do
33
33
  rails_init { require 'lib/mover' }
34
34
 
35
35
  spec_helper do
36
+ require 'fileutils'
36
37
  gem(:active_wrapper)
37
38
  require 'require/spec_helper'
38
39
  require 'rails/init'
@@ -42,4 +43,9 @@ Require do
42
43
  require 'spec/fixtures/comment'
43
44
  require 'spec/fixtures/comment_archive'
44
45
  end
46
+
47
+ spec_rakefile do
48
+ gem(:rake)
49
+ gem(:active_wrapper) { require 'active_wrapper/tasks' }
50
+ end
45
51
  end
@@ -1,9 +1,7 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ require File.expand_path("#{File.dirname(__FILE__)}/../require")
2
+ Require.spec_rakefile!
3
3
 
4
4
  begin
5
- require 'active_wrapper/tasks'
6
-
7
5
  ActiveWrapper::Tasks.new(
8
6
  :base => File.dirname(__FILE__),
9
7
  :env => ENV['ENV']
@@ -1,6 +1,9 @@
1
1
  class Article < ActiveRecord::Base
2
2
  has_many :comments
3
- before_move_to :ArticleArchive do
3
+ before_move :ArticleArchive do
4
4
  comments.each { |c| c.move_to(CommentArchive) }
5
5
  end
6
+ before_copy :ArticleArchive do
7
+ comments.each { |c| c.copy_to(CommentArchive) }
8
+ end
6
9
  end
@@ -1,6 +1,9 @@
1
1
  class ArticleArchive < ActiveRecord::Base
2
2
  has_many :comments, :class_name => 'CommentArchive', :foreign_key => 'article_id'
3
- before_move_to :Article do
3
+ before_move :Article do
4
4
  comments.each { |c| c.move_to(Comment) }
5
5
  end
6
+ before_copy :Article do
7
+ comments.each { |c| c.copy_to(Comment) }
8
+ end
6
9
  end
@@ -7179,3 +7179,1742 @@ WARNING: Can't mass-assign these protected attributes: id
7179
7179
  SQL (0.1ms) DELETE FROM articles WHERE id = 7
7180
7180
  SQL (0.5ms) COMMIT
7181
7181
  Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 7) LIMIT 1
7182
+ SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
7183
+ SQL (0.3ms) SHOW TABLES
7184
+ SQL (0.2ms) SELECT version FROM schema_migrations
7185
+ SQL (0.2ms) SHOW TABLES
7186
+ SQL (0.1ms) SELECT version FROM schema_migrations
7187
+ Migrating to CreateFixtures (1)
7188
+ SQL (0.2ms) SHOW TABLES
7189
+ SQL (0.1ms) SELECT version FROM schema_migrations
7190
+ SQL (0.2ms) SHOW TABLES
7191
+ SQL (0.1ms) SELECT version FROM schema_migrations
7192
+ Migrating to CreateFixtures (1)
7193
+ SQL (30.4ms) DROP TABLE `articles`
7194
+ SQL (1.8ms) DROP TABLE `article_archives`
7195
+ SQL (26.8ms) DROP TABLE `comments`
7196
+ SQL (1.6ms) DROP TABLE `comment_archives`
7197
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
7198
+ SQL (0.4ms) SHOW TABLES
7199
+ SQL (0.2ms) SELECT version FROM schema_migrations
7200
+ SQL (0.2ms) SHOW TABLES
7201
+ SQL (0.2ms) SELECT version FROM schema_migrations
7202
+ Migrating to CreateFixtures (1)
7203
+ SQL (1.9ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7204
+ SQL (1.6ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7205
+ SQL (1.8ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7206
+ SQL (1.7ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7207
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
7208
+ Article Delete all (0.2ms) DELETE FROM `articles` 
7209
+ Article Columns (1.3ms) SHOW FIELDS FROM `articles`
7210
+ WARNING: Can't mass-assign these protected attributes: id
7211
+ SQL (0.1ms) BEGIN
7212
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
7213
+ SQL (0.5ms) COMMIT
7214
+ WARNING: Can't mass-assign these protected attributes: id
7215
+ SQL (0.1ms) BEGIN
7216
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
7217
+ SQL (0.5ms) COMMIT
7218
+ WARNING: Can't mass-assign these protected attributes: id
7219
+ SQL (0.1ms) BEGIN
7220
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
7221
+ SQL (0.4ms) COMMIT
7222
+ WARNING: Can't mass-assign these protected attributes: id
7223
+ SQL (0.1ms) BEGIN
7224
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
7225
+ SQL (0.4ms) COMMIT
7226
+ WARNING: Can't mass-assign these protected attributes: id
7227
+ SQL (0.1ms) BEGIN
7228
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
7229
+ SQL (0.5ms) COMMIT
7230
+ Comment Delete all (0.2ms) DELETE FROM `comments` 
7231
+ Comment Columns (1.3ms) SHOW FIELDS FROM `comments`
7232
+ WARNING: Can't mass-assign these protected attributes: id
7233
+ SQL (0.1ms) BEGIN
7234
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
7235
+ SQL (0.5ms) COMMIT
7236
+ WARNING: Can't mass-assign these protected attributes: id
7237
+ SQL (0.1ms) BEGIN
7238
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
7239
+ SQL (0.4ms) COMMIT
7240
+ WARNING: Can't mass-assign these protected attributes: id
7241
+ SQL (0.1ms) BEGIN
7242
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
7243
+ SQL (0.5ms) COMMIT
7244
+ WARNING: Can't mass-assign these protected attributes: id
7245
+ SQL (0.1ms) BEGIN
7246
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
7247
+ SQL (0.5ms) COMMIT
7248
+ WARNING: Can't mass-assign these protected attributes: id
7249
+ SQL (0.1ms) BEGIN
7250
+ Comment Create (0.4ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
7251
+ SQL (0.5ms) COMMIT
7252
+ ArticleArchive Columns (1.5ms) SHOW FIELDS FROM `article_archives`
7253
+ SQL (0.1ms) BEGIN
7254
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7255
+ CommentArchive Columns (1.4ms) SHOW FIELDS FROM `comment_archives`
7256
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7257
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7258
+ FROM comments
7259
+ WHERE (id = 1)
7260
+ 
7261
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
7262
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7263
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7264
+ FROM articles
7265
+ WHERE (id = 1)
7266
+ 
7267
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
7268
+ SQL (0.7ms) COMMIT
7269
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
7270
+ SQL (0.1ms) BEGIN
7271
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7272
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7273
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7274
+ FROM comments
7275
+ WHERE (id = 2)
7276
+ 
7277
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
7278
+ SQL (0.1ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7279
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7280
+ FROM articles
7281
+ WHERE (id = 2)
7282
+ 
7283
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
7284
+ SQL (0.5ms) COMMIT
7285
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `articles` 
7286
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comments` 
7287
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
7288
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
7289
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
7290
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
7291
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7292
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
7293
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7294
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
7295
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 2) LIMIT 1
7296
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
7297
+ SQL (0.6ms) SHOW TABLES
7298
+ SQL (0.1ms) SELECT version FROM schema_migrations
7299
+ SQL (0.2ms) SHOW TABLES
7300
+ SQL (0.1ms) SELECT version FROM schema_migrations
7301
+ Migrating to CreateFixtures (1)
7302
+ SQL (0.2ms) SHOW TABLES
7303
+ SQL (0.1ms) SELECT version FROM schema_migrations
7304
+ SQL (0.2ms) SHOW TABLES
7305
+ SQL (0.1ms) SELECT version FROM schema_migrations
7306
+ Migrating to CreateFixtures (1)
7307
+ SQL (1.6ms) DROP TABLE `articles`
7308
+ SQL (1.2ms) DROP TABLE `article_archives`
7309
+ SQL (1.1ms) DROP TABLE `comments`
7310
+ SQL (1.1ms) DROP TABLE `comment_archives`
7311
+ SQL (0.5ms) DELETE FROM schema_migrations WHERE version = '1'
7312
+ SQL (0.2ms) SHOW TABLES
7313
+ SQL (0.1ms) SELECT version FROM schema_migrations
7314
+ SQL (0.2ms) SHOW TABLES
7315
+ SQL (0.1ms) SELECT version FROM schema_migrations
7316
+ Migrating to CreateFixtures (1)
7317
+ SQL (2.0ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7318
+ SQL (1.6ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7319
+ SQL (1.8ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7320
+ SQL (1.8ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7321
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
7322
+ Article Delete all (0.2ms) DELETE FROM `articles` 
7323
+ WARNING: Can't mass-assign these protected attributes: id
7324
+ SQL (0.1ms) BEGIN
7325
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
7326
+ SQL (0.5ms) COMMIT
7327
+ WARNING: Can't mass-assign these protected attributes: id
7328
+ SQL (0.1ms) BEGIN
7329
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
7330
+ SQL (0.5ms) COMMIT
7331
+ WARNING: Can't mass-assign these protected attributes: id
7332
+ SQL (0.1ms) BEGIN
7333
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
7334
+ SQL (0.5ms) COMMIT
7335
+ WARNING: Can't mass-assign these protected attributes: id
7336
+ SQL (0.1ms) BEGIN
7337
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
7338
+ SQL (0.4ms) COMMIT
7339
+ WARNING: Can't mass-assign these protected attributes: id
7340
+ SQL (0.1ms) BEGIN
7341
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
7342
+ SQL (0.5ms) COMMIT
7343
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
7344
+ WARNING: Can't mass-assign these protected attributes: id
7345
+ SQL (0.1ms) BEGIN
7346
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
7347
+ SQL (0.5ms) COMMIT
7348
+ WARNING: Can't mass-assign these protected attributes: id
7349
+ SQL (0.1ms) BEGIN
7350
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
7351
+ SQL (0.5ms) COMMIT
7352
+ WARNING: Can't mass-assign these protected attributes: id
7353
+ SQL (0.1ms) BEGIN
7354
+ Comment Create (0.3ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
7355
+ SQL (0.5ms) COMMIT
7356
+ WARNING: Can't mass-assign these protected attributes: id
7357
+ SQL (0.1ms) BEGIN
7358
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
7359
+ SQL (0.5ms) COMMIT
7360
+ WARNING: Can't mass-assign these protected attributes: id
7361
+ SQL (0.1ms) BEGIN
7362
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
7363
+ SQL (0.4ms) COMMIT
7364
+ SQL (0.1ms) BEGIN
7365
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7366
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7367
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7368
+ FROM comments
7369
+ WHERE (id = 1)
7370
+ 
7371
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
7372
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7373
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7374
+ FROM articles
7375
+ WHERE (id = 1)
7376
+ 
7377
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
7378
+ SQL (0.5ms) COMMIT
7379
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
7380
+ SQL (0.1ms) BEGIN
7381
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7382
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7383
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7384
+ FROM comments
7385
+ WHERE (id = 2)
7386
+ 
7387
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
7388
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7389
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7390
+ FROM articles
7391
+ WHERE (id = 2)
7392
+ 
7393
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
7394
+ SQL (0.5ms) COMMIT
7395
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7396
+ SQL (0.3ms) SHOW TABLES
7397
+ SQL (0.1ms) SELECT version FROM schema_migrations
7398
+ SQL (0.2ms) SHOW TABLES
7399
+ SQL (0.1ms) SELECT version FROM schema_migrations
7400
+ Migrating to CreateFixtures (1)
7401
+ SQL (0.2ms) SHOW TABLES
7402
+ SQL (0.1ms) SELECT version FROM schema_migrations
7403
+ SQL (0.2ms) SHOW TABLES
7404
+ SQL (0.1ms) SELECT version FROM schema_migrations
7405
+ Migrating to CreateFixtures (1)
7406
+ SQL (1.6ms) DROP TABLE `articles`
7407
+ SQL (1.2ms) DROP TABLE `article_archives`
7408
+ SQL (1.1ms) DROP TABLE `comments`
7409
+ SQL (1.1ms) DROP TABLE `comment_archives`
7410
+ SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '1'
7411
+ SQL (0.3ms) SHOW TABLES
7412
+ SQL (0.1ms) SELECT version FROM schema_migrations
7413
+ SQL (0.2ms) SHOW TABLES
7414
+ SQL (0.1ms) SELECT version FROM schema_migrations
7415
+ Migrating to CreateFixtures (1)
7416
+ SQL (1.8ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7417
+ SQL (1.7ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7418
+ SQL (1.4ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7419
+ SQL (1.7ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7420
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
7421
+ Article Delete all (0.2ms) DELETE FROM `articles` 
7422
+ WARNING: Can't mass-assign these protected attributes: id
7423
+ SQL (0.1ms) BEGIN
7424
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
7425
+ SQL (0.6ms) COMMIT
7426
+ WARNING: Can't mass-assign these protected attributes: id
7427
+ SQL (0.1ms) BEGIN
7428
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
7429
+ SQL (0.5ms) COMMIT
7430
+ WARNING: Can't mass-assign these protected attributes: id
7431
+ SQL (0.1ms) BEGIN
7432
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
7433
+ SQL (9.9ms) COMMIT
7434
+ WARNING: Can't mass-assign these protected attributes: id
7435
+ SQL (0.1ms) BEGIN
7436
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
7437
+ SQL (0.5ms) COMMIT
7438
+ WARNING: Can't mass-assign these protected attributes: id
7439
+ SQL (0.1ms) BEGIN
7440
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
7441
+ SQL (0.5ms) COMMIT
7442
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
7443
+ WARNING: Can't mass-assign these protected attributes: id
7444
+ SQL (0.1ms) BEGIN
7445
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
7446
+ SQL (0.4ms) COMMIT
7447
+ WARNING: Can't mass-assign these protected attributes: id
7448
+ SQL (0.1ms) BEGIN
7449
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
7450
+ SQL (0.5ms) COMMIT
7451
+ WARNING: Can't mass-assign these protected attributes: id
7452
+ SQL (0.1ms) BEGIN
7453
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
7454
+ SQL (0.4ms) COMMIT
7455
+ WARNING: Can't mass-assign these protected attributes: id
7456
+ SQL (0.1ms) BEGIN
7457
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
7458
+ SQL (0.4ms) COMMIT
7459
+ WARNING: Can't mass-assign these protected attributes: id
7460
+ SQL (0.1ms) BEGIN
7461
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
7462
+ SQL (0.5ms) COMMIT
7463
+ SQL (0.1ms) BEGIN
7464
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7465
+ SQL (0.4ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7466
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7467
+ FROM comments
7468
+ WHERE (id = 1)
7469
+ 
7470
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
7471
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7472
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7473
+ FROM articles
7474
+ WHERE (id = 1)
7475
+ 
7476
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
7477
+ SQL (0.5ms) COMMIT
7478
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
7479
+ SQL (0.1ms) BEGIN
7480
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7481
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7482
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7483
+ FROM comments
7484
+ WHERE (id = 2)
7485
+ 
7486
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
7487
+ SQL (0.1ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7488
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7489
+ FROM articles
7490
+ WHERE (id = 2)
7491
+ 
7492
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
7493
+ SQL (0.8ms) COMMIT
7494
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) 
7495
+ SQL (0.1ms) BEGIN
7496
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
7497
+ SQL (0.2ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7498
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7499
+ FROM comment_archives
7500
+ WHERE (id = 1)
7501
+ 
7502
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 1) 
7503
+ SQL (0.2ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
7504
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7505
+ FROM article_archives
7506
+ WHERE (id = 1)
7507
+ 
7508
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 1) 
7509
+ SQL (0.5ms) COMMIT
7510
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE ( (id = 2) ) 
7511
+ SQL (0.1ms) BEGIN
7512
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
7513
+ SQL (0.2ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7514
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:33:59'
7515
+ FROM comment_archives
7516
+ WHERE (id = 2)
7517
+ 
7518
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 2) 
7519
+ SQL (0.2ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
7520
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:33:59'
7521
+ FROM article_archives
7522
+ WHERE (id = 2)
7523
+ 
7524
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 2) 
7525
+ SQL (0.5ms) COMMIT
7526
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `articles` 
7527
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comments` 
7528
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
7529
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
7530
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
7531
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
7532
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7533
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
7534
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
7535
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7536
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 2) LIMIT 1
7537
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7538
+ SQL (0.1ms) BEGIN
7539
+ SQL (0.1ms) INSERT INTO articles () VALUES ()
7540
+ SQL (0.1ms) DELETE FROM articles WHERE id = 6
7541
+ SQL (0.5ms) COMMIT
7542
+ SQL (0.1ms) BEGIN
7543
+ SQL (0.1ms) INSERT INTO articles () VALUES ()
7544
+ SQL (0.1ms) DELETE FROM articles WHERE id = 7
7545
+ SQL (0.5ms) COMMIT
7546
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 7) LIMIT 1
7547
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
7548
+ SQL (0.5ms) SHOW TABLES
7549
+ SQL (0.2ms) SELECT version FROM schema_migrations
7550
+ SQL (0.2ms) SHOW TABLES
7551
+ SQL (0.1ms) SELECT version FROM schema_migrations
7552
+ Migrating to CreateFixtures (1)
7553
+ SQL (0.2ms) SHOW TABLES
7554
+ SQL (0.1ms) SELECT version FROM schema_migrations
7555
+ SQL (0.2ms) SHOW TABLES
7556
+ SQL (0.2ms) SELECT version FROM schema_migrations
7557
+ Migrating to CreateFixtures (1)
7558
+ SQL (1.5ms) DROP TABLE `articles`
7559
+ SQL (51.2ms) DROP TABLE `article_archives`
7560
+ SQL (2.0ms) DROP TABLE `comments`
7561
+ SQL (1.5ms) DROP TABLE `comment_archives`
7562
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
7563
+ SQL (0.3ms) SHOW TABLES
7564
+ SQL (0.2ms) SELECT version FROM schema_migrations
7565
+ SQL (0.2ms) SHOW TABLES
7566
+ SQL (0.2ms) SELECT version FROM schema_migrations
7567
+ Migrating to CreateFixtures (1)
7568
+ SQL (2.1ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7569
+ SQL (1.6ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7570
+ SQL (1.8ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7571
+ SQL (1.9ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7572
+ SQL (0.4ms) INSERT INTO schema_migrations (version) VALUES ('1')
7573
+ Article Delete all (0.3ms) DELETE FROM `articles` 
7574
+ Article Columns (1.3ms) SHOW FIELDS FROM `articles`
7575
+ WARNING: Can't mass-assign these protected attributes: id
7576
+ SQL (0.1ms) BEGIN
7577
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
7578
+ SQL (0.5ms) COMMIT
7579
+ WARNING: Can't mass-assign these protected attributes: id
7580
+ SQL (0.1ms) BEGIN
7581
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
7582
+ SQL (0.5ms) COMMIT
7583
+ WARNING: Can't mass-assign these protected attributes: id
7584
+ SQL (0.1ms) BEGIN
7585
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
7586
+ SQL (0.5ms) COMMIT
7587
+ WARNING: Can't mass-assign these protected attributes: id
7588
+ SQL (0.1ms) BEGIN
7589
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
7590
+ SQL (0.5ms) COMMIT
7591
+ WARNING: Can't mass-assign these protected attributes: id
7592
+ SQL (0.1ms) BEGIN
7593
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
7594
+ SQL (0.5ms) COMMIT
7595
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
7596
+ Comment Columns (1.3ms) SHOW FIELDS FROM `comments`
7597
+ WARNING: Can't mass-assign these protected attributes: id
7598
+ SQL (0.1ms) BEGIN
7599
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
7600
+ SQL (0.5ms) COMMIT
7601
+ WARNING: Can't mass-assign these protected attributes: id
7602
+ SQL (0.1ms) BEGIN
7603
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
7604
+ SQL (0.4ms) COMMIT
7605
+ WARNING: Can't mass-assign these protected attributes: id
7606
+ SQL (0.1ms) BEGIN
7607
+ Comment Create (0.4ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
7608
+ SQL (0.9ms) COMMIT
7609
+ WARNING: Can't mass-assign these protected attributes: id
7610
+ SQL (0.1ms) BEGIN
7611
+ Comment Create (0.3ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
7612
+ SQL (0.4ms) COMMIT
7613
+ WARNING: Can't mass-assign these protected attributes: id
7614
+ SQL (0.1ms) BEGIN
7615
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
7616
+ SQL (0.4ms) COMMIT
7617
+ ArticleArchive Columns (1.6ms) SHOW FIELDS FROM `article_archives`
7618
+ SQL (0.8ms) BEGIN
7619
+ Comment Load (0.3ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7620
+ CommentArchive Columns (1.4ms) SHOW FIELDS FROM `comment_archives`
7621
+ SQL (0.9ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7622
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7623
+ FROM comments
7624
+ WHERE (id = 1)
7625
+ 
7626
+ SQL (0.2ms) DELETE FROM comments WHERE (id = 1) 
7627
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7628
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7629
+ FROM articles
7630
+ WHERE (id = 1)
7631
+ 
7632
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
7633
+ SQL (0.4ms) COMMIT
7634
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
7635
+ SQL (0.1ms) BEGIN
7636
+ Comment Load (1.0ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7637
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7638
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7639
+ FROM comments
7640
+ WHERE (id = 2)
7641
+ 
7642
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
7643
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7644
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7645
+ FROM articles
7646
+ WHERE (id = 2)
7647
+ 
7648
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
7649
+ SQL (0.5ms) COMMIT
7650
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `articles` 
7651
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comments` 
7652
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
7653
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
7654
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
7655
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
7656
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7657
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
7658
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7659
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
7660
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 2) LIMIT 1
7661
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
7662
+ SQL (0.4ms) SHOW TABLES
7663
+ SQL (0.2ms) SELECT version FROM schema_migrations
7664
+ SQL (0.2ms) SHOW TABLES
7665
+ SQL (0.1ms) SELECT version FROM schema_migrations
7666
+ Migrating to CreateFixtures (1)
7667
+ SQL (0.2ms) SHOW TABLES
7668
+ SQL (0.1ms) SELECT version FROM schema_migrations
7669
+ SQL (0.3ms) SHOW TABLES
7670
+ SQL (0.1ms) SELECT version FROM schema_migrations
7671
+ Migrating to CreateFixtures (1)
7672
+ SQL (1.7ms) DROP TABLE `articles`
7673
+ SQL (1.4ms) DROP TABLE `article_archives`
7674
+ SQL (1.2ms) DROP TABLE `comments`
7675
+ SQL (1.1ms) DROP TABLE `comment_archives`
7676
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
7677
+ SQL (0.2ms) SHOW TABLES
7678
+ SQL (0.1ms) SELECT version FROM schema_migrations
7679
+ SQL (0.2ms) SHOW TABLES
7680
+ SQL (0.1ms) SELECT version FROM schema_migrations
7681
+ Migrating to CreateFixtures (1)
7682
+ SQL (1.7ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7683
+ SQL (1.9ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7684
+ SQL (1.6ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7685
+ SQL (1.8ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7686
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
7687
+ Article Delete all (0.2ms) DELETE FROM `articles` 
7688
+ WARNING: Can't mass-assign these protected attributes: id
7689
+ SQL (0.1ms) BEGIN
7690
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
7691
+ SQL (0.5ms) COMMIT
7692
+ WARNING: Can't mass-assign these protected attributes: id
7693
+ SQL (0.1ms) BEGIN
7694
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
7695
+ SQL (0.4ms) COMMIT
7696
+ WARNING: Can't mass-assign these protected attributes: id
7697
+ SQL (0.1ms) BEGIN
7698
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
7699
+ SQL (0.5ms) COMMIT
7700
+ WARNING: Can't mass-assign these protected attributes: id
7701
+ SQL (0.1ms) BEGIN
7702
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
7703
+ SQL (0.5ms) COMMIT
7704
+ WARNING: Can't mass-assign these protected attributes: id
7705
+ SQL (0.1ms) BEGIN
7706
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
7707
+ SQL (0.5ms) COMMIT
7708
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
7709
+ WARNING: Can't mass-assign these protected attributes: id
7710
+ SQL (0.1ms) BEGIN
7711
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
7712
+ SQL (0.4ms) COMMIT
7713
+ WARNING: Can't mass-assign these protected attributes: id
7714
+ SQL (0.1ms) BEGIN
7715
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
7716
+ SQL (0.5ms) COMMIT
7717
+ WARNING: Can't mass-assign these protected attributes: id
7718
+ SQL (0.1ms) BEGIN
7719
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
7720
+ SQL (0.5ms) COMMIT
7721
+ WARNING: Can't mass-assign these protected attributes: id
7722
+ SQL (0.1ms) BEGIN
7723
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
7724
+ SQL (0.4ms) COMMIT
7725
+ WARNING: Can't mass-assign these protected attributes: id
7726
+ SQL (0.1ms) BEGIN
7727
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
7728
+ SQL (0.5ms) COMMIT
7729
+ SQL (0.1ms) BEGIN
7730
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7731
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7732
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7733
+ FROM comments
7734
+ WHERE (id = 1)
7735
+ 
7736
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
7737
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7738
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7739
+ FROM articles
7740
+ WHERE (id = 1)
7741
+ 
7742
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
7743
+ SQL (0.5ms) COMMIT
7744
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
7745
+ SQL (0.1ms) BEGIN
7746
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7747
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7748
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7749
+ FROM comments
7750
+ WHERE (id = 2)
7751
+ 
7752
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
7753
+ SQL (0.1ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7754
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7755
+ FROM articles
7756
+ WHERE (id = 2)
7757
+ 
7758
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
7759
+ SQL (0.5ms) COMMIT
7760
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7761
+ SQL (0.3ms) SHOW TABLES
7762
+ SQL (0.2ms) SELECT version FROM schema_migrations
7763
+ SQL (0.2ms) SHOW TABLES
7764
+ SQL (0.2ms) SELECT version FROM schema_migrations
7765
+ Migrating to CreateFixtures (1)
7766
+ SQL (0.2ms) SHOW TABLES
7767
+ SQL (0.1ms) SELECT version FROM schema_migrations
7768
+ SQL (0.2ms) SHOW TABLES
7769
+ SQL (0.1ms) SELECT version FROM schema_migrations
7770
+ Migrating to CreateFixtures (1)
7771
+ SQL (2.2ms) DROP TABLE `articles`
7772
+ SQL (1.3ms) DROP TABLE `article_archives`
7773
+ SQL (1.2ms) DROP TABLE `comments`
7774
+ SQL (1.1ms) DROP TABLE `comment_archives`
7775
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
7776
+ SQL (0.2ms) SHOW TABLES
7777
+ SQL (0.1ms) SELECT version FROM schema_migrations
7778
+ SQL (0.2ms) SHOW TABLES
7779
+ SQL (0.1ms) SELECT version FROM schema_migrations
7780
+ Migrating to CreateFixtures (1)
7781
+ SQL (2.0ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7782
+ SQL (1.7ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7783
+ SQL (1.6ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7784
+ SQL (1.9ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7785
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
7786
+ Article Delete all (0.2ms) DELETE FROM `articles` 
7787
+ WARNING: Can't mass-assign these protected attributes: id
7788
+ SQL (0.1ms) BEGIN
7789
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
7790
+ SQL (0.5ms) COMMIT
7791
+ WARNING: Can't mass-assign these protected attributes: id
7792
+ SQL (0.1ms) BEGIN
7793
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
7794
+ SQL (0.5ms) COMMIT
7795
+ WARNING: Can't mass-assign these protected attributes: id
7796
+ SQL (0.1ms) BEGIN
7797
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
7798
+ SQL (0.5ms) COMMIT
7799
+ WARNING: Can't mass-assign these protected attributes: id
7800
+ SQL (0.1ms) BEGIN
7801
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
7802
+ SQL (0.3ms) COMMIT
7803
+ WARNING: Can't mass-assign these protected attributes: id
7804
+ SQL (0.1ms) BEGIN
7805
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
7806
+ SQL (0.5ms) COMMIT
7807
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
7808
+ WARNING: Can't mass-assign these protected attributes: id
7809
+ SQL (0.1ms) BEGIN
7810
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
7811
+ SQL (0.5ms) COMMIT
7812
+ WARNING: Can't mass-assign these protected attributes: id
7813
+ SQL (0.1ms) BEGIN
7814
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
7815
+ SQL (0.4ms) COMMIT
7816
+ WARNING: Can't mass-assign these protected attributes: id
7817
+ SQL (0.1ms) BEGIN
7818
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
7819
+ SQL (0.5ms) COMMIT
7820
+ WARNING: Can't mass-assign these protected attributes: id
7821
+ SQL (0.1ms) BEGIN
7822
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
7823
+ SQL (0.4ms) COMMIT
7824
+ WARNING: Can't mass-assign these protected attributes: id
7825
+ SQL (0.1ms) BEGIN
7826
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
7827
+ SQL (0.4ms) COMMIT
7828
+ SQL (0.1ms) BEGIN
7829
+ Comment Load (0.3ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7830
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7831
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7832
+ FROM comments
7833
+ WHERE (id = 1)
7834
+ 
7835
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
7836
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7837
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7838
+ FROM articles
7839
+ WHERE (id = 1)
7840
+ 
7841
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
7842
+ SQL (0.4ms) COMMIT
7843
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
7844
+ SQL (0.1ms) BEGIN
7845
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7846
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7847
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7848
+ FROM comments
7849
+ WHERE (id = 2)
7850
+ 
7851
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
7852
+ SQL (0.1ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
7853
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7854
+ FROM articles
7855
+ WHERE (id = 2)
7856
+ 
7857
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
7858
+ SQL (0.5ms) COMMIT
7859
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) 
7860
+ SQL (0.1ms) BEGIN
7861
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
7862
+ SQL (0.2ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7863
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7864
+ FROM comment_archives
7865
+ WHERE (id = 1)
7866
+ 
7867
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 1) 
7868
+ SQL (0.2ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
7869
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7870
+ FROM article_archives
7871
+ WHERE (id = 1)
7872
+ 
7873
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 1) 
7874
+ SQL (0.6ms) COMMIT
7875
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE ( (id = 2) ) 
7876
+ SQL (0.1ms) BEGIN
7877
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
7878
+ SQL (0.5ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
7879
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:41:49'
7880
+ FROM comment_archives
7881
+ WHERE (id = 2)
7882
+ 
7883
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 2) 
7884
+ SQL (0.2ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
7885
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:41:49'
7886
+ FROM article_archives
7887
+ WHERE (id = 2)
7888
+ 
7889
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 2) 
7890
+ SQL (0.5ms) COMMIT
7891
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `articles` 
7892
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comments` 
7893
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
7894
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
7895
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
7896
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
7897
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
7898
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
7899
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
7900
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
7901
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 2) LIMIT 1
7902
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
7903
+ SQL (0.2ms) BEGIN
7904
+ SQL (0.2ms) INSERT INTO articles () VALUES ()
7905
+ SQL (0.2ms) DELETE FROM articles WHERE id = 6
7906
+ SQL (0.4ms) COMMIT
7907
+ SQL (0.1ms) BEGIN
7908
+ SQL (0.1ms) INSERT INTO articles () VALUES ()
7909
+ SQL (0.1ms) DELETE FROM articles WHERE id = 7
7910
+ SQL (0.4ms) COMMIT
7911
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 7) LIMIT 1
7912
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
7913
+ SQL (0.3ms) SHOW TABLES
7914
+ SQL (0.2ms) SELECT version FROM schema_migrations
7915
+ SQL (0.2ms) SHOW TABLES
7916
+ SQL (0.1ms) SELECT version FROM schema_migrations
7917
+ Migrating to CreateFixtures (1)
7918
+ SQL (0.2ms) SHOW TABLES
7919
+ SQL (0.1ms) SELECT version FROM schema_migrations
7920
+ SQL (0.2ms) SHOW TABLES
7921
+ SQL (0.1ms) SELECT version FROM schema_migrations
7922
+ Migrating to CreateFixtures (1)
7923
+ SQL (10.6ms) DROP TABLE `articles`
7924
+ SQL (43.9ms) DROP TABLE `article_archives`
7925
+ SQL (1.3ms) DROP TABLE `comments`
7926
+ SQL (1.2ms) DROP TABLE `comment_archives`
7927
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
7928
+ SQL (0.3ms) SHOW TABLES
7929
+ SQL (0.1ms) SELECT version FROM schema_migrations
7930
+ SQL (0.2ms) SHOW TABLES
7931
+ SQL (0.1ms) SELECT version FROM schema_migrations
7932
+ Migrating to CreateFixtures (1)
7933
+ SQL (1.8ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7934
+ SQL (1.9ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
7935
+ SQL (1.6ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7936
+ SQL (1.6ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
7937
+ SQL (0.8ms) INSERT INTO schema_migrations (version) VALUES ('1')
7938
+ Article Delete all (0.2ms) DELETE FROM `articles` 
7939
+ Article Columns (1.3ms) SHOW FIELDS FROM `articles`
7940
+ WARNING: Can't mass-assign these protected attributes: id
7941
+ SQL (0.1ms) BEGIN
7942
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
7943
+ SQL (0.5ms) COMMIT
7944
+ WARNING: Can't mass-assign these protected attributes: id
7945
+ SQL (0.1ms) BEGIN
7946
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
7947
+ SQL (0.5ms) COMMIT
7948
+ WARNING: Can't mass-assign these protected attributes: id
7949
+ SQL (0.1ms) BEGIN
7950
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
7951
+ SQL (0.6ms) COMMIT
7952
+ WARNING: Can't mass-assign these protected attributes: id
7953
+ SQL (0.1ms) BEGIN
7954
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
7955
+ SQL (0.4ms) COMMIT
7956
+ WARNING: Can't mass-assign these protected attributes: id
7957
+ SQL (0.1ms) BEGIN
7958
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
7959
+ SQL (0.5ms) COMMIT
7960
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
7961
+ Comment Columns (1.1ms) SHOW FIELDS FROM `comments`
7962
+ WARNING: Can't mass-assign these protected attributes: id
7963
+ SQL (0.1ms) BEGIN
7964
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
7965
+ SQL (0.5ms) COMMIT
7966
+ WARNING: Can't mass-assign these protected attributes: id
7967
+ SQL (0.1ms) BEGIN
7968
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
7969
+ SQL (0.4ms) COMMIT
7970
+ WARNING: Can't mass-assign these protected attributes: id
7971
+ SQL (0.1ms) BEGIN
7972
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
7973
+ SQL (0.4ms) COMMIT
7974
+ WARNING: Can't mass-assign these protected attributes: id
7975
+ SQL (0.2ms) BEGIN
7976
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
7977
+ SQL (9.6ms) COMMIT
7978
+ WARNING: Can't mass-assign these protected attributes: id
7979
+ SQL (0.1ms) BEGIN
7980
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
7981
+ SQL (0.5ms) COMMIT
7982
+ ArticleArchive Columns (1.3ms) SHOW FIELDS FROM `article_archives`
7983
+ SQL (0.8ms) SHOW TABLES
7984
+ SQL (0.3ms) SHOW TABLES
7985
+ SQL (0.2ms) SELECT version FROM schema_migrations
7986
+ SQL (0.6ms) SHOW TABLES
7987
+ SQL (0.2ms) SELECT version FROM schema_migrations
7988
+ Migrating to CreateFixtures (1)
7989
+ SQL (0.2ms) SHOW TABLES
7990
+ SQL (0.1ms) SELECT version FROM schema_migrations
7991
+ SQL (0.2ms) SHOW TABLES
7992
+ SQL (0.1ms) SELECT version FROM schema_migrations
7993
+ Migrating to CreateFixtures (1)
7994
+ SQL (1.3ms) DROP TABLE `articles`
7995
+ SQL (1.3ms) DROP TABLE `article_archives`
7996
+ SQL (0.9ms) DROP TABLE `comments`
7997
+ SQL (1.1ms) DROP TABLE `comment_archives`
7998
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
7999
+ SQL (0.2ms) SHOW TABLES
8000
+ SQL (0.1ms) SELECT version FROM schema_migrations
8001
+ SQL (0.2ms) SHOW TABLES
8002
+ SQL (0.1ms) SELECT version FROM schema_migrations
8003
+ Migrating to CreateFixtures (1)
8004
+ SQL (1.7ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8005
+ SQL (1.7ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8006
+ SQL (1.7ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8007
+ SQL (1.8ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8008
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
8009
+ Article Delete all (0.2ms) DELETE FROM `articles` 
8010
+ WARNING: Can't mass-assign these protected attributes: id
8011
+ SQL (0.1ms) BEGIN
8012
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
8013
+ SQL (0.5ms) COMMIT
8014
+ WARNING: Can't mass-assign these protected attributes: id
8015
+ SQL (0.1ms) BEGIN
8016
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
8017
+ SQL (0.7ms) COMMIT
8018
+ WARNING: Can't mass-assign these protected attributes: id
8019
+ SQL (0.1ms) BEGIN
8020
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
8021
+ SQL (0.4ms) COMMIT
8022
+ WARNING: Can't mass-assign these protected attributes: id
8023
+ SQL (0.1ms) BEGIN
8024
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
8025
+ SQL (0.5ms) COMMIT
8026
+ WARNING: Can't mass-assign these protected attributes: id
8027
+ SQL (0.1ms) BEGIN
8028
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
8029
+ SQL (0.5ms) COMMIT
8030
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8031
+ WARNING: Can't mass-assign these protected attributes: id
8032
+ SQL (0.1ms) BEGIN
8033
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
8034
+ SQL (0.5ms) COMMIT
8035
+ WARNING: Can't mass-assign these protected attributes: id
8036
+ SQL (0.1ms) BEGIN
8037
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
8038
+ SQL (0.5ms) COMMIT
8039
+ WARNING: Can't mass-assign these protected attributes: id
8040
+ SQL (0.1ms) BEGIN
8041
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
8042
+ SQL (9.6ms) COMMIT
8043
+ WARNING: Can't mass-assign these protected attributes: id
8044
+ SQL (0.1ms) BEGIN
8045
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
8046
+ SQL (0.5ms) COMMIT
8047
+ WARNING: Can't mass-assign these protected attributes: id
8048
+ SQL (0.1ms) BEGIN
8049
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
8050
+ SQL (0.5ms) COMMIT
8051
+ SQL (0.7ms) SHOW TABLES
8052
+ SQL (0.3ms) SHOW TABLES
8053
+ SQL (0.2ms) SELECT version FROM schema_migrations
8054
+ SQL (0.2ms) SHOW TABLES
8055
+ SQL (0.1ms) SELECT version FROM schema_migrations
8056
+ Migrating to CreateFixtures (1)
8057
+ SQL (0.6ms) SHOW TABLES
8058
+ SQL (0.1ms) SELECT version FROM schema_migrations
8059
+ SQL (0.2ms) SHOW TABLES
8060
+ SQL (0.1ms) SELECT version FROM schema_migrations
8061
+ Migrating to CreateFixtures (1)
8062
+ SQL (1.4ms) DROP TABLE `articles`
8063
+ SQL (1.1ms) DROP TABLE `article_archives`
8064
+ SQL (1.3ms) DROP TABLE `comments`
8065
+ SQL (14.0ms) DROP TABLE `comment_archives`
8066
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
8067
+ SQL (0.3ms) SHOW TABLES
8068
+ SQL (0.2ms) SELECT version FROM schema_migrations
8069
+ SQL (0.2ms) SHOW TABLES
8070
+ SQL (0.1ms) SELECT version FROM schema_migrations
8071
+ Migrating to CreateFixtures (1)
8072
+ SQL (1.7ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8073
+ SQL (2.2ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8074
+ SQL (1.9ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8075
+ SQL (1.6ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8076
+ SQL (0.5ms) INSERT INTO schema_migrations (version) VALUES ('1')
8077
+ Article Delete all (0.2ms) DELETE FROM `articles` 
8078
+ WARNING: Can't mass-assign these protected attributes: id
8079
+ SQL (0.1ms) BEGIN
8080
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
8081
+ SQL (0.5ms) COMMIT
8082
+ WARNING: Can't mass-assign these protected attributes: id
8083
+ SQL (0.1ms) BEGIN
8084
+ Article Create (0.4ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
8085
+ SQL (0.6ms) COMMIT
8086
+ WARNING: Can't mass-assign these protected attributes: id
8087
+ SQL (0.1ms) BEGIN
8088
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
8089
+ SQL (0.5ms) COMMIT
8090
+ WARNING: Can't mass-assign these protected attributes: id
8091
+ SQL (0.1ms) BEGIN
8092
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
8093
+ SQL (0.5ms) COMMIT
8094
+ WARNING: Can't mass-assign these protected attributes: id
8095
+ SQL (0.1ms) BEGIN
8096
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
8097
+ SQL (0.4ms) COMMIT
8098
+ Comment Delete all (0.2ms) DELETE FROM `comments` 
8099
+ WARNING: Can't mass-assign these protected attributes: id
8100
+ SQL (0.1ms) BEGIN
8101
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
8102
+ SQL (0.5ms) COMMIT
8103
+ WARNING: Can't mass-assign these protected attributes: id
8104
+ SQL (0.1ms) BEGIN
8105
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
8106
+ SQL (0.5ms) COMMIT
8107
+ WARNING: Can't mass-assign these protected attributes: id
8108
+ SQL (0.1ms) BEGIN
8109
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
8110
+ SQL (0.5ms) COMMIT
8111
+ WARNING: Can't mass-assign these protected attributes: id
8112
+ SQL (0.1ms) BEGIN
8113
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
8114
+ SQL (0.5ms) COMMIT
8115
+ WARNING: Can't mass-assign these protected attributes: id
8116
+ SQL (0.1ms) BEGIN
8117
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
8118
+ SQL (0.7ms) COMMIT
8119
+ SQL (0.6ms) SHOW TABLES
8120
+ SQL (0.1ms) BEGIN
8121
+ SQL (0.2ms) INSERT INTO articles () VALUES ()
8122
+ SQL (0.2ms) DELETE FROM articles WHERE id = 6
8123
+ SQL (0.4ms) COMMIT
8124
+ SQL (0.1ms) BEGIN
8125
+ SQL (0.1ms) INSERT INTO articles () VALUES ()
8126
+ SQL (0.2ms) DELETE FROM articles WHERE id = 7
8127
+ SQL (0.5ms) COMMIT
8128
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 7) LIMIT 1
8129
+ SQL (0.2ms) SET SQL_AUTO_IS_NULL=0
8130
+ SQL (0.4ms) SHOW TABLES
8131
+ SQL (0.2ms) SELECT version FROM schema_migrations
8132
+ SQL (0.2ms) SHOW TABLES
8133
+ SQL (0.1ms) SELECT version FROM schema_migrations
8134
+ Migrating to CreateFixtures (1)
8135
+ SQL (0.2ms) SHOW TABLES
8136
+ SQL (0.1ms) SELECT version FROM schema_migrations
8137
+ SQL (0.2ms) SHOW TABLES
8138
+ SQL (0.1ms) SELECT version FROM schema_migrations
8139
+ Migrating to CreateFixtures (1)
8140
+ SQL (10.5ms) DROP TABLE `articles`
8141
+ SQL (1.7ms) DROP TABLE `article_archives`
8142
+ SQL (43.9ms) DROP TABLE `comments`
8143
+ SQL (1.3ms) DROP TABLE `comment_archives`
8144
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
8145
+ SQL (0.3ms) SHOW TABLES
8146
+ SQL (0.2ms) SELECT version FROM schema_migrations
8147
+ SQL (0.2ms) SHOW TABLES
8148
+ SQL (0.2ms) SELECT version FROM schema_migrations
8149
+ Migrating to CreateFixtures (1)
8150
+ SQL (1.9ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8151
+ SQL (2.6ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8152
+ SQL (1.8ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8153
+ SQL (1.7ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8154
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
8155
+ Article Delete all (0.2ms) DELETE FROM `articles` 
8156
+ Article Columns (1.4ms) SHOW FIELDS FROM `articles`
8157
+ WARNING: Can't mass-assign these protected attributes: id
8158
+ SQL (0.1ms) BEGIN
8159
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
8160
+ SQL (9.7ms) COMMIT
8161
+ WARNING: Can't mass-assign these protected attributes: id
8162
+ SQL (0.1ms) BEGIN
8163
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
8164
+ SQL (0.5ms) COMMIT
8165
+ WARNING: Can't mass-assign these protected attributes: id
8166
+ SQL (0.1ms) BEGIN
8167
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
8168
+ SQL (0.5ms) COMMIT
8169
+ WARNING: Can't mass-assign these protected attributes: id
8170
+ SQL (0.1ms) BEGIN
8171
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
8172
+ SQL (0.5ms) COMMIT
8173
+ WARNING: Can't mass-assign these protected attributes: id
8174
+ SQL (0.1ms) BEGIN
8175
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
8176
+ SQL (0.4ms) COMMIT
8177
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8178
+ Comment Columns (1.4ms) SHOW FIELDS FROM `comments`
8179
+ WARNING: Can't mass-assign these protected attributes: id
8180
+ SQL (0.1ms) BEGIN
8181
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
8182
+ SQL (0.5ms) COMMIT
8183
+ WARNING: Can't mass-assign these protected attributes: id
8184
+ SQL (0.1ms) BEGIN
8185
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
8186
+ SQL (0.5ms) COMMIT
8187
+ WARNING: Can't mass-assign these protected attributes: id
8188
+ SQL (0.1ms) BEGIN
8189
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
8190
+ SQL (0.7ms) COMMIT
8191
+ WARNING: Can't mass-assign these protected attributes: id
8192
+ SQL (0.1ms) BEGIN
8193
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
8194
+ SQL (0.5ms) COMMIT
8195
+ WARNING: Can't mass-assign these protected attributes: id
8196
+ SQL (0.1ms) BEGIN
8197
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
8198
+ SQL (0.5ms) COMMIT
8199
+ ArticleArchive Columns (1.8ms) SHOW FIELDS FROM `article_archives`
8200
+ SQL (0.8ms) BEGIN
8201
+ Comment Load (0.3ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8202
+ CommentArchive Columns (1.1ms) SHOW FIELDS FROM `comment_archives`
8203
+ SQL (11.8ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8204
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8205
+ FROM comments
8206
+ WHERE (id = 1)
8207
+ 
8208
+ SQL (0.2ms) DELETE FROM comments WHERE (id = 1) 
8209
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8210
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8211
+ FROM articles
8212
+ WHERE (id = 1)
8213
+ 
8214
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
8215
+ SQL (0.4ms) COMMIT
8216
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
8217
+ SQL (0.1ms) BEGIN
8218
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8219
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8220
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8221
+ FROM comments
8222
+ WHERE (id = 2)
8223
+ 
8224
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
8225
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8226
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8227
+ FROM articles
8228
+ WHERE (id = 2)
8229
+ 
8230
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
8231
+ SQL (0.5ms) COMMIT
8232
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `articles` 
8233
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comments` 
8234
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
8235
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
8236
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
8237
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
8238
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8239
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
8240
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8241
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
8242
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 2) LIMIT 1
8243
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
8244
+ SQL (1.3ms) SHOW TABLES
8245
+ SQL (0.3ms) SELECT version FROM schema_migrations
8246
+ SQL (0.2ms) SHOW TABLES
8247
+ SQL (0.1ms) SELECT version FROM schema_migrations
8248
+ Migrating to CreateFixtures (1)
8249
+ SQL (0.2ms) SHOW TABLES
8250
+ SQL (0.1ms) SELECT version FROM schema_migrations
8251
+ SQL (0.2ms) SHOW TABLES
8252
+ SQL (0.1ms) SELECT version FROM schema_migrations
8253
+ Migrating to CreateFixtures (1)
8254
+ SQL (1.5ms) DROP TABLE `articles`
8255
+ SQL (1.4ms) DROP TABLE `article_archives`
8256
+ SQL (1.1ms) DROP TABLE `comments`
8257
+ SQL (1.1ms) DROP TABLE `comment_archives`
8258
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
8259
+ SQL (0.2ms) SHOW TABLES
8260
+ SQL (0.1ms) SELECT version FROM schema_migrations
8261
+ SQL (0.2ms) SHOW TABLES
8262
+ SQL (0.1ms) SELECT version FROM schema_migrations
8263
+ Migrating to CreateFixtures (1)
8264
+ SQL (2.3ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8265
+ SQL (1.6ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8266
+ SQL (1.7ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8267
+ SQL (1.6ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8268
+ SQL (0.4ms) INSERT INTO schema_migrations (version) VALUES ('1')
8269
+ Article Delete all (0.2ms) DELETE FROM `articles` 
8270
+ WARNING: Can't mass-assign these protected attributes: id
8271
+ SQL (0.1ms) BEGIN
8272
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
8273
+ SQL (0.5ms) COMMIT
8274
+ WARNING: Can't mass-assign these protected attributes: id
8275
+ SQL (0.1ms) BEGIN
8276
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
8277
+ SQL (0.6ms) COMMIT
8278
+ WARNING: Can't mass-assign these protected attributes: id
8279
+ SQL (0.1ms) BEGIN
8280
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
8281
+ SQL (0.4ms) COMMIT
8282
+ WARNING: Can't mass-assign these protected attributes: id
8283
+ SQL (0.1ms) BEGIN
8284
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
8285
+ SQL (0.4ms) COMMIT
8286
+ WARNING: Can't mass-assign these protected attributes: id
8287
+ SQL (0.1ms) BEGIN
8288
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
8289
+ SQL (0.5ms) COMMIT
8290
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8291
+ WARNING: Can't mass-assign these protected attributes: id
8292
+ SQL (0.1ms) BEGIN
8293
+ Comment Create (0.3ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
8294
+ SQL (0.4ms) COMMIT
8295
+ WARNING: Can't mass-assign these protected attributes: id
8296
+ SQL (0.1ms) BEGIN
8297
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
8298
+ SQL (0.4ms) COMMIT
8299
+ WARNING: Can't mass-assign these protected attributes: id
8300
+ SQL (0.1ms) BEGIN
8301
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
8302
+ SQL (0.5ms) COMMIT
8303
+ WARNING: Can't mass-assign these protected attributes: id
8304
+ SQL (0.1ms) BEGIN
8305
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
8306
+ SQL (0.4ms) COMMIT
8307
+ WARNING: Can't mass-assign these protected attributes: id
8308
+ SQL (0.1ms) BEGIN
8309
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
8310
+ SQL (0.9ms) COMMIT
8311
+ SQL (0.1ms) BEGIN
8312
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8313
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8314
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8315
+ FROM comments
8316
+ WHERE (id = 1)
8317
+ 
8318
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
8319
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8320
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8321
+ FROM articles
8322
+ WHERE (id = 1)
8323
+ 
8324
+ SQL (0.2ms) DELETE FROM articles WHERE (id = 1) 
8325
+ SQL (0.5ms) COMMIT
8326
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
8327
+ SQL (0.1ms) BEGIN
8328
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8329
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8330
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8331
+ FROM comments
8332
+ WHERE (id = 2)
8333
+ 
8334
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
8335
+ SQL (0.1ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8336
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8337
+ FROM articles
8338
+ WHERE (id = 2)
8339
+ 
8340
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
8341
+ SQL (0.5ms) COMMIT
8342
+ ArticleArchive Load (0.1ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8343
+ SQL (0.3ms) SHOW TABLES
8344
+ SQL (0.2ms) SELECT version FROM schema_migrations
8345
+ SQL (0.2ms) SHOW TABLES
8346
+ SQL (0.3ms) SELECT version FROM schema_migrations
8347
+ Migrating to CreateFixtures (1)
8348
+ SQL (0.3ms) SHOW TABLES
8349
+ SQL (0.1ms) SELECT version FROM schema_migrations
8350
+ SQL (0.2ms) SHOW TABLES
8351
+ SQL (0.1ms) SELECT version FROM schema_migrations
8352
+ Migrating to CreateFixtures (1)
8353
+ SQL (1.4ms) DROP TABLE `articles`
8354
+ SQL (1.4ms) DROP TABLE `article_archives`
8355
+ SQL (1.2ms) DROP TABLE `comments`
8356
+ SQL (1.1ms) DROP TABLE `comment_archives`
8357
+ SQL (0.7ms) DELETE FROM schema_migrations WHERE version = '1'
8358
+ SQL (0.2ms) SHOW TABLES
8359
+ SQL (0.1ms) SELECT version FROM schema_migrations
8360
+ SQL (0.2ms) SHOW TABLES
8361
+ SQL (0.1ms) SELECT version FROM schema_migrations
8362
+ Migrating to CreateFixtures (1)
8363
+ SQL (1.8ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8364
+ SQL (1.4ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8365
+ SQL (1.8ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8366
+ SQL (1.6ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8367
+ SQL (0.6ms) INSERT INTO schema_migrations (version) VALUES ('1')
8368
+ Article Delete all (0.2ms) DELETE FROM `articles` 
8369
+ WARNING: Can't mass-assign these protected attributes: id
8370
+ SQL (0.1ms) BEGIN
8371
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0)
8372
+ SQL (0.5ms) COMMIT
8373
+ WARNING: Can't mass-assign these protected attributes: id
8374
+ SQL (0.1ms) BEGIN
8375
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0)
8376
+ SQL (0.7ms) COMMIT
8377
+ WARNING: Can't mass-assign these protected attributes: id
8378
+ SQL (0.1ms) BEGIN
8379
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0)
8380
+ SQL (0.5ms) COMMIT
8381
+ WARNING: Can't mass-assign these protected attributes: id
8382
+ SQL (0.1ms) BEGIN
8383
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0)
8384
+ SQL (0.4ms) COMMIT
8385
+ WARNING: Can't mass-assign these protected attributes: id
8386
+ SQL (0.1ms) BEGIN
8387
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0)
8388
+ SQL (0.4ms) COMMIT
8389
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8390
+ WARNING: Can't mass-assign these protected attributes: id
8391
+ SQL (0.1ms) BEGIN
8392
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1)
8393
+ SQL (0.4ms) COMMIT
8394
+ WARNING: Can't mass-assign these protected attributes: id
8395
+ SQL (0.1ms) BEGIN
8396
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2)
8397
+ SQL (0.4ms) COMMIT
8398
+ WARNING: Can't mass-assign these protected attributes: id
8399
+ SQL (0.1ms) BEGIN
8400
+ Comment Create (0.4ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3)
8401
+ SQL (0.5ms) COMMIT
8402
+ WARNING: Can't mass-assign these protected attributes: id
8403
+ SQL (0.1ms) BEGIN
8404
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4)
8405
+ SQL (0.5ms) COMMIT
8406
+ WARNING: Can't mass-assign these protected attributes: id
8407
+ SQL (0.1ms) BEGIN
8408
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5)
8409
+ SQL (0.6ms) COMMIT
8410
+ SQL (0.1ms) BEGIN
8411
+ Comment Load (0.3ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8412
+ SQL (0.4ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8413
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8414
+ FROM comments
8415
+ WHERE (id = 1)
8416
+ 
8417
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
8418
+ SQL (0.3ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8419
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8420
+ FROM articles
8421
+ WHERE (id = 1)
8422
+ 
8423
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
8424
+ SQL (0.5ms) COMMIT
8425
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
8426
+ SQL (0.1ms) BEGIN
8427
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8428
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8429
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8430
+ FROM comments
8431
+ WHERE (id = 2)
8432
+ 
8433
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
8434
+ SQL (0.1ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8435
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8436
+ FROM articles
8437
+ WHERE (id = 2)
8438
+ 
8439
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
8440
+ SQL (0.5ms) COMMIT
8441
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) 
8442
+ SQL (0.1ms) BEGIN
8443
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
8444
+ SQL (0.2ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8445
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8446
+ FROM comment_archives
8447
+ WHERE (id = 1)
8448
+ 
8449
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 1) 
8450
+ SQL (0.2ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
8451
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8452
+ FROM article_archives
8453
+ WHERE (id = 1)
8454
+ 
8455
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 1) 
8456
+ SQL (0.4ms) COMMIT
8457
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE ( (id = 2) ) 
8458
+ SQL (0.1ms) BEGIN
8459
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
8460
+ SQL (0.4ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8461
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-04-02 21:43:12'
8462
+ FROM comment_archives
8463
+ WHERE (id = 2)
8464
+ 
8465
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 2) 
8466
+ SQL (0.2ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
8467
+ SELECT `id`, `title`, `body`, `read`, '2010-04-02 21:43:12'
8468
+ FROM article_archives
8469
+ WHERE (id = 2)
8470
+ 
8471
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 2) 
8472
+ SQL (0.5ms) COMMIT
8473
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `articles` 
8474
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comments` 
8475
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
8476
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
8477
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
8478
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
8479
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8480
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
8481
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
8482
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8483
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 2) LIMIT 1
8484
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8485
+ SQL (0.1ms) BEGIN
8486
+ SQL (0.2ms) INSERT INTO articles () VALUES ()
8487
+ SQL (0.2ms) DELETE FROM articles WHERE id = 6
8488
+ SQL (0.4ms) COMMIT
8489
+ SQL (0.1ms) BEGIN
8490
+ SQL (0.1ms) INSERT INTO articles () VALUES ()
8491
+ SQL (0.3ms) DELETE FROM articles WHERE id = 7
8492
+ SQL (0.7ms) COMMIT
8493
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 7) LIMIT 1
8494
+ SQL (13.7ms) SET SQL_AUTO_IS_NULL=0
8495
+ SQL (2.4ms) SHOW TABLES
8496
+ SQL (116.4ms) SELECT version FROM schema_migrations
8497
+ SQL (0.4ms) SHOW TABLES
8498
+ SQL (0.2ms) SELECT version FROM schema_migrations
8499
+ Migrating to CreateFixtures (1)
8500
+ SQL (0.3ms) SHOW TABLES
8501
+ SQL (0.2ms) SELECT version FROM schema_migrations
8502
+ SQL (0.2ms) SHOW TABLES
8503
+ SQL (0.2ms) SELECT version FROM schema_migrations
8504
+ Migrating to CreateFixtures (1)
8505
+ SQL (123.5ms) DROP TABLE `articles`
8506
+ SQL (2.3ms) DROP TABLE `article_archives`
8507
+ SQL (2.6ms) DROP TABLE `comments`
8508
+ SQL (41.7ms) DROP TABLE `comment_archives`
8509
+ SQL (1.6ms) DELETE FROM schema_migrations WHERE version = '1'
8510
+ SQL (0.3ms) SHOW TABLES
8511
+ SQL (0.1ms) SELECT version FROM schema_migrations
8512
+ SQL (0.2ms) SHOW TABLES
8513
+ SQL (0.1ms) SELECT version FROM schema_migrations
8514
+ Migrating to CreateFixtures (1)
8515
+ SQL (118.9ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8516
+ SQL (1.8ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8517
+ SQL (1.9ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8518
+ SQL (1.9ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8519
+ SQL (0.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
8520
+ Article Delete all (0.2ms) DELETE FROM `articles` 
8521
+ Article Columns (1.7ms) SHOW FIELDS FROM `articles`
8522
+ SQL (0.2ms) BEGIN
8523
+ Article Create (3.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0, 1)
8524
+ SQL (0.9ms) COMMIT
8525
+ SQL (0.1ms) BEGIN
8526
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0, 2)
8527
+ SQL (249.5ms) COMMIT
8528
+ SQL (0.1ms) BEGIN
8529
+ Article Create (0.6ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0, 3)
8530
+ SQL (20.5ms) COMMIT
8531
+ SQL (0.2ms) BEGIN
8532
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0, 4)
8533
+ SQL (38.4ms) COMMIT
8534
+ SQL (0.1ms) BEGIN
8535
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0, 5)
8536
+ SQL (4.1ms) COMMIT
8537
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8538
+ Comment Columns (49.2ms) SHOW FIELDS FROM `comments`
8539
+ SQL (17.0ms) BEGIN
8540
+ Comment Create (0.3ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1, 1)
8541
+ SQL (55.1ms) COMMIT
8542
+ SQL (0.1ms) BEGIN
8543
+ Comment Create (0.3ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2, 2)
8544
+ SQL (0.5ms) COMMIT
8545
+ SQL (0.2ms) BEGIN
8546
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3, 3)
8547
+ SQL (25.5ms) COMMIT
8548
+ SQL (0.1ms) BEGIN
8549
+ Comment Create (0.3ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4, 4)
8550
+ SQL (0.5ms) COMMIT
8551
+ SQL (0.1ms) BEGIN
8552
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5, 5)
8553
+ SQL (0.4ms) COMMIT
8554
+ ArticleArchive Columns (1.2ms) SHOW FIELDS FROM `article_archives`
8555
+ SQL (0.8ms) BEGIN
8556
+ Comment Load (0.7ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8557
+ CommentArchive Columns (1.3ms) SHOW FIELDS FROM `comment_archives`
8558
+ SQL (12.6ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8559
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8560
+ FROM comments
8561
+ WHERE (id = 1)
8562
+ 
8563
+ SQL (0.3ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8564
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8565
+ FROM articles
8566
+ WHERE (id = 1)
8567
+ 
8568
+ SQL (0.4ms) COMMIT
8569
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
8570
+ SQL (0.1ms) BEGIN
8571
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8572
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8573
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8574
+ FROM comments
8575
+ WHERE (id = 2)
8576
+ 
8577
+ SQL (0.1ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8578
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8579
+ FROM articles
8580
+ WHERE (id = 2)
8581
+ 
8582
+ SQL (0.4ms) COMMIT
8583
+ SQL (0.4ms) SELECT count(*) AS count_all FROM `articles` 
8584
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `comments` 
8585
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
8586
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
8587
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
8588
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
8589
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8590
+ CommentArchive Load (0.7ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
8591
+ SQL (0.4ms) SHOW TABLES
8592
+ SQL (0.2ms) SELECT version FROM schema_migrations
8593
+ SQL (0.2ms) SHOW TABLES
8594
+ SQL (0.1ms) SELECT version FROM schema_migrations
8595
+ Migrating to CreateFixtures (1)
8596
+ SQL (0.3ms) SHOW TABLES
8597
+ SQL (0.1ms) SELECT version FROM schema_migrations
8598
+ SQL (0.2ms) SHOW TABLES
8599
+ SQL (0.1ms) SELECT version FROM schema_migrations
8600
+ Migrating to CreateFixtures (1)
8601
+ SQL (1.9ms) DROP TABLE `articles`
8602
+ SQL (40.7ms) DROP TABLE `article_archives`
8603
+ SQL (1.3ms) DROP TABLE `comments`
8604
+ SQL (2.8ms) DROP TABLE `comment_archives`
8605
+ SQL (0.8ms) DELETE FROM schema_migrations WHERE version = '1'
8606
+ SQL (0.3ms) SHOW TABLES
8607
+ SQL (0.2ms) SELECT version FROM schema_migrations
8608
+ SQL (0.2ms) SHOW TABLES
8609
+ SQL (0.2ms) SELECT version FROM schema_migrations
8610
+ Migrating to CreateFixtures (1)
8611
+ SQL (4.1ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8612
+ SQL (3.2ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8613
+ SQL (1.7ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8614
+ SQL (3.9ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8615
+ SQL (3.1ms) INSERT INTO schema_migrations (version) VALUES ('1')
8616
+ Article Delete all (0.4ms) DELETE FROM `articles` 
8617
+ SQL (0.1ms) BEGIN
8618
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0, 1)
8619
+ SQL (5.4ms) COMMIT
8620
+ SQL (2.1ms) BEGIN
8621
+ Article Create (0.3ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0, 2)
8622
+ SQL (0.5ms) COMMIT
8623
+ SQL (0.4ms) BEGIN
8624
+ Article Create (0.5ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0, 3)
8625
+ SQL (0.6ms) COMMIT
8626
+ SQL (0.7ms) BEGIN
8627
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0, 4)
8628
+ SQL (0.5ms) COMMIT
8629
+ SQL (0.1ms) BEGIN
8630
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0, 5)
8631
+ SQL (0.7ms) COMMIT
8632
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8633
+ SQL (0.1ms) BEGIN
8634
+ Comment Create (0.4ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1, 1)
8635
+ SQL (1.3ms) COMMIT
8636
+ SQL (0.2ms) BEGIN
8637
+ Comment Create (0.3ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2, 2)
8638
+ SQL (0.5ms) COMMIT
8639
+ SQL (0.1ms) BEGIN
8640
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3, 3)
8641
+ SQL (0.5ms) COMMIT
8642
+ SQL (0.1ms) BEGIN
8643
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4, 4)
8644
+ SQL (1.4ms) COMMIT
8645
+ SQL (0.1ms) BEGIN
8646
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5, 5)
8647
+ SQL (0.6ms) COMMIT
8648
+ SQL (0.1ms) BEGIN
8649
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8650
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8651
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8652
+ FROM comments
8653
+ WHERE (id = 1)
8654
+ 
8655
+ SQL (0.3ms) DELETE FROM comments WHERE (id = 1) 
8656
+ SQL (0.4ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8657
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8658
+ FROM articles
8659
+ WHERE (id = 1)
8660
+ 
8661
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
8662
+ SQL (6.6ms) COMMIT
8663
+ Article Load (0.3ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
8664
+ SQL (0.1ms) BEGIN
8665
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8666
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8667
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8668
+ FROM comments
8669
+ WHERE (id = 2)
8670
+ 
8671
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
8672
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8673
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8674
+ FROM articles
8675
+ WHERE (id = 2)
8676
+ 
8677
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
8678
+ SQL (28.5ms) COMMIT
8679
+ SQL (0.5ms) SELECT count(*) AS count_all FROM `articles` 
8680
+ SQL (0.3ms) SELECT count(*) AS count_all FROM `comments` 
8681
+ SQL (0.5ms) SELECT count(*) AS count_all FROM `article_archives` 
8682
+ SQL (0.2ms) SELECT count(*) AS count_all FROM `comment_archives` 
8683
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
8684
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
8685
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8686
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
8687
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8688
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
8689
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 2) LIMIT 1
8690
+ CommentArchive Load (0.2ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
8691
+ SQL (0.3ms) SHOW TABLES
8692
+ SQL (0.2ms) SELECT version FROM schema_migrations
8693
+ SQL (0.2ms) SHOW TABLES
8694
+ SQL (0.1ms) SELECT version FROM schema_migrations
8695
+ Migrating to CreateFixtures (1)
8696
+ SQL (0.2ms) SHOW TABLES
8697
+ SQL (0.1ms) SELECT version FROM schema_migrations
8698
+ SQL (0.2ms) SHOW TABLES
8699
+ SQL (0.1ms) SELECT version FROM schema_migrations
8700
+ Migrating to CreateFixtures (1)
8701
+ SQL (41.5ms) DROP TABLE `articles`
8702
+ SQL (1.8ms) DROP TABLE `article_archives`
8703
+ SQL (52.0ms) DROP TABLE `comments`
8704
+ SQL (3.3ms) DROP TABLE `comment_archives`
8705
+ SQL (2.5ms) DELETE FROM schema_migrations WHERE version = '1'
8706
+ SQL (0.3ms) SHOW TABLES
8707
+ SQL (0.1ms) SELECT version FROM schema_migrations
8708
+ SQL (0.2ms) SHOW TABLES
8709
+ SQL (0.1ms) SELECT version FROM schema_migrations
8710
+ Migrating to CreateFixtures (1)
8711
+ SQL (1.9ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8712
+ SQL (1.7ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8713
+ SQL (2.2ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8714
+ SQL (2.0ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8715
+ SQL (11.7ms) INSERT INTO schema_migrations (version) VALUES ('1')
8716
+ Article Delete all (0.3ms) DELETE FROM `articles` 
8717
+ SQL (0.1ms) BEGIN
8718
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0, 1)
8719
+ SQL (0.5ms) COMMIT
8720
+ SQL (0.1ms) BEGIN
8721
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0, 2)
8722
+ SQL (0.5ms) COMMIT
8723
+ SQL (0.1ms) BEGIN
8724
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0, 3)
8725
+ SQL (0.5ms) COMMIT
8726
+ SQL (0.1ms) BEGIN
8727
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0, 4)
8728
+ SQL (0.6ms) COMMIT
8729
+ SQL (0.1ms) BEGIN
8730
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0, 5)
8731
+ SQL (0.5ms) COMMIT
8732
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8733
+ SQL (0.1ms) BEGIN
8734
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1, 1)
8735
+ SQL (0.4ms) COMMIT
8736
+ SQL (0.1ms) BEGIN
8737
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2, 2)
8738
+ SQL (0.6ms) COMMIT
8739
+ SQL (0.2ms) BEGIN
8740
+ Comment Create (0.5ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3, 3)
8741
+ SQL (12.3ms) COMMIT
8742
+ SQL (0.1ms) BEGIN
8743
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4, 4)
8744
+ SQL (0.5ms) COMMIT
8745
+ SQL (0.1ms) BEGIN
8746
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5, 5)
8747
+ SQL (2.5ms) COMMIT
8748
+ SQL (0.3ms) BEGIN
8749
+ Comment Load (1.0ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8750
+ SQL (0.4ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8751
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8752
+ FROM comments
8753
+ WHERE (id = 1)
8754
+ 
8755
+ SQL (0.2ms) DELETE FROM comments WHERE (id = 1) 
8756
+ SQL (0.3ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8757
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8758
+ FROM articles
8759
+ WHERE (id = 1)
8760
+ 
8761
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
8762
+ SQL (0.6ms) COMMIT
8763
+ Article Load (0.3ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
8764
+ SQL (0.1ms) BEGIN
8765
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8766
+ SQL (0.2ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8767
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8768
+ FROM comments
8769
+ WHERE (id = 2)
8770
+ 
8771
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 2) 
8772
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8773
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8774
+ FROM articles
8775
+ WHERE (id = 2)
8776
+ 
8777
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
8778
+ SQL (0.5ms) COMMIT
8779
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8780
+ SQL (0.4ms) SHOW TABLES
8781
+ SQL (0.1ms) SELECT version FROM schema_migrations
8782
+ SQL (0.2ms) SHOW TABLES
8783
+ SQL (0.3ms) SELECT version FROM schema_migrations
8784
+ Migrating to CreateFixtures (1)
8785
+ SQL (0.2ms) SHOW TABLES
8786
+ SQL (0.1ms) SELECT version FROM schema_migrations
8787
+ SQL (0.2ms) SHOW TABLES
8788
+ SQL (0.1ms) SELECT version FROM schema_migrations
8789
+ Migrating to CreateFixtures (1)
8790
+ SQL (11.3ms) DROP TABLE `articles`
8791
+ SQL (1.2ms) DROP TABLE `article_archives`
8792
+ SQL (1.2ms) DROP TABLE `comments`
8793
+ SQL (1.3ms) DROP TABLE `comment_archives`
8794
+ SQL (0.6ms) DELETE FROM schema_migrations WHERE version = '1'
8795
+ SQL (0.2ms) SHOW TABLES
8796
+ SQL (0.1ms) SELECT version FROM schema_migrations
8797
+ SQL (0.2ms) SHOW TABLES
8798
+ SQL (0.3ms) SELECT version FROM schema_migrations
8799
+ Migrating to CreateFixtures (1)
8800
+ SQL (2.9ms) CREATE TABLE `articles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8801
+ SQL (1.9ms) CREATE TABLE `article_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `moved_at` datetime) ENGINE=InnoDB
8802
+ SQL (1.7ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8803
+ SQL (3.3ms) CREATE TABLE `comment_archives` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` varchar(255), `read` tinyint(1), `article_id` int(11), `moved_at` datetime) ENGINE=InnoDB
8804
+ SQL (2.2ms) INSERT INTO schema_migrations (version) VALUES ('1')
8805
+ Article Delete all (0.8ms) DELETE FROM `articles` 
8806
+ SQL (0.1ms) BEGIN
8807
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 1 title', 'Article 1 body', 0, 1)
8808
+ SQL (0.5ms) COMMIT
8809
+ SQL (0.1ms) BEGIN
8810
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 2 title', 'Article 2 body', 0, 2)
8811
+ SQL (0.5ms) COMMIT
8812
+ SQL (0.1ms) BEGIN
8813
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 3 title', 'Article 3 body', 0, 3)
8814
+ SQL (0.5ms) COMMIT
8815
+ SQL (0.1ms) BEGIN
8816
+ Article Create (0.1ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 4 title', 'Article 4 body', 0, 4)
8817
+ SQL (0.5ms) COMMIT
8818
+ SQL (0.1ms) BEGIN
8819
+ Article Create (0.2ms) INSERT INTO `articles` (`moved_at`, `title`, `body`, `read`, `id`) VALUES(NULL, 'Article 5 title', 'Article 5 body', 0, 5)
8820
+ SQL (0.5ms) COMMIT
8821
+ Comment Delete all (0.3ms) DELETE FROM `comments` 
8822
+ SQL (0.1ms) BEGIN
8823
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 1 title', 'Comment 1 body', 0, 1, 1)
8824
+ SQL (0.5ms) COMMIT
8825
+ SQL (0.1ms) BEGIN
8826
+ Comment Create (0.1ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 2 title', 'Comment 2 body', 0, 2, 2)
8827
+ SQL (0.4ms) COMMIT
8828
+ SQL (0.1ms) BEGIN
8829
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 3 title', 'Comment 3 body', 0, 3, 3)
8830
+ SQL (0.5ms) COMMIT
8831
+ SQL (0.3ms) BEGIN
8832
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 4 title', 'Comment 4 body', 0, 4, 4)
8833
+ SQL (0.5ms) COMMIT
8834
+ SQL (0.1ms) BEGIN
8835
+ Comment Create (0.2ms) INSERT INTO `comments` (`moved_at`, `title`, `body`, `read`, `id`, `article_id`) VALUES(NULL, 'Comment 5 title', 'Comment 5 body', 0, 5, 5)
8836
+ SQL (10.4ms) COMMIT
8837
+ SQL (0.1ms) BEGIN
8838
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8839
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8840
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8841
+ FROM comments
8842
+ WHERE (id = 1)
8843
+ 
8844
+ SQL (0.1ms) DELETE FROM comments WHERE (id = 1) 
8845
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8846
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8847
+ FROM articles
8848
+ WHERE (id = 1)
8849
+ 
8850
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 1) 
8851
+ SQL (0.5ms) COMMIT
8852
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE ( (id = 2) ) 
8853
+ SQL (0.1ms) BEGIN
8854
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8855
+ SQL (0.3ms)  INSERT INTO comment_archives (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8856
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8857
+ FROM comments
8858
+ WHERE (id = 2)
8859
+ 
8860
+ SQL (0.2ms) DELETE FROM comments WHERE (id = 2) 
8861
+ SQL (0.2ms)  INSERT INTO article_archives (`id`, `title`, `body`, `read`, `moved_at`)
8862
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8863
+ FROM articles
8864
+ WHERE (id = 2)
8865
+ 
8866
+ SQL (0.1ms) DELETE FROM articles WHERE (id = 2) 
8867
+ SQL (0.5ms) COMMIT
8868
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) 
8869
+ SQL (0.1ms) BEGIN
8870
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 1) 
8871
+ SQL (0.3ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8872
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8873
+ FROM comment_archives
8874
+ WHERE (id = 1)
8875
+ 
8876
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 1) 
8877
+ SQL (0.2ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
8878
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8879
+ FROM article_archives
8880
+ WHERE (id = 1)
8881
+ 
8882
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 1) 
8883
+ SQL (0.8ms) COMMIT
8884
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE ( (id = 2) ) 
8885
+ SQL (0.1ms) BEGIN
8886
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.article_id = 2) 
8887
+ SQL (0.2ms)  INSERT INTO comments (`id`, `title`, `body`, `read`, `article_id`, `moved_at`)
8888
+ SELECT `id`, `title`, `body`, `read`, `article_id`, '2010-05-03 21:46:05'
8889
+ FROM comment_archives
8890
+ WHERE (id = 2)
8891
+ 
8892
+ SQL (0.1ms) DELETE FROM comment_archives WHERE (id = 2) 
8893
+ SQL (0.1ms)  INSERT INTO articles (`id`, `title`, `body`, `read`, `moved_at`)
8894
+ SELECT `id`, `title`, `body`, `read`, '2010-05-03 21:46:05'
8895
+ FROM article_archives
8896
+ WHERE (id = 2)
8897
+ 
8898
+ SQL (0.1ms) DELETE FROM article_archives WHERE (id = 2) 
8899
+ SQL (0.5ms) COMMIT
8900
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `articles` 
8901
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comments` 
8902
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `article_archives` 
8903
+ SQL (0.1ms) SELECT count(*) AS count_all FROM `comment_archives` 
8904
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
8905
+ Comment Load (0.2ms) SELECT * FROM `comments` WHERE (`comments`.`id` = 2) LIMIT 1
8906
+ ArticleArchive Load (0.2ms) SELECT * FROM `article_archives` WHERE (`article_archives`.`id` = 1) LIMIT 1
8907
+ CommentArchive Load (0.1ms) SELECT * FROM `comment_archives` WHERE (`comment_archives`.`id` = 2) LIMIT 1
8908
+ Article Load (0.1ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 1) LIMIT 1
8909
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 1) 
8910
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 2) LIMIT 1
8911
+ Comment Load (0.1ms) SELECT * FROM `comments` WHERE (`comments`.article_id = 2) 
8912
+ SQL (0.1ms) BEGIN
8913
+ SQL (0.1ms) INSERT INTO articles () VALUES ()
8914
+ SQL (0.1ms) DELETE FROM articles WHERE id = 6
8915
+ SQL (0.5ms) COMMIT
8916
+ SQL (0.1ms) BEGIN
8917
+ SQL (0.1ms) INSERT INTO articles () VALUES ()
8918
+ SQL (0.1ms) DELETE FROM articles WHERE id = 7
8919
+ SQL (0.5ms) COMMIT
8920
+ Article Load (0.2ms) SELECT * FROM `articles` WHERE (`articles`.`id` = 7) LIMIT 1