archiving 0.2.1 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d7eaeb6598b5ba00ae3d6bdef468545d68d5641
4
- data.tar.gz: 24c623836849c74f9c6ee567acc146da8e84ee8f
3
+ metadata.gz: 625ce4210ddc7e954aea6fe6556b27e8884a0ea2
4
+ data.tar.gz: 040e266a335f12c771500bb5a2999cf1a3b1990a
5
5
  SHA512:
6
- metadata.gz: 3f614efd041c2409ed9b39b12e823f4ba9a41165bec256dc4a64d1faeb0d11897706fb0edb614eb1ad4b9f5ac7cf3cd825bcb52cfe8e372922de501a7941036a
7
- data.tar.gz: d3402e030227800278ed6b73d18bcf3bfba6657b129ca34b31fc031e1ddb6375e385c7f28bf57076d57ae5c015a3c6d3039808627a6722b0ff7d309ffc813613
6
+ metadata.gz: 5a961a4e848ee2fee3785cdde176f036734f3f15c678097fdddda1ca626d1a08c23b1505541bf31223fc7d300691b670ceda970925c12e3240e0785cde0a283e
7
+ data.tar.gz: 31a6b1c13717dafc353dd362e78fe96472d193219545f34403bc15f9162e6870387ec9b7bc52c7cd613941b3b7b7864e07d5ff76220eb98556819e7bf2a8b953
@@ -8,13 +8,16 @@ module Archiving
8
8
  module ClassMethods
9
9
  attr_accessor :archive_table
10
10
 
11
- def has_archive_table
11
+ def has_archive_table(connection: nil)
12
12
  model = name.constantize
13
13
  @archive_model = model.const_set("Archive", Class.new(model))
14
14
  @archive_model.after_initialize do |record|
15
15
  record.readonly! unless record.new_record?
16
16
  end
17
17
  @archive_model.table_name = "#{table_name}_archive"
18
+ if connection
19
+ @archive_model.establish_connection connection
20
+ end
18
21
  end
19
22
 
20
23
  def archive
@@ -192,4 +192,15 @@ class ArchiveTableTest < ActiveSupport::TestCase
192
192
  end
193
193
  end
194
194
 
195
+ test "overriding database connection for archive" do
196
+ assert_not_equal LogOther.connection_config, LogOther.archive.connection_config
197
+ p1 = Post.create!(title: "Post 1", tag: "news")
198
+ l1 = LogOther.create!(note: "Oh", post: p1)
199
+ l1.archive!
200
+ assert_nil Post.find_by_id p1.id
201
+ assert Post.archive.find_by_id p1.id
202
+ assert_nil LogOther.find_by_id l1.id
203
+ assert LogOther.archive.find_by_id l1.id
204
+ end
205
+
195
206
  end
@@ -0,0 +1,7 @@
1
+ class LogOther < ActiveRecord::Base
2
+ belongs_to :post
3
+
4
+ has_archive_table connection: :"other_#{Rails.env}"
5
+ has_archive_associations [:post]
6
+ end
7
+
@@ -10,6 +10,13 @@ development:
10
10
  username: root
11
11
  password:
12
12
 
13
+ other_development:
14
+ adapter: mysql2
15
+ host: localhost
16
+ database: archiving_other_development
17
+ username: root
18
+ password:
19
+
13
20
  # Warning: The database defined as "test" will be erased and
14
21
  # re-generated from your development database when you run "rake".
15
22
  # Do not set this db to the same as development or production.
@@ -20,9 +27,23 @@ test:
20
27
  username: root
21
28
  password:
22
29
 
30
+ other_test:
31
+ adapter: mysql2
32
+ host: 127.0.0.1
33
+ database: archiving_test
34
+ username: root
35
+ password:
36
+
23
37
  production:
24
38
  adapter: mysql2
25
39
  host: localhost
26
40
  database: archiving_production
27
41
  username: root
28
42
  password:
43
+
44
+ other_production:
45
+ adapter: mysql2
46
+ host: localhost
47
+ database: archiving_other_production
48
+ username: root
49
+ password:
@@ -0,0 +1,8 @@
1
+ class CreateLogOther < ActiveRecord::Migration
2
+ def change
3
+ create_table :log_others do |t|
4
+ t.references :post
5
+ t.string :note
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,26 @@
1
+ class CreateLogOtherArchive < ActiveRecord::Migration
2
+ def up
3
+ set_connection do
4
+ create_table :log_others_archive do |t|
5
+ t.references :post
6
+ t.string :note
7
+ end
8
+ end
9
+ end
10
+
11
+ def down
12
+ set_connection do
13
+ drop_table :log_others_archive
14
+ end
15
+ end
16
+
17
+ def set_connection
18
+ connection_was = @connection
19
+ @connection = ActiveRecord::Base.establish_connection(:"other_#{Rails.env}").connection
20
+ yield
21
+ ensure
22
+ @connection = connection_was
23
+ ActiveRecord::Base.remove_connection
24
+ ActiveRecord::Base.establish_connection
25
+ end
26
+ end
@@ -9,48 +9,58 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20140414124125) do
14
+ ActiveRecord::Schema.define(version: 20161103110724) do
15
15
 
16
- create_table "log_days", :force => true do |t|
17
- t.integer "post_id"
16
+ create_table "log_days", force: :cascade do |t|
17
+ t.integer "post_id", limit: 4
18
18
  t.date "day"
19
- t.string "postable_type"
20
- t.integer "postable_id"
19
+ t.string "postable_type", limit: 255
20
+ t.integer "postable_id", limit: 4
21
21
  end
22
22
 
23
- create_table "log_days_archive", :force => true do |t|
24
- t.integer "post_id"
23
+ create_table "log_days_archive", force: :cascade do |t|
24
+ t.integer "post_id", limit: 4
25
25
  t.date "day"
26
- t.string "postable_type"
27
- t.integer "postable_id"
26
+ t.string "postable_type", limit: 255
27
+ t.integer "postable_id", limit: 4
28
28
  end
29
29
 
30
- create_table "log_lines", :force => true do |t|
31
- t.integer "log_day_id"
32
- t.string "descr"
30
+ create_table "log_lines", force: :cascade do |t|
31
+ t.integer "log_day_id", limit: 4
32
+ t.string "descr", limit: 255
33
33
  end
34
34
 
35
- create_table "log_lines_archive", :force => true do |t|
36
- t.integer "log_day_id"
37
- t.string "descr"
35
+ create_table "log_lines_archive", force: :cascade do |t|
36
+ t.integer "log_day_id", limit: 4
37
+ t.string "descr", limit: 255
38
38
  end
39
39
 
40
- create_table "posts", :force => true do |t|
41
- t.string "title"
42
- t.text "body"
43
- t.datetime "created_at", :null => false
44
- t.datetime "updated_at", :null => false
45
- t.string "tag"
40
+ create_table "log_others", force: :cascade do |t|
41
+ t.integer "post_id", limit: 4
42
+ t.string "note", limit: 255
46
43
  end
47
44
 
48
- create_table "posts_archive", :force => true do |t|
49
- t.string "title"
50
- t.text "body"
51
- t.datetime "created_at", :null => false
52
- t.datetime "updated_at", :null => false
53
- t.string "tag"
45
+ create_table "log_others_archive", force: :cascade do |t|
46
+ t.integer "post_id", limit: 4
47
+ t.string "note", limit: 255
48
+ end
49
+
50
+ create_table "posts", force: :cascade do |t|
51
+ t.string "title", limit: 255
52
+ t.text "body", limit: 65535
53
+ t.datetime "created_at"
54
+ t.datetime "updated_at"
55
+ t.string "tag", limit: 255
56
+ end
57
+
58
+ create_table "posts_archive", force: :cascade do |t|
59
+ t.string "title", limit: 255
60
+ t.text "body", limit: 65535
61
+ t.datetime "created_at"
62
+ t.datetime "updated_at"
63
+ t.string "tag", limit: 255
54
64
  end
55
65
 
56
66
  end
@@ -1,15 +1,3226 @@
1
-  (11.1ms) CREATE TABLE `log_days` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
2
-  (7.0ms) CREATE TABLE `log_days_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
3
-  (7.5ms) CREATE TABLE `log_lines` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
4
-  (8.7ms) CREATE TABLE `log_lines_archive` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
5
-  (12.2ms) CREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
6
-  (7.6ms) CREATE TABLE `posts_archive` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
7
-  (8.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
8
-  (9.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
9
-  (0.3ms) SELECT version FROM `schema_migrations`
10
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
11
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (18.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
4
+  (22.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
5
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
6
+ Migrating to CreatePosts (20140220134827)
7
+  (11.7ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
8
+  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140220134827')
9
+ Migrating to PostsArchive (20140220140852)
10
+  (15.4ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
11
+  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140220140852')
12
+ Migrating to PostsTag (20140220140952)
13
+  (19.2ms) ALTER TABLE `posts` ADD `tag` varchar(255)
14
+  (10.3ms) ALTER TABLE `posts_archive` ADD `tag` varchar(255)
15
+  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140220140952')
16
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
17
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
18
+  (26.3ms) DROP DATABASE IF EXISTS `archiving_test`
19
+  (2.8ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
20
+  (17.9ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
21
+  (15.0ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
22
+  (15.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
23
+  (18.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
24
+  (0.2ms) SELECT version FROM `schema_migrations`
25
+  (0.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
26
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
27
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
28
+ Connecting to database specified by database.yml
29
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
30
+  (4.7ms) DROP DATABASE IF EXISTS `archiving_test`
31
+  (0.3ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
32
+  (24.8ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
33
+  (16.5ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
34
+  (7.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
35
+  (13.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
36
+  (0.2ms) SELECT version FROM `schema_migrations`
37
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
38
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
39
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
40
+ Connecting to database specified by database.yml
41
+ Connecting to database specified by database.yml
42
+ Connecting to database specified by database.yml
43
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
44
+ Migrating to CreatePosts (20140220134827)
45
+ Migrating to PostsArchive (20140220140852)
46
+ Migrating to PostsTag (20140220140952)
47
+ Migrating to CreateLogs (20140317201702)
48
+  (29.9ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
49
+  (18.0ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
50
+  (6.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140317201702')
51
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
52
+ Connecting to database specified by database.yml
53
+  (0.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
54
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
55
+ Migrating to CreateLogs (20140317201702)
56
+  (18.8ms) DROP TABLE `log_lines`
57
+  (6.9ms) DROP TABLE `log_days`
58
+  (1.3ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140317201702'
59
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
60
+ Connecting to database specified by database.yml
61
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
62
+ Migrating to CreatePosts (20140220134827)
63
+ Migrating to PostsArchive (20140220140852)
64
+ Migrating to PostsTag (20140220140952)
65
+ Migrating to CreateLogs (20140317201702)
66
+  (19.6ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
67
+  (7.7ms) CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
68
+  (8.1ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
69
+  (14.9ms) CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
70
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140317201702')
71
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
72
+ Connecting to database specified by database.yml
73
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
74
+  (7.1ms) DROP DATABASE IF EXISTS `archiving_test`
75
+  (0.5ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
76
+  (19.4ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
77
+  (17.2ms) CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
78
+  (14.4ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
79
+  (12.7ms) CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
80
+  (7.3ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
81
+  (7.2ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
82
+  (6.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
83
+  (16.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
84
+  (0.2ms) SELECT version FROM `schema_migrations`
85
+  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
86
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
87
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
88
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
89
+ Connecting to database specified by database.yml
90
+ Connecting to database specified by database.yml
91
+  (239.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
92
+ Migrating to CreatePosts (20140220134827)
93
+ Migrating to PostsArchive (20140220140852)
94
+ Migrating to PostsTag (20140220140952)
95
+ Migrating to CreateLogs (20140317201702)
96
+ Migrating to CreatePostableOnLogDay (20140414124125)
97
+  (13.6ms) ALTER TABLE `log_lines` ADD `postable` reference
98
+ Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reference' at line 1: ALTER TABLE `log_lines` ADD `postable` reference
99
+ Connecting to database specified by database.yml
100
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
101
+ Migrating to CreatePosts (20140220134827)
102
+ Migrating to PostsArchive (20140220140852)
103
+ Migrating to PostsTag (20140220140952)
104
+ Migrating to CreateLogs (20140317201702)
105
+ Migrating to CreatePostableOnLogDay (20140414124125)
106
+  (106.1ms) ALTER TABLE `log_lines` ADD `postable_type` varchar(255)
107
+  (19.8ms) ALTER TABLE `log_lines` ADD `postable_id` int(11)
108
+  (7.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
109
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
110
+ Connecting to database specified by database.yml
111
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
112
+  (54.6ms) DROP DATABASE IF EXISTS `archiving_test`
113
+  (3.4ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
114
+  (34.7ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
115
+  (34.1ms) CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
116
+  (12.9ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255), `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
117
+  (11.5ms) CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
118
+  (29.2ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
119
+  (15.9ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
120
+  (11.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
121
+  (28.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
122
+  (0.2ms) SELECT version FROM `schema_migrations`
123
+  (0.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
124
+  (2.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
125
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
126
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
127
+  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
128
+ Connecting to database specified by database.yml
129
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
130
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
131
+ Migrating to CreatePostableOnLogDay (20140414124125)
132
+  (61.0ms) ALTER TABLE `log_lines` DROP `postable_id`
133
+  (49.3ms) ALTER TABLE `log_lines` DROP `postable_type`
134
+  (20.0ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'
135
+  (1.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
136
+ Connecting to database specified by database.yml
137
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
138
+ Migrating to CreatePosts (20140220134827)
139
+ Migrating to PostsArchive (20140220140852)
140
+ Migrating to PostsTag (20140220140952)
141
+ Migrating to CreateLogs (20140317201702)
142
+ Migrating to CreatePostableOnLogDay (20140414124125)
143
+  (19.1ms) ALTER TABLE `log_days` ADD `postable_type` varchar(255)
144
+  (11.7ms) ALTER TABLE `log_days` ADD `postable_id` int(11)
145
+  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
146
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
147
+ Connecting to database specified by database.yml
148
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
149
+  (11.5ms) DROP DATABASE IF EXISTS `archiving_test`
150
+  (0.3ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
151
+  (20.4ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
152
+  (7.2ms) CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
153
+  (13.6ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
154
+  (14.9ms) CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
155
+  (13.7ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
156
+  (12.5ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
157
+  (8.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
158
+  (13.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
159
+  (0.2ms) SELECT version FROM `schema_migrations`
160
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
161
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
162
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
163
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
164
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
165
+ Connecting to database specified by database.yml
166
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
167
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
168
+ Migrating to CreatePostableOnLogDay (20140414124125)
169
+  (32.0ms) ALTER TABLE `log_days` DROP `postable_id`
170
+  (21.7ms) ALTER TABLE `log_days` DROP `postable_type`
171
+  (1.2ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'
172
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
173
+ Connecting to database specified by database.yml
174
+  (0.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
175
+ Migrating to CreatePosts (20140220134827)
176
+ Migrating to PostsArchive (20140220140852)
177
+ Migrating to PostsTag (20140220140952)
178
+ Migrating to CreateLogs (20140317201702)
179
+ Migrating to CreatePostableOnLogDay (20140414124125)
180
+  (11.7ms) ALTER TABLE `log_days` ADD `postable_type` varchar(255)
181
+  (14.8ms) ALTER TABLE `log_days` ADD `postable_id` int(11)
182
+  (30.3ms) ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
183
+  (16.6ms) ALTER TABLE `log_days_archive` ADD `postable_id` int(11)
184
+  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
185
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
186
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
187
+  (37.9ms) DROP DATABASE IF EXISTS `archiving_test`
188
+  (0.6ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
189
+  (18.4ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
190
+  (16.8ms) CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
191
+  (17.3ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
192
+  (12.6ms) CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
193
+  (25.6ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
194
+  (7.6ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
195
+  (7.3ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
196
+  (21.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
197
+  (0.2ms) SELECT version FROM `schema_migrations`
198
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
199
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
200
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
201
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
202
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
203
+ Connecting to database specified by database.yml
204
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
205
+ Migrating to CreatePosts (20140220134827)
206
+ Migrating to PostsArchive (20140220140852)
207
+ Migrating to PostsTag (20140220140952)
208
+ Migrating to CreateLogs (20140317201702)
209
+ Migrating to CreatePostableOnLogDay (20140414124125)
210
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
211
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
212
+  (27.6ms) DROP DATABASE IF EXISTS `archiving_test`
213
+  (0.6ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
214
+  (21.4ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
215
+  (7.2ms) CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
216
+  (7.5ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
217
+  (12.4ms) CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
218
+  (14.6ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
219
+  (12.4ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
220
+  (12.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
221
+  (13.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
222
+  (0.2ms) SELECT version FROM `schema_migrations`
223
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
224
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
225
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
226
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
227
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
228
+ Connecting to database specified by database.yml
229
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
230
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
231
+ Migrating to CreatePostableOnLogDay (20140414124125)
232
+  (25.7ms) ALTER TABLE `log_days_archive` DROP `postable_id`
233
+  (10.5ms) ALTER TABLE `log_days_archive` DROP `postable_type`
234
+  (10.0ms) ALTER TABLE `log_days` DROP `postable_id`
235
+  (18.7ms) ALTER TABLE `log_days` DROP `postable_type`
236
+  (0.7ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'
237
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
238
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
239
+ Migrating to CreatePosts (20140220134827)
240
+ Migrating to PostsArchive (20140220140852)
241
+ Migrating to PostsTag (20140220140952)
242
+ Migrating to CreateLogs (20140317201702)
243
+ Migrating to CreatePostableOnLogDay (20140414124125)
244
+  (28.0ms) ALTER TABLE `log_days` ADD `postable_type` varchar(255)
245
+  (10.7ms) ALTER TABLE `log_days` ADD `postable_id` int(11)
246
+  (9.8ms) ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
247
+  (13.2ms) ALTER TABLE `log_days_archive` ADD `postable_id` int(11)
248
+  (1.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
249
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
250
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
251
+  (24.8ms) DROP DATABASE IF EXISTS `archiving_test`
252
+  (0.4ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
253
+  (13.2ms) CREATE TABLE `log_days` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
254
+  (8.1ms) CREATE TABLE `log_days_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
255
+  (6.6ms) CREATE TABLE `log_lines` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
256
+  (6.9ms) CREATE TABLE `log_lines_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
257
+  (15.2ms) CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
258
+  (13.9ms) CREATE TABLE `posts_archive` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `tag` varchar(255)) ENGINE=InnoDB
259
+  (12.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
260
+  (18.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
261
+  (0.2ms) SELECT version FROM `schema_migrations`
262
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
263
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
264
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
265
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
266
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
267
+  (11.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
268
+  (15.4ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
269
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
270
+ Migrating to CreatePosts (20140220134827)
271
+ DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/kongkyed/Documents/src/firmafon/archiving/test/dummy/db/migrate/20140220134827_create_posts.rb:7)
272
+  (12.5ms) CREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
273
+  (0.1ms) BEGIN
274
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140220134827')
275
+  (0.4ms) COMMIT
276
+ Migrating to PostsArchive (20140220140852)
277
+ DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/kongkyed/Documents/src/firmafon/archiving/test/dummy/db/migrate/20140220140852_posts_archive.rb:7)
278
+  (11.8ms) CREATE TABLE `posts_archive` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
279
+  (0.1ms) BEGIN
280
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140220140852')
281
+  (0.3ms) COMMIT
282
+ Migrating to PostsTag (20140220140952)
283
+  (17.5ms) ALTER TABLE `posts` ADD `tag` varchar(255)
284
+  (17.0ms) ALTER TABLE `posts_archive` ADD `tag` varchar(255)
285
+  (0.1ms) BEGIN
286
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140220140952')
287
+  (0.5ms) COMMIT
288
+ Migrating to CreateLogs (20140317201702)
289
+  (9.9ms) CREATE TABLE `log_days` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
290
+  (11.3ms) CREATE TABLE `log_days_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date) ENGINE=InnoDB
291
+  (15.6ms) CREATE TABLE `log_lines` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
292
+  (11.0ms) CREATE TABLE `log_lines_archive` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
293
+  (0.1ms) BEGIN
294
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140317201702')
295
+  (0.3ms) COMMIT
296
+ Migrating to CreatePostableOnLogDay (20140414124125)
297
+  (19.1ms) ALTER TABLE `log_days` ADD `postable_type` varchar(255)
298
+  (18.1ms) ALTER TABLE `log_days` ADD `postable_id` int(11)
299
+  (19.0ms) ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
300
+  (18.1ms) ALTER TABLE `log_days_archive` ADD `postable_id` int(11)
301
+  (0.2ms) BEGIN
302
+ SQL (0.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
303
+  (0.3ms) COMMIT
304
+ Migrating to LogOther (20161103093656)
305
+  (12.4ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
306
+  (0.1ms) BEGIN
307
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
308
+  (0.3ms) COMMIT
309
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
310
+  (6.2ms) SELECT fk.referenced_table_name as 'to_table'
311
+ ,fk.referenced_column_name as 'primary_key'
312
+ ,fk.column_name as 'column'
313
+ ,fk.constraint_name as 'name'
314
+ FROM information_schema.key_column_usage fk
315
+ WHERE fk.referenced_column_name is not null
316
+ AND fk.table_schema = 'archiving_development'
317
+ AND fk.table_name = 'log_days'
318
+
319
+  (0.2ms) SHOW CREATE TABLE `log_days`
320
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
321
+ ,fk.referenced_column_name as 'primary_key'
322
+ ,fk.column_name as 'column'
323
+ ,fk.constraint_name as 'name'
324
+ FROM information_schema.key_column_usage fk
325
+ WHERE fk.referenced_column_name is not null
326
+ AND fk.table_schema = 'archiving_development'
327
+ AND fk.table_name = 'log_days_archive'
328
+
329
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
330
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
331
+ ,fk.referenced_column_name as 'primary_key'
332
+ ,fk.column_name as 'column'
333
+ ,fk.constraint_name as 'name'
334
+ FROM information_schema.key_column_usage fk
335
+ WHERE fk.referenced_column_name is not null
336
+ AND fk.table_schema = 'archiving_development'
337
+ AND fk.table_name = 'log_lines'
338
+
339
+  (0.1ms) SHOW CREATE TABLE `log_lines`
340
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
341
+ ,fk.referenced_column_name as 'primary_key'
342
+ ,fk.column_name as 'column'
343
+ ,fk.constraint_name as 'name'
344
+ FROM information_schema.key_column_usage fk
345
+ WHERE fk.referenced_column_name is not null
346
+ AND fk.table_schema = 'archiving_development'
347
+ AND fk.table_name = 'log_lines_archive'
348
+
349
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
350
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
351
+ ,fk.referenced_column_name as 'primary_key'
352
+ ,fk.column_name as 'column'
353
+ ,fk.constraint_name as 'name'
354
+ FROM information_schema.key_column_usage fk
355
+ WHERE fk.referenced_column_name is not null
356
+ AND fk.table_schema = 'archiving_development'
357
+ AND fk.table_name = 'log_others'
358
+
359
+  (0.1ms) SHOW CREATE TABLE `log_others`
360
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
361
+ ,fk.referenced_column_name as 'primary_key'
362
+ ,fk.column_name as 'column'
363
+ ,fk.constraint_name as 'name'
364
+ FROM information_schema.key_column_usage fk
365
+ WHERE fk.referenced_column_name is not null
366
+ AND fk.table_schema = 'archiving_development'
367
+ AND fk.table_name = 'posts'
368
+
369
+  (0.1ms) SHOW CREATE TABLE `posts`
370
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
371
+ ,fk.referenced_column_name as 'primary_key'
372
+ ,fk.column_name as 'column'
373
+ ,fk.constraint_name as 'name'
374
+ FROM information_schema.key_column_usage fk
375
+ WHERE fk.referenced_column_name is not null
376
+ AND fk.table_schema = 'archiving_development'
377
+ AND fk.table_name = 'posts_archive'
378
+
379
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
380
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
381
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
382
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
383
+ ,fk.referenced_column_name as 'primary_key'
384
+ ,fk.column_name as 'column'
385
+ ,fk.constraint_name as 'name'
386
+ FROM information_schema.key_column_usage fk
387
+ WHERE fk.referenced_column_name is not null
388
+ AND fk.table_schema = 'archiving_development'
389
+ AND fk.table_name = 'log_days'
390
+ 
391
+  (0.1ms) SHOW CREATE TABLE `log_days`
392
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
393
+ ,fk.referenced_column_name as 'primary_key'
394
+ ,fk.column_name as 'column'
395
+ ,fk.constraint_name as 'name'
396
+ FROM information_schema.key_column_usage fk
397
+ WHERE fk.referenced_column_name is not null
398
+ AND fk.table_schema = 'archiving_development'
399
+ AND fk.table_name = 'log_days_archive'
400
+ 
401
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
402
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
403
+ ,fk.referenced_column_name as 'primary_key'
404
+ ,fk.column_name as 'column'
405
+ ,fk.constraint_name as 'name'
406
+ FROM information_schema.key_column_usage fk
407
+ WHERE fk.referenced_column_name is not null
408
+ AND fk.table_schema = 'archiving_development'
409
+ AND fk.table_name = 'log_lines'
410
+ 
411
+  (0.1ms) SHOW CREATE TABLE `log_lines`
412
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
413
+ ,fk.referenced_column_name as 'primary_key'
414
+ ,fk.column_name as 'column'
415
+ ,fk.constraint_name as 'name'
416
+ FROM information_schema.key_column_usage fk
417
+ WHERE fk.referenced_column_name is not null
418
+ AND fk.table_schema = 'archiving_development'
419
+ AND fk.table_name = 'log_lines_archive'
420
+ 
421
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
422
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
423
+ ,fk.referenced_column_name as 'primary_key'
424
+ ,fk.column_name as 'column'
425
+ ,fk.constraint_name as 'name'
426
+ FROM information_schema.key_column_usage fk
427
+ WHERE fk.referenced_column_name is not null
428
+ AND fk.table_schema = 'archiving_development'
429
+ AND fk.table_name = 'log_others'
430
+ 
431
+  (0.1ms) SHOW CREATE TABLE `log_others`
432
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
433
+ ,fk.referenced_column_name as 'primary_key'
434
+ ,fk.column_name as 'column'
435
+ ,fk.constraint_name as 'name'
436
+ FROM information_schema.key_column_usage fk
437
+ WHERE fk.referenced_column_name is not null
438
+ AND fk.table_schema = 'archiving_development'
439
+ AND fk.table_name = 'posts'
440
+ 
441
+  (0.3ms) SHOW CREATE TABLE `posts`
442
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
443
+ ,fk.referenced_column_name as 'primary_key'
444
+ ,fk.column_name as 'column'
445
+ ,fk.constraint_name as 'name'
446
+ FROM information_schema.key_column_usage fk
447
+ WHERE fk.referenced_column_name is not null
448
+ AND fk.table_schema = 'archiving_development'
449
+ AND fk.table_name = 'posts_archive'
450
+ 
451
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
452
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
453
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
454
+ Migrating to LogOther (20161103093656)
455
+  (24.5ms) DROP TABLE `log_others`
456
+ SQL (28.7ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
457
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
458
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
459
+ ,fk.referenced_column_name as 'primary_key'
460
+ ,fk.column_name as 'column'
461
+ ,fk.constraint_name as 'name'
462
+ FROM information_schema.key_column_usage fk
463
+ WHERE fk.referenced_column_name is not null
464
+ AND fk.table_schema = 'archiving_development'
465
+ AND fk.table_name = 'log_days'
466
+
467
+  (0.1ms) SHOW CREATE TABLE `log_days`
468
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
469
+ ,fk.referenced_column_name as 'primary_key'
470
+ ,fk.column_name as 'column'
471
+ ,fk.constraint_name as 'name'
472
+ FROM information_schema.key_column_usage fk
473
+ WHERE fk.referenced_column_name is not null
474
+ AND fk.table_schema = 'archiving_development'
475
+ AND fk.table_name = 'log_days_archive'
476
+
477
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
478
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
479
+ ,fk.referenced_column_name as 'primary_key'
480
+ ,fk.column_name as 'column'
481
+ ,fk.constraint_name as 'name'
482
+ FROM information_schema.key_column_usage fk
483
+ WHERE fk.referenced_column_name is not null
484
+ AND fk.table_schema = 'archiving_development'
485
+ AND fk.table_name = 'log_lines'
486
+
487
+  (0.1ms) SHOW CREATE TABLE `log_lines`
488
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
489
+ ,fk.referenced_column_name as 'primary_key'
490
+ ,fk.column_name as 'column'
491
+ ,fk.constraint_name as 'name'
492
+ FROM information_schema.key_column_usage fk
493
+ WHERE fk.referenced_column_name is not null
494
+ AND fk.table_schema = 'archiving_development'
495
+ AND fk.table_name = 'log_lines_archive'
496
+
497
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
498
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
499
+ ,fk.referenced_column_name as 'primary_key'
500
+ ,fk.column_name as 'column'
501
+ ,fk.constraint_name as 'name'
502
+ FROM information_schema.key_column_usage fk
503
+ WHERE fk.referenced_column_name is not null
504
+ AND fk.table_schema = 'archiving_development'
505
+ AND fk.table_name = 'posts'
506
+
507
+  (0.1ms) SHOW CREATE TABLE `posts`
508
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
509
+ ,fk.referenced_column_name as 'primary_key'
510
+ ,fk.column_name as 'column'
511
+ ,fk.constraint_name as 'name'
512
+ FROM information_schema.key_column_usage fk
513
+ WHERE fk.referenced_column_name is not null
514
+ AND fk.table_schema = 'archiving_development'
515
+ AND fk.table_name = 'posts_archive'
516
+
517
+  (0.2ms) SHOW CREATE TABLE `posts_archive`
518
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
519
+ Migrating to LogOther (20161103093656)
520
+  (53.9ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
521
+  (10.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
522
+  (0.1ms) BEGIN
523
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
524
+  (22.5ms) COMMIT
525
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
526
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
527
+ ,fk.referenced_column_name as 'primary_key'
528
+ ,fk.column_name as 'column'
529
+ ,fk.constraint_name as 'name'
530
+ FROM information_schema.key_column_usage fk
531
+ WHERE fk.referenced_column_name is not null
532
+ AND fk.table_schema = 'archiving_development'
533
+ AND fk.table_name = 'log_days'
534
+
535
+  (0.1ms) SHOW CREATE TABLE `log_days`
536
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
537
+ ,fk.referenced_column_name as 'primary_key'
538
+ ,fk.column_name as 'column'
539
+ ,fk.constraint_name as 'name'
540
+ FROM information_schema.key_column_usage fk
541
+ WHERE fk.referenced_column_name is not null
542
+ AND fk.table_schema = 'archiving_development'
543
+ AND fk.table_name = 'log_days_archive'
544
+
545
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
546
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
547
+ ,fk.referenced_column_name as 'primary_key'
548
+ ,fk.column_name as 'column'
549
+ ,fk.constraint_name as 'name'
550
+ FROM information_schema.key_column_usage fk
551
+ WHERE fk.referenced_column_name is not null
552
+ AND fk.table_schema = 'archiving_development'
553
+ AND fk.table_name = 'log_lines'
554
+
555
+  (0.1ms) SHOW CREATE TABLE `log_lines`
556
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
557
+ ,fk.referenced_column_name as 'primary_key'
558
+ ,fk.column_name as 'column'
559
+ ,fk.constraint_name as 'name'
560
+ FROM information_schema.key_column_usage fk
561
+ WHERE fk.referenced_column_name is not null
562
+ AND fk.table_schema = 'archiving_development'
563
+ AND fk.table_name = 'log_lines_archive'
564
+
565
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
566
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
567
+ ,fk.referenced_column_name as 'primary_key'
568
+ ,fk.column_name as 'column'
569
+ ,fk.constraint_name as 'name'
570
+ FROM information_schema.key_column_usage fk
571
+ WHERE fk.referenced_column_name is not null
572
+ AND fk.table_schema = 'archiving_development'
573
+ AND fk.table_name = 'log_others'
574
+
575
+  (0.1ms) SHOW CREATE TABLE `log_others`
576
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
577
+ ,fk.referenced_column_name as 'primary_key'
578
+ ,fk.column_name as 'column'
579
+ ,fk.constraint_name as 'name'
580
+ FROM information_schema.key_column_usage fk
581
+ WHERE fk.referenced_column_name is not null
582
+ AND fk.table_schema = 'archiving_development'
583
+ AND fk.table_name = 'log_others_archive'
584
+
585
+  (0.1ms) SHOW CREATE TABLE `log_others_archive`
586
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
587
+ ,fk.referenced_column_name as 'primary_key'
588
+ ,fk.column_name as 'column'
589
+ ,fk.constraint_name as 'name'
590
+ FROM information_schema.key_column_usage fk
591
+ WHERE fk.referenced_column_name is not null
592
+ AND fk.table_schema = 'archiving_development'
593
+ AND fk.table_name = 'posts'
594
+
595
+  (0.1ms) SHOW CREATE TABLE `posts`
596
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
597
+ ,fk.referenced_column_name as 'primary_key'
598
+ ,fk.column_name as 'column'
599
+ ,fk.constraint_name as 'name'
600
+ FROM information_schema.key_column_usage fk
601
+ WHERE fk.referenced_column_name is not null
602
+ AND fk.table_schema = 'archiving_development'
603
+ AND fk.table_name = 'posts_archive'
604
+
605
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
606
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
607
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
608
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
609
+ ,fk.referenced_column_name as 'primary_key'
610
+ ,fk.column_name as 'column'
611
+ ,fk.constraint_name as 'name'
612
+ FROM information_schema.key_column_usage fk
613
+ WHERE fk.referenced_column_name is not null
614
+ AND fk.table_schema = 'archiving_development'
615
+ AND fk.table_name = 'log_days'
616
+ 
617
+  (0.2ms) SHOW CREATE TABLE `log_days`
618
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
619
+ ,fk.referenced_column_name as 'primary_key'
620
+ ,fk.column_name as 'column'
621
+ ,fk.constraint_name as 'name'
622
+ FROM information_schema.key_column_usage fk
623
+ WHERE fk.referenced_column_name is not null
624
+ AND fk.table_schema = 'archiving_development'
625
+ AND fk.table_name = 'log_days_archive'
626
+ 
627
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
628
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
629
+ ,fk.referenced_column_name as 'primary_key'
630
+ ,fk.column_name as 'column'
631
+ ,fk.constraint_name as 'name'
632
+ FROM information_schema.key_column_usage fk
633
+ WHERE fk.referenced_column_name is not null
634
+ AND fk.table_schema = 'archiving_development'
635
+ AND fk.table_name = 'log_lines'
636
+ 
637
+  (0.1ms) SHOW CREATE TABLE `log_lines`
638
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
639
+ ,fk.referenced_column_name as 'primary_key'
640
+ ,fk.column_name as 'column'
641
+ ,fk.constraint_name as 'name'
642
+ FROM information_schema.key_column_usage fk
643
+ WHERE fk.referenced_column_name is not null
644
+ AND fk.table_schema = 'archiving_development'
645
+ AND fk.table_name = 'log_lines_archive'
646
+ 
647
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
648
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
649
+ ,fk.referenced_column_name as 'primary_key'
650
+ ,fk.column_name as 'column'
651
+ ,fk.constraint_name as 'name'
652
+ FROM information_schema.key_column_usage fk
653
+ WHERE fk.referenced_column_name is not null
654
+ AND fk.table_schema = 'archiving_development'
655
+ AND fk.table_name = 'log_others'
656
+ 
657
+  (0.2ms) SHOW CREATE TABLE `log_others`
658
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
659
+ ,fk.referenced_column_name as 'primary_key'
660
+ ,fk.column_name as 'column'
661
+ ,fk.constraint_name as 'name'
662
+ FROM information_schema.key_column_usage fk
663
+ WHERE fk.referenced_column_name is not null
664
+ AND fk.table_schema = 'archiving_development'
665
+ AND fk.table_name = 'log_others_archive'
666
+ 
667
+  (0.1ms) SHOW CREATE TABLE `log_others_archive`
668
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
669
+ ,fk.referenced_column_name as 'primary_key'
670
+ ,fk.column_name as 'column'
671
+ ,fk.constraint_name as 'name'
672
+ FROM information_schema.key_column_usage fk
673
+ WHERE fk.referenced_column_name is not null
674
+ AND fk.table_schema = 'archiving_development'
675
+ AND fk.table_name = 'posts'
676
+ 
677
+  (0.1ms) SHOW CREATE TABLE `posts`
678
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
679
+ ,fk.referenced_column_name as 'primary_key'
680
+ ,fk.column_name as 'column'
681
+ ,fk.constraint_name as 'name'
682
+ FROM information_schema.key_column_usage fk
683
+ WHERE fk.referenced_column_name is not null
684
+ AND fk.table_schema = 'archiving_development'
685
+ AND fk.table_name = 'posts_archive'
686
+ 
687
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
688
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
689
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
690
+ Migrating to LogOther (20161103093656)
691
+  (26.0ms) DROP TABLE `log_others_archive`
692
+  (1.9ms) DROP TABLE `log_others`
693
+ SQL (5.9ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
694
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
695
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
696
+ ,fk.referenced_column_name as 'primary_key'
697
+ ,fk.column_name as 'column'
698
+ ,fk.constraint_name as 'name'
699
+ FROM information_schema.key_column_usage fk
700
+ WHERE fk.referenced_column_name is not null
701
+ AND fk.table_schema = 'archiving_development'
702
+ AND fk.table_name = 'log_days'
703
+ 
704
+  (0.1ms) SHOW CREATE TABLE `log_days`
705
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
706
+ ,fk.referenced_column_name as 'primary_key'
707
+ ,fk.column_name as 'column'
708
+ ,fk.constraint_name as 'name'
709
+ FROM information_schema.key_column_usage fk
710
+ WHERE fk.referenced_column_name is not null
711
+ AND fk.table_schema = 'archiving_development'
712
+ AND fk.table_name = 'log_days_archive'
713
+ 
714
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
715
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
716
+ ,fk.referenced_column_name as 'primary_key'
717
+ ,fk.column_name as 'column'
718
+ ,fk.constraint_name as 'name'
719
+ FROM information_schema.key_column_usage fk
720
+ WHERE fk.referenced_column_name is not null
721
+ AND fk.table_schema = 'archiving_development'
722
+ AND fk.table_name = 'log_lines'
723
+ 
724
+  (0.1ms) SHOW CREATE TABLE `log_lines`
725
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
726
+ ,fk.referenced_column_name as 'primary_key'
727
+ ,fk.column_name as 'column'
728
+ ,fk.constraint_name as 'name'
729
+ FROM information_schema.key_column_usage fk
730
+ WHERE fk.referenced_column_name is not null
731
+ AND fk.table_schema = 'archiving_development'
732
+ AND fk.table_name = 'log_lines_archive'
733
+ 
734
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
735
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
736
+ ,fk.referenced_column_name as 'primary_key'
737
+ ,fk.column_name as 'column'
738
+ ,fk.constraint_name as 'name'
739
+ FROM information_schema.key_column_usage fk
740
+ WHERE fk.referenced_column_name is not null
741
+ AND fk.table_schema = 'archiving_development'
742
+ AND fk.table_name = 'posts'
743
+ 
744
+  (0.1ms) SHOW CREATE TABLE `posts`
745
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
746
+ ,fk.referenced_column_name as 'primary_key'
747
+ ,fk.column_name as 'column'
748
+ ,fk.constraint_name as 'name'
749
+ FROM information_schema.key_column_usage fk
750
+ WHERE fk.referenced_column_name is not null
751
+ AND fk.table_schema = 'archiving_development'
752
+ AND fk.table_name = 'posts_archive'
753
+ 
754
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
755
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
756
+ Migrating to LogOther (20161103093656)
757
+  (12.0ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
758
+  (10.5ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
759
+  (0.2ms) BEGIN
760
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
761
+  (10.9ms) COMMIT
762
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
763
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
764
+ ,fk.referenced_column_name as 'primary_key'
765
+ ,fk.column_name as 'column'
766
+ ,fk.constraint_name as 'name'
767
+ FROM information_schema.key_column_usage fk
768
+ WHERE fk.referenced_column_name is not null
769
+ AND fk.table_schema = 'archiving_development'
770
+ AND fk.table_name = 'log_days'
771
+
772
+  (0.1ms) SHOW CREATE TABLE `log_days`
773
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
774
+ ,fk.referenced_column_name as 'primary_key'
775
+ ,fk.column_name as 'column'
776
+ ,fk.constraint_name as 'name'
777
+ FROM information_schema.key_column_usage fk
778
+ WHERE fk.referenced_column_name is not null
779
+ AND fk.table_schema = 'archiving_development'
780
+ AND fk.table_name = 'log_days_archive'
781
+
782
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
783
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
784
+ ,fk.referenced_column_name as 'primary_key'
785
+ ,fk.column_name as 'column'
786
+ ,fk.constraint_name as 'name'
787
+ FROM information_schema.key_column_usage fk
788
+ WHERE fk.referenced_column_name is not null
789
+ AND fk.table_schema = 'archiving_development'
790
+ AND fk.table_name = 'log_lines'
791
+
792
+  (0.1ms) SHOW CREATE TABLE `log_lines`
793
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
794
+ ,fk.referenced_column_name as 'primary_key'
795
+ ,fk.column_name as 'column'
796
+ ,fk.constraint_name as 'name'
797
+ FROM information_schema.key_column_usage fk
798
+ WHERE fk.referenced_column_name is not null
799
+ AND fk.table_schema = 'archiving_development'
800
+ AND fk.table_name = 'log_lines_archive'
801
+
802
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
803
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
804
+ ,fk.referenced_column_name as 'primary_key'
805
+ ,fk.column_name as 'column'
806
+ ,fk.constraint_name as 'name'
807
+ FROM information_schema.key_column_usage fk
808
+ WHERE fk.referenced_column_name is not null
809
+ AND fk.table_schema = 'archiving_development'
810
+ AND fk.table_name = 'log_others'
811
+
812
+  (0.1ms) SHOW CREATE TABLE `log_others`
813
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
814
+ ,fk.referenced_column_name as 'primary_key'
815
+ ,fk.column_name as 'column'
816
+ ,fk.constraint_name as 'name'
817
+ FROM information_schema.key_column_usage fk
818
+ WHERE fk.referenced_column_name is not null
819
+ AND fk.table_schema = 'archiving_development'
820
+ AND fk.table_name = 'log_others_archive'
821
+
822
+  (0.1ms) SHOW CREATE TABLE `log_others_archive`
823
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
824
+ ,fk.referenced_column_name as 'primary_key'
825
+ ,fk.column_name as 'column'
826
+ ,fk.constraint_name as 'name'
827
+ FROM information_schema.key_column_usage fk
828
+ WHERE fk.referenced_column_name is not null
829
+ AND fk.table_schema = 'archiving_development'
830
+ AND fk.table_name = 'posts'
831
+
832
+  (0.2ms) SHOW CREATE TABLE `posts`
833
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
834
+ ,fk.referenced_column_name as 'primary_key'
835
+ ,fk.column_name as 'column'
836
+ ,fk.constraint_name as 'name'
837
+ FROM information_schema.key_column_usage fk
838
+ WHERE fk.referenced_column_name is not null
839
+ AND fk.table_schema = 'archiving_development'
840
+ AND fk.table_name = 'posts_archive'
841
+
842
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
843
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
844
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
845
+ Migrating to LogOther (20161103093656)
846
+  (0.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
847
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
848
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
849
+ Migrating to LogOther (20161103093656)
850
+  (2.1ms) DROP TABLE `log_others_archive`
851
+  (1.3ms) DROP TABLE `log_others`
852
+ SQL (5.8ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
853
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
854
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
855
+ ,fk.referenced_column_name as 'primary_key'
856
+ ,fk.column_name as 'column'
857
+ ,fk.constraint_name as 'name'
858
+ FROM information_schema.key_column_usage fk
859
+ WHERE fk.referenced_column_name is not null
860
+ AND fk.table_schema = 'archiving_development'
861
+ AND fk.table_name = 'log_days'
862
+ 
863
+  (0.1ms) SHOW CREATE TABLE `log_days`
864
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
865
+ ,fk.referenced_column_name as 'primary_key'
866
+ ,fk.column_name as 'column'
867
+ ,fk.constraint_name as 'name'
868
+ FROM information_schema.key_column_usage fk
869
+ WHERE fk.referenced_column_name is not null
870
+ AND fk.table_schema = 'archiving_development'
871
+ AND fk.table_name = 'log_days_archive'
872
+ 
873
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
874
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
875
+ ,fk.referenced_column_name as 'primary_key'
876
+ ,fk.column_name as 'column'
877
+ ,fk.constraint_name as 'name'
878
+ FROM information_schema.key_column_usage fk
879
+ WHERE fk.referenced_column_name is not null
880
+ AND fk.table_schema = 'archiving_development'
881
+ AND fk.table_name = 'log_lines'
882
+ 
883
+  (0.1ms) SHOW CREATE TABLE `log_lines`
884
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
885
+ ,fk.referenced_column_name as 'primary_key'
886
+ ,fk.column_name as 'column'
887
+ ,fk.constraint_name as 'name'
888
+ FROM information_schema.key_column_usage fk
889
+ WHERE fk.referenced_column_name is not null
890
+ AND fk.table_schema = 'archiving_development'
891
+ AND fk.table_name = 'log_lines_archive'
892
+ 
893
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
894
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
895
+ ,fk.referenced_column_name as 'primary_key'
896
+ ,fk.column_name as 'column'
897
+ ,fk.constraint_name as 'name'
898
+ FROM information_schema.key_column_usage fk
899
+ WHERE fk.referenced_column_name is not null
900
+ AND fk.table_schema = 'archiving_development'
901
+ AND fk.table_name = 'posts'
902
+ 
903
+  (0.1ms) SHOW CREATE TABLE `posts`
904
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
905
+ ,fk.referenced_column_name as 'primary_key'
906
+ ,fk.column_name as 'column'
907
+ ,fk.constraint_name as 'name'
908
+ FROM information_schema.key_column_usage fk
909
+ WHERE fk.referenced_column_name is not null
910
+ AND fk.table_schema = 'archiving_development'
911
+ AND fk.table_name = 'posts_archive'
912
+ 
913
+  (0.2ms) SHOW CREATE TABLE `posts_archive`
914
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
915
+ Migrating to LogOther (20161103093656)
916
+  (9.8ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
917
+  (9.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
918
+  (0.1ms) BEGIN
919
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
920
+  (0.3ms) COMMIT
921
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
922
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
923
+ ,fk.referenced_column_name as 'primary_key'
924
+ ,fk.column_name as 'column'
925
+ ,fk.constraint_name as 'name'
926
+ FROM information_schema.key_column_usage fk
927
+ WHERE fk.referenced_column_name is not null
928
+ AND fk.table_schema = 'archiving_development'
929
+ AND fk.table_name = 'log_days'
930
+
931
+  (0.2ms) SHOW CREATE TABLE `log_days`
932
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
933
+ ,fk.referenced_column_name as 'primary_key'
934
+ ,fk.column_name as 'column'
935
+ ,fk.constraint_name as 'name'
936
+ FROM information_schema.key_column_usage fk
937
+ WHERE fk.referenced_column_name is not null
938
+ AND fk.table_schema = 'archiving_development'
939
+ AND fk.table_name = 'log_days_archive'
940
+
941
+  (0.2ms) SHOW CREATE TABLE `log_days_archive`
942
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
943
+ ,fk.referenced_column_name as 'primary_key'
944
+ ,fk.column_name as 'column'
945
+ ,fk.constraint_name as 'name'
946
+ FROM information_schema.key_column_usage fk
947
+ WHERE fk.referenced_column_name is not null
948
+ AND fk.table_schema = 'archiving_development'
949
+ AND fk.table_name = 'log_lines'
950
+
951
+  (0.1ms) SHOW CREATE TABLE `log_lines`
952
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
953
+ ,fk.referenced_column_name as 'primary_key'
954
+ ,fk.column_name as 'column'
955
+ ,fk.constraint_name as 'name'
956
+ FROM information_schema.key_column_usage fk
957
+ WHERE fk.referenced_column_name is not null
958
+ AND fk.table_schema = 'archiving_development'
959
+ AND fk.table_name = 'log_lines_archive'
960
+
961
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
962
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
963
+ ,fk.referenced_column_name as 'primary_key'
964
+ ,fk.column_name as 'column'
965
+ ,fk.constraint_name as 'name'
966
+ FROM information_schema.key_column_usage fk
967
+ WHERE fk.referenced_column_name is not null
968
+ AND fk.table_schema = 'archiving_development'
969
+ AND fk.table_name = 'log_others'
970
+
971
+  (0.2ms) SHOW CREATE TABLE `log_others`
972
+  (0.5ms) SELECT fk.referenced_table_name as 'to_table'
973
+ ,fk.referenced_column_name as 'primary_key'
974
+ ,fk.column_name as 'column'
975
+ ,fk.constraint_name as 'name'
976
+ FROM information_schema.key_column_usage fk
977
+ WHERE fk.referenced_column_name is not null
978
+ AND fk.table_schema = 'archiving_development'
979
+ AND fk.table_name = 'log_others_archive'
980
+
981
+  (0.3ms) SHOW CREATE TABLE `log_others_archive`
982
+  (0.6ms) SELECT fk.referenced_table_name as 'to_table'
983
+ ,fk.referenced_column_name as 'primary_key'
984
+ ,fk.column_name as 'column'
985
+ ,fk.constraint_name as 'name'
986
+ FROM information_schema.key_column_usage fk
987
+ WHERE fk.referenced_column_name is not null
988
+ AND fk.table_schema = 'archiving_development'
989
+ AND fk.table_name = 'posts'
990
+
991
+  (0.4ms) SHOW CREATE TABLE `posts`
992
+  (0.6ms) SELECT fk.referenced_table_name as 'to_table'
993
+ ,fk.referenced_column_name as 'primary_key'
994
+ ,fk.column_name as 'column'
995
+ ,fk.constraint_name as 'name'
996
+ FROM information_schema.key_column_usage fk
997
+ WHERE fk.referenced_column_name is not null
998
+ AND fk.table_schema = 'archiving_development'
999
+ AND fk.table_name = 'posts_archive'
1000
+
1001
+  (0.2ms) SHOW CREATE TABLE `posts_archive`
1002
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1003
+ Migrating to CreateLogOtherArchive (20161103100644)
1004
+  (0.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1005
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1006
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1007
+ Migrating to LogOther (20161103093656)
1008
+  (2.0ms) DROP TABLE `log_others`
1009
+ SQL (0.5ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
1010
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1011
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1012
+ ,fk.referenced_column_name as 'primary_key'
1013
+ ,fk.column_name as 'column'
1014
+ ,fk.constraint_name as 'name'
1015
+ FROM information_schema.key_column_usage fk
1016
+ WHERE fk.referenced_column_name is not null
1017
+ AND fk.table_schema = 'archiving_development'
1018
+ AND fk.table_name = 'log_days'
1019
+
1020
+  (0.1ms) SHOW CREATE TABLE `log_days`
1021
+  (0.7ms) SELECT fk.referenced_table_name as 'to_table'
1022
+ ,fk.referenced_column_name as 'primary_key'
1023
+ ,fk.column_name as 'column'
1024
+ ,fk.constraint_name as 'name'
1025
+ FROM information_schema.key_column_usage fk
1026
+ WHERE fk.referenced_column_name is not null
1027
+ AND fk.table_schema = 'archiving_development'
1028
+ AND fk.table_name = 'log_days_archive'
1029
+
1030
+  (0.2ms) SHOW CREATE TABLE `log_days_archive`
1031
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1032
+ ,fk.referenced_column_name as 'primary_key'
1033
+ ,fk.column_name as 'column'
1034
+ ,fk.constraint_name as 'name'
1035
+ FROM information_schema.key_column_usage fk
1036
+ WHERE fk.referenced_column_name is not null
1037
+ AND fk.table_schema = 'archiving_development'
1038
+ AND fk.table_name = 'log_lines'
1039
+
1040
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1041
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1042
+ ,fk.referenced_column_name as 'primary_key'
1043
+ ,fk.column_name as 'column'
1044
+ ,fk.constraint_name as 'name'
1045
+ FROM information_schema.key_column_usage fk
1046
+ WHERE fk.referenced_column_name is not null
1047
+ AND fk.table_schema = 'archiving_development'
1048
+ AND fk.table_name = 'log_lines_archive'
1049
+
1050
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1051
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1052
+ ,fk.referenced_column_name as 'primary_key'
1053
+ ,fk.column_name as 'column'
1054
+ ,fk.constraint_name as 'name'
1055
+ FROM information_schema.key_column_usage fk
1056
+ WHERE fk.referenced_column_name is not null
1057
+ AND fk.table_schema = 'archiving_development'
1058
+ AND fk.table_name = 'log_others_archive'
1059
+
1060
+  (0.1ms) SHOW CREATE TABLE `log_others_archive`
1061
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1062
+ ,fk.referenced_column_name as 'primary_key'
1063
+ ,fk.column_name as 'column'
1064
+ ,fk.constraint_name as 'name'
1065
+ FROM information_schema.key_column_usage fk
1066
+ WHERE fk.referenced_column_name is not null
1067
+ AND fk.table_schema = 'archiving_development'
1068
+ AND fk.table_name = 'posts'
1069
+
1070
+  (0.1ms) SHOW CREATE TABLE `posts`
1071
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1072
+ ,fk.referenced_column_name as 'primary_key'
1073
+ ,fk.column_name as 'column'
1074
+ ,fk.constraint_name as 'name'
1075
+ FROM information_schema.key_column_usage fk
1076
+ WHERE fk.referenced_column_name is not null
1077
+ AND fk.table_schema = 'archiving_development'
1078
+ AND fk.table_name = 'posts_archive'
1079
+
1080
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1081
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1082
+ Migrating to LogOther (20161103093656)
1083
+  (9.2ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1084
+  (0.1ms) BEGIN
1085
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
1086
+  (0.2ms) COMMIT
1087
+ Migrating to CreateLogOtherArchive (20161103100644)
1088
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1089
+ Migrating to CreateLogOtherArchive (20161103100644)
1090
+  (9.2ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1091
+  (0.1ms) BEGIN
1092
+ SQL (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
1093
+  (0.4ms) COMMIT
1094
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1095
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1096
+ ,fk.referenced_column_name as 'primary_key'
1097
+ ,fk.column_name as 'column'
1098
+ ,fk.constraint_name as 'name'
1099
+ FROM information_schema.key_column_usage fk
1100
+ WHERE fk.referenced_column_name is not null
1101
+ AND fk.table_schema = 'archiving_development'
1102
+ AND fk.table_name = 'log_days'
1103
+ 
1104
+  (0.1ms) SHOW CREATE TABLE `log_days`
1105
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1106
+ ,fk.referenced_column_name as 'primary_key'
1107
+ ,fk.column_name as 'column'
1108
+ ,fk.constraint_name as 'name'
1109
+ FROM information_schema.key_column_usage fk
1110
+ WHERE fk.referenced_column_name is not null
1111
+ AND fk.table_schema = 'archiving_development'
1112
+ AND fk.table_name = 'log_days_archive'
1113
+ 
1114
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1115
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1116
+ ,fk.referenced_column_name as 'primary_key'
1117
+ ,fk.column_name as 'column'
1118
+ ,fk.constraint_name as 'name'
1119
+ FROM information_schema.key_column_usage fk
1120
+ WHERE fk.referenced_column_name is not null
1121
+ AND fk.table_schema = 'archiving_development'
1122
+ AND fk.table_name = 'log_lines'
1123
+ 
1124
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1125
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1126
+ ,fk.referenced_column_name as 'primary_key'
1127
+ ,fk.column_name as 'column'
1128
+ ,fk.constraint_name as 'name'
1129
+ FROM information_schema.key_column_usage fk
1130
+ WHERE fk.referenced_column_name is not null
1131
+ AND fk.table_schema = 'archiving_development'
1132
+ AND fk.table_name = 'log_lines_archive'
1133
+ 
1134
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1135
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1136
+ ,fk.referenced_column_name as 'primary_key'
1137
+ ,fk.column_name as 'column'
1138
+ ,fk.constraint_name as 'name'
1139
+ FROM information_schema.key_column_usage fk
1140
+ WHERE fk.referenced_column_name is not null
1141
+ AND fk.table_schema = 'archiving_development'
1142
+ AND fk.table_name = 'log_others'
1143
+ 
1144
+  (0.1ms) SHOW CREATE TABLE `log_others`
1145
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1146
+ ,fk.referenced_column_name as 'primary_key'
1147
+ ,fk.column_name as 'column'
1148
+ ,fk.constraint_name as 'name'
1149
+ FROM information_schema.key_column_usage fk
1150
+ WHERE fk.referenced_column_name is not null
1151
+ AND fk.table_schema = 'archiving_development'
1152
+ AND fk.table_name = 'log_others_archive'
1153
+ 
1154
+  (0.1ms) SHOW CREATE TABLE `log_others_archive`
1155
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1156
+ ,fk.referenced_column_name as 'primary_key'
1157
+ ,fk.column_name as 'column'
1158
+ ,fk.constraint_name as 'name'
1159
+ FROM information_schema.key_column_usage fk
1160
+ WHERE fk.referenced_column_name is not null
1161
+ AND fk.table_schema = 'archiving_development'
1162
+ AND fk.table_name = 'posts'
1163
+ 
1164
+  (0.1ms) SHOW CREATE TABLE `posts`
1165
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1166
+ ,fk.referenced_column_name as 'primary_key'
1167
+ ,fk.column_name as 'column'
1168
+ ,fk.constraint_name as 'name'
1169
+ FROM information_schema.key_column_usage fk
1170
+ WHERE fk.referenced_column_name is not null
1171
+ AND fk.table_schema = 'archiving_development'
1172
+ AND fk.table_name = 'posts_archive'
1173
+ 
1174
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1175
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1176
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1177
+ Migrating to CreateLogOtherArchive (20161103100644)
1178
+  (2.0ms) DROP TABLE `log_others_archive`
1179
+ SQL (0.4ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
1180
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1181
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1182
+ ,fk.referenced_column_name as 'primary_key'
1183
+ ,fk.column_name as 'column'
1184
+ ,fk.constraint_name as 'name'
1185
+ FROM information_schema.key_column_usage fk
1186
+ WHERE fk.referenced_column_name is not null
1187
+ AND fk.table_schema = 'archiving_development'
1188
+ AND fk.table_name = 'log_days'
1189
+
1190
+  (0.1ms) SHOW CREATE TABLE `log_days`
1191
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1192
+ ,fk.referenced_column_name as 'primary_key'
1193
+ ,fk.column_name as 'column'
1194
+ ,fk.constraint_name as 'name'
1195
+ FROM information_schema.key_column_usage fk
1196
+ WHERE fk.referenced_column_name is not null
1197
+ AND fk.table_schema = 'archiving_development'
1198
+ AND fk.table_name = 'log_days_archive'
1199
+
1200
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1201
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1202
+ ,fk.referenced_column_name as 'primary_key'
1203
+ ,fk.column_name as 'column'
1204
+ ,fk.constraint_name as 'name'
1205
+ FROM information_schema.key_column_usage fk
1206
+ WHERE fk.referenced_column_name is not null
1207
+ AND fk.table_schema = 'archiving_development'
1208
+ AND fk.table_name = 'log_lines'
1209
+
1210
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1211
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1212
+ ,fk.referenced_column_name as 'primary_key'
1213
+ ,fk.column_name as 'column'
1214
+ ,fk.constraint_name as 'name'
1215
+ FROM information_schema.key_column_usage fk
1216
+ WHERE fk.referenced_column_name is not null
1217
+ AND fk.table_schema = 'archiving_development'
1218
+ AND fk.table_name = 'log_lines_archive'
1219
+
1220
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1221
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1222
+ ,fk.referenced_column_name as 'primary_key'
1223
+ ,fk.column_name as 'column'
1224
+ ,fk.constraint_name as 'name'
1225
+ FROM information_schema.key_column_usage fk
1226
+ WHERE fk.referenced_column_name is not null
1227
+ AND fk.table_schema = 'archiving_development'
1228
+ AND fk.table_name = 'log_others'
1229
+
1230
+  (0.1ms) SHOW CREATE TABLE `log_others`
1231
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1232
+ ,fk.referenced_column_name as 'primary_key'
1233
+ ,fk.column_name as 'column'
1234
+ ,fk.constraint_name as 'name'
1235
+ FROM information_schema.key_column_usage fk
1236
+ WHERE fk.referenced_column_name is not null
1237
+ AND fk.table_schema = 'archiving_development'
1238
+ AND fk.table_name = 'posts'
1239
+
1240
+  (0.1ms) SHOW CREATE TABLE `posts`
1241
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1242
+ ,fk.referenced_column_name as 'primary_key'
1243
+ ,fk.column_name as 'column'
1244
+ ,fk.constraint_name as 'name'
1245
+ FROM information_schema.key_column_usage fk
1246
+ WHERE fk.referenced_column_name is not null
1247
+ AND fk.table_schema = 'archiving_development'
1248
+ AND fk.table_name = 'posts_archive'
1249
+
1250
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1251
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1252
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1253
+ Migrating to CreateLogOther (20161103093656)
1254
+  (1.8ms) DROP TABLE `log_others`
1255
+ SQL (0.4ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
1256
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1257
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1258
+ ,fk.referenced_column_name as 'primary_key'
1259
+ ,fk.column_name as 'column'
1260
+ ,fk.constraint_name as 'name'
1261
+ FROM information_schema.key_column_usage fk
1262
+ WHERE fk.referenced_column_name is not null
1263
+ AND fk.table_schema = 'archiving_development'
1264
+ AND fk.table_name = 'log_days'
1265
+
1266
+  (0.1ms) SHOW CREATE TABLE `log_days`
1267
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1268
+ ,fk.referenced_column_name as 'primary_key'
1269
+ ,fk.column_name as 'column'
1270
+ ,fk.constraint_name as 'name'
1271
+ FROM information_schema.key_column_usage fk
1272
+ WHERE fk.referenced_column_name is not null
1273
+ AND fk.table_schema = 'archiving_development'
1274
+ AND fk.table_name = 'log_days_archive'
1275
+
1276
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1277
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1278
+ ,fk.referenced_column_name as 'primary_key'
1279
+ ,fk.column_name as 'column'
1280
+ ,fk.constraint_name as 'name'
1281
+ FROM information_schema.key_column_usage fk
1282
+ WHERE fk.referenced_column_name is not null
1283
+ AND fk.table_schema = 'archiving_development'
1284
+ AND fk.table_name = 'log_lines'
1285
+
1286
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1287
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1288
+ ,fk.referenced_column_name as 'primary_key'
1289
+ ,fk.column_name as 'column'
1290
+ ,fk.constraint_name as 'name'
1291
+ FROM information_schema.key_column_usage fk
1292
+ WHERE fk.referenced_column_name is not null
1293
+ AND fk.table_schema = 'archiving_development'
1294
+ AND fk.table_name = 'log_lines_archive'
1295
+
1296
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1297
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1298
+ ,fk.referenced_column_name as 'primary_key'
1299
+ ,fk.column_name as 'column'
1300
+ ,fk.constraint_name as 'name'
1301
+ FROM information_schema.key_column_usage fk
1302
+ WHERE fk.referenced_column_name is not null
1303
+ AND fk.table_schema = 'archiving_development'
1304
+ AND fk.table_name = 'posts'
1305
+
1306
+  (0.1ms) SHOW CREATE TABLE `posts`
1307
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1308
+ ,fk.referenced_column_name as 'primary_key'
1309
+ ,fk.column_name as 'column'
1310
+ ,fk.constraint_name as 'name'
1311
+ FROM information_schema.key_column_usage fk
1312
+ WHERE fk.referenced_column_name is not null
1313
+ AND fk.table_schema = 'archiving_development'
1314
+ AND fk.table_name = 'posts_archive'
1315
+
1316
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1317
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1318
+ Migrating to CreateLogOther (20161103093656)
1319
+  (9.9ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1320
+  (0.1ms) BEGIN
1321
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
1322
+  (0.9ms) COMMIT
1323
+ Migrating to CreateLogOtherArchive (20161103100644)
1324
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1325
+ Migrating to CreateLogOtherArchive (20161103100644)
1326
+  (10.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1327
+  (0.1ms) BEGIN
1328
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
1329
+  (0.3ms) COMMIT
1330
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1331
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1332
+ ,fk.referenced_column_name as 'primary_key'
1333
+ ,fk.column_name as 'column'
1334
+ ,fk.constraint_name as 'name'
1335
+ FROM information_schema.key_column_usage fk
1336
+ WHERE fk.referenced_column_name is not null
1337
+ AND fk.table_schema = 'archiving_development'
1338
+ AND fk.table_name = 'log_days'
1339
+ 
1340
+  (0.1ms) SHOW CREATE TABLE `log_days`
1341
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1342
+ ,fk.referenced_column_name as 'primary_key'
1343
+ ,fk.column_name as 'column'
1344
+ ,fk.constraint_name as 'name'
1345
+ FROM information_schema.key_column_usage fk
1346
+ WHERE fk.referenced_column_name is not null
1347
+ AND fk.table_schema = 'archiving_development'
1348
+ AND fk.table_name = 'log_days_archive'
1349
+ 
1350
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1351
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1352
+ ,fk.referenced_column_name as 'primary_key'
1353
+ ,fk.column_name as 'column'
1354
+ ,fk.constraint_name as 'name'
1355
+ FROM information_schema.key_column_usage fk
1356
+ WHERE fk.referenced_column_name is not null
1357
+ AND fk.table_schema = 'archiving_development'
1358
+ AND fk.table_name = 'log_lines'
1359
+ 
1360
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1361
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1362
+ ,fk.referenced_column_name as 'primary_key'
1363
+ ,fk.column_name as 'column'
1364
+ ,fk.constraint_name as 'name'
1365
+ FROM information_schema.key_column_usage fk
1366
+ WHERE fk.referenced_column_name is not null
1367
+ AND fk.table_schema = 'archiving_development'
1368
+ AND fk.table_name = 'log_lines_archive'
1369
+ 
1370
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1371
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1372
+ ,fk.referenced_column_name as 'primary_key'
1373
+ ,fk.column_name as 'column'
1374
+ ,fk.constraint_name as 'name'
1375
+ FROM information_schema.key_column_usage fk
1376
+ WHERE fk.referenced_column_name is not null
1377
+ AND fk.table_schema = 'archiving_development'
1378
+ AND fk.table_name = 'log_others'
1379
+ 
1380
+  (0.2ms) SHOW CREATE TABLE `log_others`
1381
+  (1.6ms) SELECT fk.referenced_table_name as 'to_table'
1382
+ ,fk.referenced_column_name as 'primary_key'
1383
+ ,fk.column_name as 'column'
1384
+ ,fk.constraint_name as 'name'
1385
+ FROM information_schema.key_column_usage fk
1386
+ WHERE fk.referenced_column_name is not null
1387
+ AND fk.table_schema = 'archiving_development'
1388
+ AND fk.table_name = 'log_others_archive'
1389
+ 
1390
+  (0.1ms) SHOW CREATE TABLE `log_others_archive`
1391
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1392
+ ,fk.referenced_column_name as 'primary_key'
1393
+ ,fk.column_name as 'column'
1394
+ ,fk.constraint_name as 'name'
1395
+ FROM information_schema.key_column_usage fk
1396
+ WHERE fk.referenced_column_name is not null
1397
+ AND fk.table_schema = 'archiving_development'
1398
+ AND fk.table_name = 'posts'
1399
+ 
1400
+  (0.1ms) SHOW CREATE TABLE `posts`
1401
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
1402
+ ,fk.referenced_column_name as 'primary_key'
1403
+ ,fk.column_name as 'column'
1404
+ ,fk.constraint_name as 'name'
1405
+ FROM information_schema.key_column_usage fk
1406
+ WHERE fk.referenced_column_name is not null
1407
+ AND fk.table_schema = 'archiving_development'
1408
+ AND fk.table_name = 'posts_archive'
1409
+ 
1410
+  (0.5ms) SHOW CREATE TABLE `posts_archive`
1411
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1412
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1413
+ Migrating to CreateLogOtherArchive (20161103100644)
1414
+  (1.6ms) DROP TABLE `log_others_archive`
1415
+ SQL (0.7ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
1416
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1417
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
1418
+ ,fk.referenced_column_name as 'primary_key'
1419
+ ,fk.column_name as 'column'
1420
+ ,fk.constraint_name as 'name'
1421
+ FROM information_schema.key_column_usage fk
1422
+ WHERE fk.referenced_column_name is not null
1423
+ AND fk.table_schema = 'archiving_development'
1424
+ AND fk.table_name = 'log_days'
1425
+
1426
+  (0.1ms) SHOW CREATE TABLE `log_days`
1427
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1428
+ ,fk.referenced_column_name as 'primary_key'
1429
+ ,fk.column_name as 'column'
1430
+ ,fk.constraint_name as 'name'
1431
+ FROM information_schema.key_column_usage fk
1432
+ WHERE fk.referenced_column_name is not null
1433
+ AND fk.table_schema = 'archiving_development'
1434
+ AND fk.table_name = 'log_days_archive'
1435
+
1436
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1437
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1438
+ ,fk.referenced_column_name as 'primary_key'
1439
+ ,fk.column_name as 'column'
1440
+ ,fk.constraint_name as 'name'
1441
+ FROM information_schema.key_column_usage fk
1442
+ WHERE fk.referenced_column_name is not null
1443
+ AND fk.table_schema = 'archiving_development'
1444
+ AND fk.table_name = 'log_lines'
1445
+
1446
+  (0.2ms) SHOW CREATE TABLE `log_lines`
1447
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1448
+ ,fk.referenced_column_name as 'primary_key'
1449
+ ,fk.column_name as 'column'
1450
+ ,fk.constraint_name as 'name'
1451
+ FROM information_schema.key_column_usage fk
1452
+ WHERE fk.referenced_column_name is not null
1453
+ AND fk.table_schema = 'archiving_development'
1454
+ AND fk.table_name = 'log_lines_archive'
1455
+
1456
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1457
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1458
+ ,fk.referenced_column_name as 'primary_key'
1459
+ ,fk.column_name as 'column'
1460
+ ,fk.constraint_name as 'name'
1461
+ FROM information_schema.key_column_usage fk
1462
+ WHERE fk.referenced_column_name is not null
1463
+ AND fk.table_schema = 'archiving_development'
1464
+ AND fk.table_name = 'log_others'
1465
+
1466
+  (0.1ms) SHOW CREATE TABLE `log_others`
1467
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1468
+ ,fk.referenced_column_name as 'primary_key'
1469
+ ,fk.column_name as 'column'
1470
+ ,fk.constraint_name as 'name'
1471
+ FROM information_schema.key_column_usage fk
1472
+ WHERE fk.referenced_column_name is not null
1473
+ AND fk.table_schema = 'archiving_development'
1474
+ AND fk.table_name = 'posts'
1475
+
1476
+  (0.2ms) SHOW CREATE TABLE `posts`
1477
+  (0.7ms) SELECT fk.referenced_table_name as 'to_table'
1478
+ ,fk.referenced_column_name as 'primary_key'
1479
+ ,fk.column_name as 'column'
1480
+ ,fk.constraint_name as 'name'
1481
+ FROM information_schema.key_column_usage fk
1482
+ WHERE fk.referenced_column_name is not null
1483
+ AND fk.table_schema = 'archiving_development'
1484
+ AND fk.table_name = 'posts_archive'
1485
+
1486
+  (0.2ms) SHOW CREATE TABLE `posts_archive`
1487
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1488
+ Migrating to CreateLogOtherArchive (20161103100644)
1489
+  (10.1ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1490
+  (0.1ms) BEGIN
1491
+  (0.1ms) ROLLBACK
1492
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1493
+ Migrating to CreateLogOtherArchive (20161103100644)
1494
+  (1.7ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1495
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1496
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1497
+ Migrating to CreateLogOther (20161103093656)
1498
+  (1.9ms) DROP TABLE `log_others`
1499
+ SQL (0.5ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
1500
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1501
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1502
+ ,fk.referenced_column_name as 'primary_key'
1503
+ ,fk.column_name as 'column'
1504
+ ,fk.constraint_name as 'name'
1505
+ FROM information_schema.key_column_usage fk
1506
+ WHERE fk.referenced_column_name is not null
1507
+ AND fk.table_schema = 'archiving_development'
1508
+ AND fk.table_name = 'log_days'
1509
+
1510
+  (0.1ms) SHOW CREATE TABLE `log_days`
1511
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1512
+ ,fk.referenced_column_name as 'primary_key'
1513
+ ,fk.column_name as 'column'
1514
+ ,fk.constraint_name as 'name'
1515
+ FROM information_schema.key_column_usage fk
1516
+ WHERE fk.referenced_column_name is not null
1517
+ AND fk.table_schema = 'archiving_development'
1518
+ AND fk.table_name = 'log_days_archive'
1519
+
1520
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1521
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1522
+ ,fk.referenced_column_name as 'primary_key'
1523
+ ,fk.column_name as 'column'
1524
+ ,fk.constraint_name as 'name'
1525
+ FROM information_schema.key_column_usage fk
1526
+ WHERE fk.referenced_column_name is not null
1527
+ AND fk.table_schema = 'archiving_development'
1528
+ AND fk.table_name = 'log_lines'
1529
+
1530
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1531
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1532
+ ,fk.referenced_column_name as 'primary_key'
1533
+ ,fk.column_name as 'column'
1534
+ ,fk.constraint_name as 'name'
1535
+ FROM information_schema.key_column_usage fk
1536
+ WHERE fk.referenced_column_name is not null
1537
+ AND fk.table_schema = 'archiving_development'
1538
+ AND fk.table_name = 'log_lines_archive'
1539
+
1540
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1541
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1542
+ ,fk.referenced_column_name as 'primary_key'
1543
+ ,fk.column_name as 'column'
1544
+ ,fk.constraint_name as 'name'
1545
+ FROM information_schema.key_column_usage fk
1546
+ WHERE fk.referenced_column_name is not null
1547
+ AND fk.table_schema = 'archiving_development'
1548
+ AND fk.table_name = 'posts'
1549
+
1550
+  (0.2ms) SHOW CREATE TABLE `posts`
1551
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1552
+ ,fk.referenced_column_name as 'primary_key'
1553
+ ,fk.column_name as 'column'
1554
+ ,fk.constraint_name as 'name'
1555
+ FROM information_schema.key_column_usage fk
1556
+ WHERE fk.referenced_column_name is not null
1557
+ AND fk.table_schema = 'archiving_development'
1558
+ AND fk.table_name = 'posts_archive'
1559
+
1560
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1561
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1562
+ Migrating to CreateLogOther (20161103093656)
1563
+  (9.6ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1564
+  (0.1ms) BEGIN
1565
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
1566
+  (0.2ms) COMMIT
1567
+ Migrating to CreateLogOtherArchive (20161103100644)
1568
+  (9.3ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1569
+  (0.1ms) BEGIN
1570
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
1571
+  (0.3ms) COMMIT
1572
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1573
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1574
+ ,fk.referenced_column_name as 'primary_key'
1575
+ ,fk.column_name as 'column'
1576
+ ,fk.constraint_name as 'name'
1577
+ FROM information_schema.key_column_usage fk
1578
+ WHERE fk.referenced_column_name is not null
1579
+ AND fk.table_schema = 'archiving_other_development'
1580
+ AND fk.table_name = 'log_others_archive'
1581
+ 
1582
+  (0.2ms) SHOW CREATE TABLE `log_others_archive`
1583
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1584
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1585
+ Migrating to CreateLogOther (20161103093656)
1586
+  (24.6ms) DROP TABLE `log_others`
1587
+ SQL (6.0ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
1588
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1589
+  (0.8ms) SELECT fk.referenced_table_name as 'to_table'
1590
+ ,fk.referenced_column_name as 'primary_key'
1591
+ ,fk.column_name as 'column'
1592
+ ,fk.constraint_name as 'name'
1593
+ FROM information_schema.key_column_usage fk
1594
+ WHERE fk.referenced_column_name is not null
1595
+ AND fk.table_schema = 'archiving_development'
1596
+ AND fk.table_name = 'log_days'
1597
+
1598
+  (0.3ms) SHOW CREATE TABLE `log_days`
1599
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1600
+ ,fk.referenced_column_name as 'primary_key'
1601
+ ,fk.column_name as 'column'
1602
+ ,fk.constraint_name as 'name'
1603
+ FROM information_schema.key_column_usage fk
1604
+ WHERE fk.referenced_column_name is not null
1605
+ AND fk.table_schema = 'archiving_development'
1606
+ AND fk.table_name = 'log_days_archive'
1607
+
1608
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1609
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1610
+ ,fk.referenced_column_name as 'primary_key'
1611
+ ,fk.column_name as 'column'
1612
+ ,fk.constraint_name as 'name'
1613
+ FROM information_schema.key_column_usage fk
1614
+ WHERE fk.referenced_column_name is not null
1615
+ AND fk.table_schema = 'archiving_development'
1616
+ AND fk.table_name = 'log_lines'
1617
+
1618
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1619
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1620
+ ,fk.referenced_column_name as 'primary_key'
1621
+ ,fk.column_name as 'column'
1622
+ ,fk.constraint_name as 'name'
1623
+ FROM information_schema.key_column_usage fk
1624
+ WHERE fk.referenced_column_name is not null
1625
+ AND fk.table_schema = 'archiving_development'
1626
+ AND fk.table_name = 'log_lines_archive'
1627
+
1628
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1629
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1630
+ ,fk.referenced_column_name as 'primary_key'
1631
+ ,fk.column_name as 'column'
1632
+ ,fk.constraint_name as 'name'
1633
+ FROM information_schema.key_column_usage fk
1634
+ WHERE fk.referenced_column_name is not null
1635
+ AND fk.table_schema = 'archiving_development'
1636
+ AND fk.table_name = 'posts'
1637
+
1638
+  (0.1ms) SHOW CREATE TABLE `posts`
1639
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1640
+ ,fk.referenced_column_name as 'primary_key'
1641
+ ,fk.column_name as 'column'
1642
+ ,fk.constraint_name as 'name'
1643
+ FROM information_schema.key_column_usage fk
1644
+ WHERE fk.referenced_column_name is not null
1645
+ AND fk.table_schema = 'archiving_development'
1646
+ AND fk.table_name = 'posts_archive'
1647
+
1648
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1649
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1650
+ Migrating to CreateLogOther (20161103093656)
1651
+  (28.6ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1652
+  (0.1ms) BEGIN
1653
+ SQL (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
1654
+  (11.3ms) COMMIT
1655
+ Migrating to CreateLogOtherArchive (20161103100644)
1656
+  (0.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1657
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1658
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1659
+ Migrating to CreateLogOther (20161103093656)
1660
+  (24.4ms) DROP TABLE `log_others`
1661
+ SQL (11.9ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
1662
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1663
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1664
+ ,fk.referenced_column_name as 'primary_key'
1665
+ ,fk.column_name as 'column'
1666
+ ,fk.constraint_name as 'name'
1667
+ FROM information_schema.key_column_usage fk
1668
+ WHERE fk.referenced_column_name is not null
1669
+ AND fk.table_schema = 'archiving_development'
1670
+ AND fk.table_name = 'log_days'
1671
+
1672
+  (0.1ms) SHOW CREATE TABLE `log_days`
1673
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1674
+ ,fk.referenced_column_name as 'primary_key'
1675
+ ,fk.column_name as 'column'
1676
+ ,fk.constraint_name as 'name'
1677
+ FROM information_schema.key_column_usage fk
1678
+ WHERE fk.referenced_column_name is not null
1679
+ AND fk.table_schema = 'archiving_development'
1680
+ AND fk.table_name = 'log_days_archive'
1681
+
1682
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1683
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1684
+ ,fk.referenced_column_name as 'primary_key'
1685
+ ,fk.column_name as 'column'
1686
+ ,fk.constraint_name as 'name'
1687
+ FROM information_schema.key_column_usage fk
1688
+ WHERE fk.referenced_column_name is not null
1689
+ AND fk.table_schema = 'archiving_development'
1690
+ AND fk.table_name = 'log_lines'
1691
+
1692
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1693
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1694
+ ,fk.referenced_column_name as 'primary_key'
1695
+ ,fk.column_name as 'column'
1696
+ ,fk.constraint_name as 'name'
1697
+ FROM information_schema.key_column_usage fk
1698
+ WHERE fk.referenced_column_name is not null
1699
+ AND fk.table_schema = 'archiving_development'
1700
+ AND fk.table_name = 'log_lines_archive'
1701
+
1702
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1703
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1704
+ ,fk.referenced_column_name as 'primary_key'
1705
+ ,fk.column_name as 'column'
1706
+ ,fk.constraint_name as 'name'
1707
+ FROM information_schema.key_column_usage fk
1708
+ WHERE fk.referenced_column_name is not null
1709
+ AND fk.table_schema = 'archiving_development'
1710
+ AND fk.table_name = 'posts'
1711
+
1712
+  (0.1ms) SHOW CREATE TABLE `posts`
1713
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1714
+ ,fk.referenced_column_name as 'primary_key'
1715
+ ,fk.column_name as 'column'
1716
+ ,fk.constraint_name as 'name'
1717
+ FROM information_schema.key_column_usage fk
1718
+ WHERE fk.referenced_column_name is not null
1719
+ AND fk.table_schema = 'archiving_development'
1720
+ AND fk.table_name = 'posts_archive'
1721
+
1722
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1723
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1724
+ Migrating to CreateLogOther (20161103093656)
1725
+  (11.4ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1726
+  (0.1ms) BEGIN
1727
+ SQL (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
1728
+  (18.2ms) COMMIT
1729
+ Migrating to CreateLogOtherArchive (20161103100644)
1730
+  (25.2ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1731
+  (0.1ms) BEGIN
1732
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
1733
+  (0.3ms) COMMIT
1734
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1735
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1736
+ ,fk.referenced_column_name as 'primary_key'
1737
+ ,fk.column_name as 'column'
1738
+ ,fk.constraint_name as 'name'
1739
+ FROM information_schema.key_column_usage fk
1740
+ WHERE fk.referenced_column_name is not null
1741
+ AND fk.table_schema = 'archiving_other_development'
1742
+ AND fk.table_name = 'log_others_archive'
1743
+ 
1744
+  (0.1ms) SHOW CREATE TABLE `log_others_archive`
1745
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1746
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1747
+ Migrating to CreateLogOther (20161103093656)
1748
+  (1.7ms) DROP TABLE `log_others`
1749
+ SQL (0.4ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
1750
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1751
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1752
+ ,fk.referenced_column_name as 'primary_key'
1753
+ ,fk.column_name as 'column'
1754
+ ,fk.constraint_name as 'name'
1755
+ FROM information_schema.key_column_usage fk
1756
+ WHERE fk.referenced_column_name is not null
1757
+ AND fk.table_schema = 'archiving_development'
1758
+ AND fk.table_name = 'log_days'
1759
+
1760
+  (0.1ms) SHOW CREATE TABLE `log_days`
1761
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1762
+ ,fk.referenced_column_name as 'primary_key'
1763
+ ,fk.column_name as 'column'
1764
+ ,fk.constraint_name as 'name'
1765
+ FROM information_schema.key_column_usage fk
1766
+ WHERE fk.referenced_column_name is not null
1767
+ AND fk.table_schema = 'archiving_development'
1768
+ AND fk.table_name = 'log_days_archive'
1769
+
1770
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1771
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1772
+ ,fk.referenced_column_name as 'primary_key'
1773
+ ,fk.column_name as 'column'
1774
+ ,fk.constraint_name as 'name'
1775
+ FROM information_schema.key_column_usage fk
1776
+ WHERE fk.referenced_column_name is not null
1777
+ AND fk.table_schema = 'archiving_development'
1778
+ AND fk.table_name = 'log_lines'
1779
+
1780
+  (0.2ms) SHOW CREATE TABLE `log_lines`
1781
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1782
+ ,fk.referenced_column_name as 'primary_key'
1783
+ ,fk.column_name as 'column'
1784
+ ,fk.constraint_name as 'name'
1785
+ FROM information_schema.key_column_usage fk
1786
+ WHERE fk.referenced_column_name is not null
1787
+ AND fk.table_schema = 'archiving_development'
1788
+ AND fk.table_name = 'log_lines_archive'
1789
+
1790
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1791
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1792
+ ,fk.referenced_column_name as 'primary_key'
1793
+ ,fk.column_name as 'column'
1794
+ ,fk.constraint_name as 'name'
1795
+ FROM information_schema.key_column_usage fk
1796
+ WHERE fk.referenced_column_name is not null
1797
+ AND fk.table_schema = 'archiving_development'
1798
+ AND fk.table_name = 'posts'
1799
+
1800
+  (0.1ms) SHOW CREATE TABLE `posts`
1801
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1802
+ ,fk.referenced_column_name as 'primary_key'
1803
+ ,fk.column_name as 'column'
1804
+ ,fk.constraint_name as 'name'
1805
+ FROM information_schema.key_column_usage fk
1806
+ WHERE fk.referenced_column_name is not null
1807
+ AND fk.table_schema = 'archiving_development'
1808
+ AND fk.table_name = 'posts_archive'
1809
+
1810
+  (0.2ms) SHOW CREATE TABLE `posts_archive`
1811
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1812
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1813
+ Migrating to CreatePostableOnLogDay (20140414124125)
1814
+  (63.1ms) ALTER TABLE `log_days_archive` DROP `postable_id`
1815
+  (18.0ms) ALTER TABLE `log_days_archive` DROP `postable_type`
1816
+  (24.6ms) ALTER TABLE `log_days` DROP `postable_id`
1817
+  (22.3ms) ALTER TABLE `log_days` DROP `postable_type`
1818
+ SQL (0.8ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'
1819
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1820
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1821
+ ,fk.referenced_column_name as 'primary_key'
1822
+ ,fk.column_name as 'column'
1823
+ ,fk.constraint_name as 'name'
1824
+ FROM information_schema.key_column_usage fk
1825
+ WHERE fk.referenced_column_name is not null
1826
+ AND fk.table_schema = 'archiving_development'
1827
+ AND fk.table_name = 'log_days'
1828
+ 
1829
+  (0.1ms) SHOW CREATE TABLE `log_days`
1830
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1831
+ ,fk.referenced_column_name as 'primary_key'
1832
+ ,fk.column_name as 'column'
1833
+ ,fk.constraint_name as 'name'
1834
+ FROM information_schema.key_column_usage fk
1835
+ WHERE fk.referenced_column_name is not null
1836
+ AND fk.table_schema = 'archiving_development'
1837
+ AND fk.table_name = 'log_days_archive'
1838
+ 
1839
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1840
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1841
+ ,fk.referenced_column_name as 'primary_key'
1842
+ ,fk.column_name as 'column'
1843
+ ,fk.constraint_name as 'name'
1844
+ FROM information_schema.key_column_usage fk
1845
+ WHERE fk.referenced_column_name is not null
1846
+ AND fk.table_schema = 'archiving_development'
1847
+ AND fk.table_name = 'log_lines'
1848
+ 
1849
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1850
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
1851
+ ,fk.referenced_column_name as 'primary_key'
1852
+ ,fk.column_name as 'column'
1853
+ ,fk.constraint_name as 'name'
1854
+ FROM information_schema.key_column_usage fk
1855
+ WHERE fk.referenced_column_name is not null
1856
+ AND fk.table_schema = 'archiving_development'
1857
+ AND fk.table_name = 'log_lines_archive'
1858
+ 
1859
+  (0.2ms) SHOW CREATE TABLE `log_lines_archive`
1860
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
1861
+ ,fk.referenced_column_name as 'primary_key'
1862
+ ,fk.column_name as 'column'
1863
+ ,fk.constraint_name as 'name'
1864
+ FROM information_schema.key_column_usage fk
1865
+ WHERE fk.referenced_column_name is not null
1866
+ AND fk.table_schema = 'archiving_development'
1867
+ AND fk.table_name = 'posts'
1868
+ 
1869
+  (0.3ms) SHOW CREATE TABLE `posts`
1870
+  (0.9ms) SELECT fk.referenced_table_name as 'to_table'
1871
+ ,fk.referenced_column_name as 'primary_key'
1872
+ ,fk.column_name as 'column'
1873
+ ,fk.constraint_name as 'name'
1874
+ FROM information_schema.key_column_usage fk
1875
+ WHERE fk.referenced_column_name is not null
1876
+ AND fk.table_schema = 'archiving_development'
1877
+ AND fk.table_name = 'posts_archive'
1878
+ 
1879
+  (0.4ms) SHOW CREATE TABLE `posts_archive`
1880
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1881
+ Migrating to CreatePostableOnLogDay (20140414124125)
1882
+  (35.9ms) ALTER TABLE `log_days` ADD `postable_type` varchar(255)
1883
+  (20.2ms) ALTER TABLE `log_days` ADD `postable_id` int(11)
1884
+  (15.3ms) ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
1885
+  (19.8ms) ALTER TABLE `log_days_archive` ADD `postable_id` int(11)
1886
+  (0.1ms) BEGIN
1887
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
1888
+  (17.2ms) COMMIT
1889
+ Migrating to CreateLogOther (20161103093656)
1890
+  (26.6ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1891
+  (0.1ms) BEGIN
1892
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
1893
+  (0.4ms) COMMIT
1894
+ Migrating to CreateLogOtherArchive (20161103100644)
1895
+  (0.6ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1896
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1897
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1898
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1899
+ ,fk.referenced_column_name as 'primary_key'
1900
+ ,fk.column_name as 'column'
1901
+ ,fk.constraint_name as 'name'
1902
+ FROM information_schema.key_column_usage fk
1903
+ WHERE fk.referenced_column_name is not null
1904
+ AND fk.table_schema = 'archiving_development'
1905
+ AND fk.table_name = 'log_days'
1906
+ 
1907
+  (0.1ms) SHOW CREATE TABLE `log_days`
1908
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1909
+ ,fk.referenced_column_name as 'primary_key'
1910
+ ,fk.column_name as 'column'
1911
+ ,fk.constraint_name as 'name'
1912
+ FROM information_schema.key_column_usage fk
1913
+ WHERE fk.referenced_column_name is not null
1914
+ AND fk.table_schema = 'archiving_development'
1915
+ AND fk.table_name = 'log_days_archive'
1916
+ 
1917
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
1918
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1919
+ ,fk.referenced_column_name as 'primary_key'
1920
+ ,fk.column_name as 'column'
1921
+ ,fk.constraint_name as 'name'
1922
+ FROM information_schema.key_column_usage fk
1923
+ WHERE fk.referenced_column_name is not null
1924
+ AND fk.table_schema = 'archiving_development'
1925
+ AND fk.table_name = 'log_lines'
1926
+ 
1927
+  (0.1ms) SHOW CREATE TABLE `log_lines`
1928
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1929
+ ,fk.referenced_column_name as 'primary_key'
1930
+ ,fk.column_name as 'column'
1931
+ ,fk.constraint_name as 'name'
1932
+ FROM information_schema.key_column_usage fk
1933
+ WHERE fk.referenced_column_name is not null
1934
+ AND fk.table_schema = 'archiving_development'
1935
+ AND fk.table_name = 'log_lines_archive'
1936
+ 
1937
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
1938
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1939
+ ,fk.referenced_column_name as 'primary_key'
1940
+ ,fk.column_name as 'column'
1941
+ ,fk.constraint_name as 'name'
1942
+ FROM information_schema.key_column_usage fk
1943
+ WHERE fk.referenced_column_name is not null
1944
+ AND fk.table_schema = 'archiving_development'
1945
+ AND fk.table_name = 'log_others'
1946
+ 
1947
+  (0.1ms) SHOW CREATE TABLE `log_others`
1948
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1949
+ ,fk.referenced_column_name as 'primary_key'
1950
+ ,fk.column_name as 'column'
1951
+ ,fk.constraint_name as 'name'
1952
+ FROM information_schema.key_column_usage fk
1953
+ WHERE fk.referenced_column_name is not null
1954
+ AND fk.table_schema = 'archiving_development'
1955
+ AND fk.table_name = 'posts'
1956
+ 
1957
+  (0.1ms) SHOW CREATE TABLE `posts`
1958
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1959
+ ,fk.referenced_column_name as 'primary_key'
1960
+ ,fk.column_name as 'column'
1961
+ ,fk.constraint_name as 'name'
1962
+ FROM information_schema.key_column_usage fk
1963
+ WHERE fk.referenced_column_name is not null
1964
+ AND fk.table_schema = 'archiving_development'
1965
+ AND fk.table_name = 'posts_archive'
1966
+ 
1967
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
1968
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1969
+  (0.3ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1970
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1971
+ Migrating to CreateLogOtherArchive (20161103100644)
1972
+  (11.2ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1973
+  (0.2ms) BEGIN
1974
+  (0.1ms) ROLLBACK
1975
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1976
+ Migrating to CreateLogOtherArchive (20161103100644)
1977
+  (26.8ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1978
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1979
+ Migrating to CreateLogOtherArchive (20161103100644)
1980
+  (0.5ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1981
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1982
+ Migrating to CreateLogOtherArchive (20161103100644)
1983
+  (9.3ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
1984
+  (0.1ms) BEGIN
1985
+ SQL (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
1986
+  (4.9ms) COMMIT
1987
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
1988
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1989
+ ,fk.referenced_column_name as 'primary_key'
1990
+ ,fk.column_name as 'column'
1991
+ ,fk.constraint_name as 'name'
1992
+ FROM information_schema.key_column_usage fk
1993
+ WHERE fk.referenced_column_name is not null
1994
+ AND fk.table_schema = 'archiving_development'
1995
+ AND fk.table_name = 'log_days'
1996
+ 
1997
+  (0.1ms) SHOW CREATE TABLE `log_days`
1998
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
1999
+ ,fk.referenced_column_name as 'primary_key'
2000
+ ,fk.column_name as 'column'
2001
+ ,fk.constraint_name as 'name'
2002
+ FROM information_schema.key_column_usage fk
2003
+ WHERE fk.referenced_column_name is not null
2004
+ AND fk.table_schema = 'archiving_development'
2005
+ AND fk.table_name = 'log_days_archive'
2006
+ 
2007
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2008
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2009
+ ,fk.referenced_column_name as 'primary_key'
2010
+ ,fk.column_name as 'column'
2011
+ ,fk.constraint_name as 'name'
2012
+ FROM information_schema.key_column_usage fk
2013
+ WHERE fk.referenced_column_name is not null
2014
+ AND fk.table_schema = 'archiving_development'
2015
+ AND fk.table_name = 'log_lines'
2016
+ 
2017
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2018
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2019
+ ,fk.referenced_column_name as 'primary_key'
2020
+ ,fk.column_name as 'column'
2021
+ ,fk.constraint_name as 'name'
2022
+ FROM information_schema.key_column_usage fk
2023
+ WHERE fk.referenced_column_name is not null
2024
+ AND fk.table_schema = 'archiving_development'
2025
+ AND fk.table_name = 'log_lines_archive'
2026
+ 
2027
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2028
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2029
+ ,fk.referenced_column_name as 'primary_key'
2030
+ ,fk.column_name as 'column'
2031
+ ,fk.constraint_name as 'name'
2032
+ FROM information_schema.key_column_usage fk
2033
+ WHERE fk.referenced_column_name is not null
2034
+ AND fk.table_schema = 'archiving_development'
2035
+ AND fk.table_name = 'log_others'
2036
+ 
2037
+  (0.1ms) SHOW CREATE TABLE `log_others`
2038
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2039
+ ,fk.referenced_column_name as 'primary_key'
2040
+ ,fk.column_name as 'column'
2041
+ ,fk.constraint_name as 'name'
2042
+ FROM information_schema.key_column_usage fk
2043
+ WHERE fk.referenced_column_name is not null
2044
+ AND fk.table_schema = 'archiving_development'
2045
+ AND fk.table_name = 'posts'
2046
+ 
2047
+  (0.1ms) SHOW CREATE TABLE `posts`
2048
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2049
+ ,fk.referenced_column_name as 'primary_key'
2050
+ ,fk.column_name as 'column'
2051
+ ,fk.constraint_name as 'name'
2052
+ FROM information_schema.key_column_usage fk
2053
+ WHERE fk.referenced_column_name is not null
2054
+ AND fk.table_schema = 'archiving_development'
2055
+ AND fk.table_name = 'posts_archive'
2056
+ 
2057
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2058
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2059
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2060
+ Migrating to CreateLogOtherArchive (20161103100644)
2061
+  (1.7ms) DROP TABLE `log_others_archive`
2062
+ SQL (6.0ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
2063
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2064
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2065
+ ,fk.referenced_column_name as 'primary_key'
2066
+ ,fk.column_name as 'column'
2067
+ ,fk.constraint_name as 'name'
2068
+ FROM information_schema.key_column_usage fk
2069
+ WHERE fk.referenced_column_name is not null
2070
+ AND fk.table_schema = 'archiving_development'
2071
+ AND fk.table_name = 'log_days'
2072
+
2073
+  (0.1ms) SHOW CREATE TABLE `log_days`
2074
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2075
+ ,fk.referenced_column_name as 'primary_key'
2076
+ ,fk.column_name as 'column'
2077
+ ,fk.constraint_name as 'name'
2078
+ FROM information_schema.key_column_usage fk
2079
+ WHERE fk.referenced_column_name is not null
2080
+ AND fk.table_schema = 'archiving_development'
2081
+ AND fk.table_name = 'log_days_archive'
2082
+
2083
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2084
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2085
+ ,fk.referenced_column_name as 'primary_key'
2086
+ ,fk.column_name as 'column'
2087
+ ,fk.constraint_name as 'name'
2088
+ FROM information_schema.key_column_usage fk
2089
+ WHERE fk.referenced_column_name is not null
2090
+ AND fk.table_schema = 'archiving_development'
2091
+ AND fk.table_name = 'log_lines'
2092
+
2093
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2094
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2095
+ ,fk.referenced_column_name as 'primary_key'
2096
+ ,fk.column_name as 'column'
2097
+ ,fk.constraint_name as 'name'
2098
+ FROM information_schema.key_column_usage fk
2099
+ WHERE fk.referenced_column_name is not null
2100
+ AND fk.table_schema = 'archiving_development'
2101
+ AND fk.table_name = 'log_lines_archive'
2102
+
2103
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2104
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2105
+ ,fk.referenced_column_name as 'primary_key'
2106
+ ,fk.column_name as 'column'
2107
+ ,fk.constraint_name as 'name'
2108
+ FROM information_schema.key_column_usage fk
2109
+ WHERE fk.referenced_column_name is not null
2110
+ AND fk.table_schema = 'archiving_development'
2111
+ AND fk.table_name = 'log_others'
2112
+
2113
+  (0.2ms) SHOW CREATE TABLE `log_others`
2114
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2115
+ ,fk.referenced_column_name as 'primary_key'
2116
+ ,fk.column_name as 'column'
2117
+ ,fk.constraint_name as 'name'
2118
+ FROM information_schema.key_column_usage fk
2119
+ WHERE fk.referenced_column_name is not null
2120
+ AND fk.table_schema = 'archiving_development'
2121
+ AND fk.table_name = 'posts'
2122
+
2123
+  (0.2ms) SHOW CREATE TABLE `posts`
2124
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2125
+ ,fk.referenced_column_name as 'primary_key'
2126
+ ,fk.column_name as 'column'
2127
+ ,fk.constraint_name as 'name'
2128
+ FROM information_schema.key_column_usage fk
2129
+ WHERE fk.referenced_column_name is not null
2130
+ AND fk.table_schema = 'archiving_development'
2131
+ AND fk.table_name = 'posts_archive'
2132
+
2133
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2134
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2135
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2136
+ Migrating to CreateLogOther (20161103093656)
2137
+  (21.9ms) DROP TABLE `log_others`
2138
+ SQL (1.9ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
2139
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2140
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2141
+ ,fk.referenced_column_name as 'primary_key'
2142
+ ,fk.column_name as 'column'
2143
+ ,fk.constraint_name as 'name'
2144
+ FROM information_schema.key_column_usage fk
2145
+ WHERE fk.referenced_column_name is not null
2146
+ AND fk.table_schema = 'archiving_development'
2147
+ AND fk.table_name = 'log_days'
2148
+
2149
+  (0.1ms) SHOW CREATE TABLE `log_days`
2150
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2151
+ ,fk.referenced_column_name as 'primary_key'
2152
+ ,fk.column_name as 'column'
2153
+ ,fk.constraint_name as 'name'
2154
+ FROM information_schema.key_column_usage fk
2155
+ WHERE fk.referenced_column_name is not null
2156
+ AND fk.table_schema = 'archiving_development'
2157
+ AND fk.table_name = 'log_days_archive'
2158
+
2159
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2160
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2161
+ ,fk.referenced_column_name as 'primary_key'
2162
+ ,fk.column_name as 'column'
2163
+ ,fk.constraint_name as 'name'
2164
+ FROM information_schema.key_column_usage fk
2165
+ WHERE fk.referenced_column_name is not null
2166
+ AND fk.table_schema = 'archiving_development'
2167
+ AND fk.table_name = 'log_lines'
2168
+
2169
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2170
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2171
+ ,fk.referenced_column_name as 'primary_key'
2172
+ ,fk.column_name as 'column'
2173
+ ,fk.constraint_name as 'name'
2174
+ FROM information_schema.key_column_usage fk
2175
+ WHERE fk.referenced_column_name is not null
2176
+ AND fk.table_schema = 'archiving_development'
2177
+ AND fk.table_name = 'log_lines_archive'
2178
+
2179
+  (0.2ms) SHOW CREATE TABLE `log_lines_archive`
2180
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2181
+ ,fk.referenced_column_name as 'primary_key'
2182
+ ,fk.column_name as 'column'
2183
+ ,fk.constraint_name as 'name'
2184
+ FROM information_schema.key_column_usage fk
2185
+ WHERE fk.referenced_column_name is not null
2186
+ AND fk.table_schema = 'archiving_development'
2187
+ AND fk.table_name = 'posts'
2188
+
2189
+  (0.1ms) SHOW CREATE TABLE `posts`
2190
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2191
+ ,fk.referenced_column_name as 'primary_key'
2192
+ ,fk.column_name as 'column'
2193
+ ,fk.constraint_name as 'name'
2194
+ FROM information_schema.key_column_usage fk
2195
+ WHERE fk.referenced_column_name is not null
2196
+ AND fk.table_schema = 'archiving_development'
2197
+ AND fk.table_name = 'posts_archive'
2198
+
2199
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2200
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2201
+ Migrating to CreateLogOther (20161103093656)
2202
+  (12.0ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
2203
+  (0.1ms) BEGIN
2204
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
2205
+  (0.3ms) COMMIT
2206
+ Migrating to CreateLogOtherArchive (20161103100644)
2207
+  (10.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
2208
+  (0.1ms) BEGIN
2209
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
2210
+  (0.3ms) COMMIT
2211
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2212
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2213
+ ,fk.referenced_column_name as 'primary_key'
2214
+ ,fk.column_name as 'column'
2215
+ ,fk.constraint_name as 'name'
2216
+ FROM information_schema.key_column_usage fk
2217
+ WHERE fk.referenced_column_name is not null
2218
+ AND fk.table_schema = 'archiving_development'
2219
+ AND fk.table_name = 'log_days'
2220
+ 
2221
+  (0.1ms) SHOW CREATE TABLE `log_days`
2222
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2223
+ ,fk.referenced_column_name as 'primary_key'
2224
+ ,fk.column_name as 'column'
2225
+ ,fk.constraint_name as 'name'
2226
+ FROM information_schema.key_column_usage fk
2227
+ WHERE fk.referenced_column_name is not null
2228
+ AND fk.table_schema = 'archiving_development'
2229
+ AND fk.table_name = 'log_days_archive'
2230
+ 
2231
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2232
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2233
+ ,fk.referenced_column_name as 'primary_key'
2234
+ ,fk.column_name as 'column'
2235
+ ,fk.constraint_name as 'name'
2236
+ FROM information_schema.key_column_usage fk
2237
+ WHERE fk.referenced_column_name is not null
2238
+ AND fk.table_schema = 'archiving_development'
2239
+ AND fk.table_name = 'log_lines'
2240
+ 
2241
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2242
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2243
+ ,fk.referenced_column_name as 'primary_key'
2244
+ ,fk.column_name as 'column'
2245
+ ,fk.constraint_name as 'name'
2246
+ FROM information_schema.key_column_usage fk
2247
+ WHERE fk.referenced_column_name is not null
2248
+ AND fk.table_schema = 'archiving_development'
2249
+ AND fk.table_name = 'log_lines_archive'
2250
+ 
2251
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2252
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2253
+ ,fk.referenced_column_name as 'primary_key'
2254
+ ,fk.column_name as 'column'
2255
+ ,fk.constraint_name as 'name'
2256
+ FROM information_schema.key_column_usage fk
2257
+ WHERE fk.referenced_column_name is not null
2258
+ AND fk.table_schema = 'archiving_development'
2259
+ AND fk.table_name = 'log_others'
2260
+ 
2261
+  (0.1ms) SHOW CREATE TABLE `log_others`
2262
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2263
+ ,fk.referenced_column_name as 'primary_key'
2264
+ ,fk.column_name as 'column'
2265
+ ,fk.constraint_name as 'name'
2266
+ FROM information_schema.key_column_usage fk
2267
+ WHERE fk.referenced_column_name is not null
2268
+ AND fk.table_schema = 'archiving_development'
2269
+ AND fk.table_name = 'posts'
2270
+ 
2271
+  (0.1ms) SHOW CREATE TABLE `posts`
2272
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2273
+ ,fk.referenced_column_name as 'primary_key'
2274
+ ,fk.column_name as 'column'
2275
+ ,fk.constraint_name as 'name'
2276
+ FROM information_schema.key_column_usage fk
2277
+ WHERE fk.referenced_column_name is not null
2278
+ AND fk.table_schema = 'archiving_development'
2279
+ AND fk.table_name = 'posts_archive'
2280
+ 
2281
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2282
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2283
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2284
+ Migrating to CreateLogOtherArchive (20161103100644)
2285
+  (2.0ms) DROP TABLE `log_others_archive`
2286
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2287
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2288
+ Migrating to CreateLogOtherArchive (20161103100644)
2289
+  (0.4ms) DROP TABLE `log_others_archive`
2290
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2291
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2292
+ Migrating to CreateLogOtherArchive (20161103100644)
2293
+  (2.0ms) DROP TABLE `log_others_archive`
2294
+ SQL (0.5ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
2295
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2296
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2297
+ ,fk.referenced_column_name as 'primary_key'
2298
+ ,fk.column_name as 'column'
2299
+ ,fk.constraint_name as 'name'
2300
+ FROM information_schema.key_column_usage fk
2301
+ WHERE fk.referenced_column_name is not null
2302
+ AND fk.table_schema = 'archiving_development'
2303
+ AND fk.table_name = 'log_days'
2304
+
2305
+  (0.1ms) SHOW CREATE TABLE `log_days`
2306
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2307
+ ,fk.referenced_column_name as 'primary_key'
2308
+ ,fk.column_name as 'column'
2309
+ ,fk.constraint_name as 'name'
2310
+ FROM information_schema.key_column_usage fk
2311
+ WHERE fk.referenced_column_name is not null
2312
+ AND fk.table_schema = 'archiving_development'
2313
+ AND fk.table_name = 'log_days_archive'
2314
+
2315
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2316
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2317
+ ,fk.referenced_column_name as 'primary_key'
2318
+ ,fk.column_name as 'column'
2319
+ ,fk.constraint_name as 'name'
2320
+ FROM information_schema.key_column_usage fk
2321
+ WHERE fk.referenced_column_name is not null
2322
+ AND fk.table_schema = 'archiving_development'
2323
+ AND fk.table_name = 'log_lines'
2324
+
2325
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2326
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2327
+ ,fk.referenced_column_name as 'primary_key'
2328
+ ,fk.column_name as 'column'
2329
+ ,fk.constraint_name as 'name'
2330
+ FROM information_schema.key_column_usage fk
2331
+ WHERE fk.referenced_column_name is not null
2332
+ AND fk.table_schema = 'archiving_development'
2333
+ AND fk.table_name = 'log_lines_archive'
2334
+
2335
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2336
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
2337
+ ,fk.referenced_column_name as 'primary_key'
2338
+ ,fk.column_name as 'column'
2339
+ ,fk.constraint_name as 'name'
2340
+ FROM information_schema.key_column_usage fk
2341
+ WHERE fk.referenced_column_name is not null
2342
+ AND fk.table_schema = 'archiving_development'
2343
+ AND fk.table_name = 'log_others'
2344
+
2345
+  (0.2ms) SHOW CREATE TABLE `log_others`
2346
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2347
+ ,fk.referenced_column_name as 'primary_key'
2348
+ ,fk.column_name as 'column'
2349
+ ,fk.constraint_name as 'name'
2350
+ FROM information_schema.key_column_usage fk
2351
+ WHERE fk.referenced_column_name is not null
2352
+ AND fk.table_schema = 'archiving_development'
2353
+ AND fk.table_name = 'posts'
2354
+
2355
+  (0.1ms) SHOW CREATE TABLE `posts`
2356
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2357
+ ,fk.referenced_column_name as 'primary_key'
2358
+ ,fk.column_name as 'column'
2359
+ ,fk.constraint_name as 'name'
2360
+ FROM information_schema.key_column_usage fk
2361
+ WHERE fk.referenced_column_name is not null
2362
+ AND fk.table_schema = 'archiving_development'
2363
+ AND fk.table_name = 'posts_archive'
2364
+
2365
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2366
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2367
+ Migrating to CreateLogOtherArchive (20161103100644)
2368
+  (24.3ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
2369
+  (0.1ms) BEGIN
2370
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
2371
+  (0.5ms) COMMIT
2372
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2373
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2374
+ ,fk.referenced_column_name as 'primary_key'
2375
+ ,fk.column_name as 'column'
2376
+ ,fk.constraint_name as 'name'
2377
+ FROM information_schema.key_column_usage fk
2378
+ WHERE fk.referenced_column_name is not null
2379
+ AND fk.table_schema = 'archiving_development'
2380
+ AND fk.table_name = 'log_days'
2381
+
2382
+  (0.1ms) SHOW CREATE TABLE `log_days`
2383
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2384
+ ,fk.referenced_column_name as 'primary_key'
2385
+ ,fk.column_name as 'column'
2386
+ ,fk.constraint_name as 'name'
2387
+ FROM information_schema.key_column_usage fk
2388
+ WHERE fk.referenced_column_name is not null
2389
+ AND fk.table_schema = 'archiving_development'
2390
+ AND fk.table_name = 'log_days_archive'
2391
+
2392
+  (0.2ms) SHOW CREATE TABLE `log_days_archive`
2393
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2394
+ ,fk.referenced_column_name as 'primary_key'
2395
+ ,fk.column_name as 'column'
2396
+ ,fk.constraint_name as 'name'
2397
+ FROM information_schema.key_column_usage fk
2398
+ WHERE fk.referenced_column_name is not null
2399
+ AND fk.table_schema = 'archiving_development'
2400
+ AND fk.table_name = 'log_lines'
2401
+
2402
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2403
+  (0.6ms) SELECT fk.referenced_table_name as 'to_table'
2404
+ ,fk.referenced_column_name as 'primary_key'
2405
+ ,fk.column_name as 'column'
2406
+ ,fk.constraint_name as 'name'
2407
+ FROM information_schema.key_column_usage fk
2408
+ WHERE fk.referenced_column_name is not null
2409
+ AND fk.table_schema = 'archiving_development'
2410
+ AND fk.table_name = 'log_lines_archive'
2411
+
2412
+  (0.4ms) SHOW CREATE TABLE `log_lines_archive`
2413
+  (0.7ms) SELECT fk.referenced_table_name as 'to_table'
2414
+ ,fk.referenced_column_name as 'primary_key'
2415
+ ,fk.column_name as 'column'
2416
+ ,fk.constraint_name as 'name'
2417
+ FROM information_schema.key_column_usage fk
2418
+ WHERE fk.referenced_column_name is not null
2419
+ AND fk.table_schema = 'archiving_development'
2420
+ AND fk.table_name = 'log_others'
2421
+
2422
+  (0.4ms) SHOW CREATE TABLE `log_others`
2423
+  (0.7ms) SELECT fk.referenced_table_name as 'to_table'
2424
+ ,fk.referenced_column_name as 'primary_key'
2425
+ ,fk.column_name as 'column'
2426
+ ,fk.constraint_name as 'name'
2427
+ FROM information_schema.key_column_usage fk
2428
+ WHERE fk.referenced_column_name is not null
2429
+ AND fk.table_schema = 'archiving_development'
2430
+ AND fk.table_name = 'posts'
2431
+
2432
+  (0.2ms) SHOW CREATE TABLE `posts`
2433
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2434
+ ,fk.referenced_column_name as 'primary_key'
2435
+ ,fk.column_name as 'column'
2436
+ ,fk.constraint_name as 'name'
2437
+ FROM information_schema.key_column_usage fk
2438
+ WHERE fk.referenced_column_name is not null
2439
+ AND fk.table_schema = 'archiving_development'
2440
+ AND fk.table_name = 'posts_archive'
2441
+
2442
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2443
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2444
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2445
+ Migrating to CreateLogOtherArchive (20161103100644)
2446
+  (1.8ms) DROP TABLE `log_others_archive`
2447
+ SQL (0.5ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
2448
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2449
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2450
+ ,fk.referenced_column_name as 'primary_key'
2451
+ ,fk.column_name as 'column'
2452
+ ,fk.constraint_name as 'name'
2453
+ FROM information_schema.key_column_usage fk
2454
+ WHERE fk.referenced_column_name is not null
2455
+ AND fk.table_schema = 'archiving_development'
2456
+ AND fk.table_name = 'log_days'
2457
+
2458
+  (0.1ms) SHOW CREATE TABLE `log_days`
2459
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2460
+ ,fk.referenced_column_name as 'primary_key'
2461
+ ,fk.column_name as 'column'
2462
+ ,fk.constraint_name as 'name'
2463
+ FROM information_schema.key_column_usage fk
2464
+ WHERE fk.referenced_column_name is not null
2465
+ AND fk.table_schema = 'archiving_development'
2466
+ AND fk.table_name = 'log_days_archive'
2467
+
2468
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2469
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2470
+ ,fk.referenced_column_name as 'primary_key'
2471
+ ,fk.column_name as 'column'
2472
+ ,fk.constraint_name as 'name'
2473
+ FROM information_schema.key_column_usage fk
2474
+ WHERE fk.referenced_column_name is not null
2475
+ AND fk.table_schema = 'archiving_development'
2476
+ AND fk.table_name = 'log_lines'
2477
+
2478
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2479
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2480
+ ,fk.referenced_column_name as 'primary_key'
2481
+ ,fk.column_name as 'column'
2482
+ ,fk.constraint_name as 'name'
2483
+ FROM information_schema.key_column_usage fk
2484
+ WHERE fk.referenced_column_name is not null
2485
+ AND fk.table_schema = 'archiving_development'
2486
+ AND fk.table_name = 'log_lines_archive'
2487
+
2488
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2489
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2490
+ ,fk.referenced_column_name as 'primary_key'
2491
+ ,fk.column_name as 'column'
2492
+ ,fk.constraint_name as 'name'
2493
+ FROM information_schema.key_column_usage fk
2494
+ WHERE fk.referenced_column_name is not null
2495
+ AND fk.table_schema = 'archiving_development'
2496
+ AND fk.table_name = 'log_others'
2497
+
2498
+  (0.1ms) SHOW CREATE TABLE `log_others`
2499
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2500
+ ,fk.referenced_column_name as 'primary_key'
2501
+ ,fk.column_name as 'column'
2502
+ ,fk.constraint_name as 'name'
2503
+ FROM information_schema.key_column_usage fk
2504
+ WHERE fk.referenced_column_name is not null
2505
+ AND fk.table_schema = 'archiving_development'
2506
+ AND fk.table_name = 'posts'
2507
+
2508
+  (0.1ms) SHOW CREATE TABLE `posts`
2509
+  (0.5ms) SELECT fk.referenced_table_name as 'to_table'
2510
+ ,fk.referenced_column_name as 'primary_key'
2511
+ ,fk.column_name as 'column'
2512
+ ,fk.constraint_name as 'name'
2513
+ FROM information_schema.key_column_usage fk
2514
+ WHERE fk.referenced_column_name is not null
2515
+ AND fk.table_schema = 'archiving_development'
2516
+ AND fk.table_name = 'posts_archive'
2517
+
2518
+  (0.3ms) SHOW CREATE TABLE `posts_archive`
2519
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2520
+ Migrating to CreateLogOtherArchive (20161103100644)
2521
+  (27.1ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
2522
+  (0.3ms) BEGIN
2523
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
2524
+  (0.3ms) COMMIT
2525
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2526
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2527
+ ,fk.referenced_column_name as 'primary_key'
2528
+ ,fk.column_name as 'column'
2529
+ ,fk.constraint_name as 'name'
2530
+ FROM information_schema.key_column_usage fk
2531
+ WHERE fk.referenced_column_name is not null
2532
+ AND fk.table_schema = 'archiving_development'
2533
+ AND fk.table_name = 'log_days'
2534
+
2535
+  (0.2ms) SHOW CREATE TABLE `log_days`
2536
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2537
+ ,fk.referenced_column_name as 'primary_key'
2538
+ ,fk.column_name as 'column'
2539
+ ,fk.constraint_name as 'name'
2540
+ FROM information_schema.key_column_usage fk
2541
+ WHERE fk.referenced_column_name is not null
2542
+ AND fk.table_schema = 'archiving_development'
2543
+ AND fk.table_name = 'log_days_archive'
2544
+
2545
+  (0.2ms) SHOW CREATE TABLE `log_days_archive`
2546
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2547
+ ,fk.referenced_column_name as 'primary_key'
2548
+ ,fk.column_name as 'column'
2549
+ ,fk.constraint_name as 'name'
2550
+ FROM information_schema.key_column_usage fk
2551
+ WHERE fk.referenced_column_name is not null
2552
+ AND fk.table_schema = 'archiving_development'
2553
+ AND fk.table_name = 'log_lines'
2554
+
2555
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2556
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2557
+ ,fk.referenced_column_name as 'primary_key'
2558
+ ,fk.column_name as 'column'
2559
+ ,fk.constraint_name as 'name'
2560
+ FROM information_schema.key_column_usage fk
2561
+ WHERE fk.referenced_column_name is not null
2562
+ AND fk.table_schema = 'archiving_development'
2563
+ AND fk.table_name = 'log_lines_archive'
2564
+
2565
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2566
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2567
+ ,fk.referenced_column_name as 'primary_key'
2568
+ ,fk.column_name as 'column'
2569
+ ,fk.constraint_name as 'name'
2570
+ FROM information_schema.key_column_usage fk
2571
+ WHERE fk.referenced_column_name is not null
2572
+ AND fk.table_schema = 'archiving_development'
2573
+ AND fk.table_name = 'log_others'
2574
+
2575
+  (0.1ms) SHOW CREATE TABLE `log_others`
2576
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2577
+ ,fk.referenced_column_name as 'primary_key'
2578
+ ,fk.column_name as 'column'
2579
+ ,fk.constraint_name as 'name'
2580
+ FROM information_schema.key_column_usage fk
2581
+ WHERE fk.referenced_column_name is not null
2582
+ AND fk.table_schema = 'archiving_development'
2583
+ AND fk.table_name = 'posts'
2584
+
2585
+  (0.1ms) SHOW CREATE TABLE `posts`
2586
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2587
+ ,fk.referenced_column_name as 'primary_key'
2588
+ ,fk.column_name as 'column'
2589
+ ,fk.constraint_name as 'name'
2590
+ FROM information_schema.key_column_usage fk
2591
+ WHERE fk.referenced_column_name is not null
2592
+ AND fk.table_schema = 'archiving_development'
2593
+ AND fk.table_name = 'posts_archive'
2594
+
2595
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2596
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2597
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2598
+ Migrating to CreateLogOtherArchive (20161103100644)
2599
+  (2.1ms) DROP TABLE `log_others_archive`
2600
+ SQL (0.4ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
2601
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2602
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2603
+ ,fk.referenced_column_name as 'primary_key'
2604
+ ,fk.column_name as 'column'
2605
+ ,fk.constraint_name as 'name'
2606
+ FROM information_schema.key_column_usage fk
2607
+ WHERE fk.referenced_column_name is not null
2608
+ AND fk.table_schema = 'archiving_development'
2609
+ AND fk.table_name = 'log_days'
2610
+
2611
+  (0.1ms) SHOW CREATE TABLE `log_days`
2612
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
2613
+ ,fk.referenced_column_name as 'primary_key'
2614
+ ,fk.column_name as 'column'
2615
+ ,fk.constraint_name as 'name'
2616
+ FROM information_schema.key_column_usage fk
2617
+ WHERE fk.referenced_column_name is not null
2618
+ AND fk.table_schema = 'archiving_development'
2619
+ AND fk.table_name = 'log_days_archive'
2620
+
2621
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2622
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2623
+ ,fk.referenced_column_name as 'primary_key'
2624
+ ,fk.column_name as 'column'
2625
+ ,fk.constraint_name as 'name'
2626
+ FROM information_schema.key_column_usage fk
2627
+ WHERE fk.referenced_column_name is not null
2628
+ AND fk.table_schema = 'archiving_development'
2629
+ AND fk.table_name = 'log_lines'
2630
+
2631
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2632
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2633
+ ,fk.referenced_column_name as 'primary_key'
2634
+ ,fk.column_name as 'column'
2635
+ ,fk.constraint_name as 'name'
2636
+ FROM information_schema.key_column_usage fk
2637
+ WHERE fk.referenced_column_name is not null
2638
+ AND fk.table_schema = 'archiving_development'
2639
+ AND fk.table_name = 'log_lines_archive'
2640
+
2641
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2642
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2643
+ ,fk.referenced_column_name as 'primary_key'
2644
+ ,fk.column_name as 'column'
2645
+ ,fk.constraint_name as 'name'
2646
+ FROM information_schema.key_column_usage fk
2647
+ WHERE fk.referenced_column_name is not null
2648
+ AND fk.table_schema = 'archiving_development'
2649
+ AND fk.table_name = 'log_others'
2650
+
2651
+  (0.1ms) SHOW CREATE TABLE `log_others`
2652
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2653
+ ,fk.referenced_column_name as 'primary_key'
2654
+ ,fk.column_name as 'column'
2655
+ ,fk.constraint_name as 'name'
2656
+ FROM information_schema.key_column_usage fk
2657
+ WHERE fk.referenced_column_name is not null
2658
+ AND fk.table_schema = 'archiving_development'
2659
+ AND fk.table_name = 'posts'
2660
+
2661
+  (0.1ms) SHOW CREATE TABLE `posts`
2662
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2663
+ ,fk.referenced_column_name as 'primary_key'
2664
+ ,fk.column_name as 'column'
2665
+ ,fk.constraint_name as 'name'
2666
+ FROM information_schema.key_column_usage fk
2667
+ WHERE fk.referenced_column_name is not null
2668
+ AND fk.table_schema = 'archiving_development'
2669
+ AND fk.table_name = 'posts_archive'
2670
+
2671
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2672
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2673
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2674
+ Migrating to CreateLogOther (20161103093656)
2675
+  (19.7ms) DROP TABLE `log_others`
2676
+ SQL (0.5ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
2677
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2678
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2679
+ ,fk.referenced_column_name as 'primary_key'
2680
+ ,fk.column_name as 'column'
2681
+ ,fk.constraint_name as 'name'
2682
+ FROM information_schema.key_column_usage fk
2683
+ WHERE fk.referenced_column_name is not null
2684
+ AND fk.table_schema = 'archiving_development'
2685
+ AND fk.table_name = 'log_days'
2686
+
2687
+  (0.2ms) SHOW CREATE TABLE `log_days`
2688
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2689
+ ,fk.referenced_column_name as 'primary_key'
2690
+ ,fk.column_name as 'column'
2691
+ ,fk.constraint_name as 'name'
2692
+ FROM information_schema.key_column_usage fk
2693
+ WHERE fk.referenced_column_name is not null
2694
+ AND fk.table_schema = 'archiving_development'
2695
+ AND fk.table_name = 'log_days_archive'
2696
+
2697
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2698
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2699
+ ,fk.referenced_column_name as 'primary_key'
2700
+ ,fk.column_name as 'column'
2701
+ ,fk.constraint_name as 'name'
2702
+ FROM information_schema.key_column_usage fk
2703
+ WHERE fk.referenced_column_name is not null
2704
+ AND fk.table_schema = 'archiving_development'
2705
+ AND fk.table_name = 'log_lines'
2706
+
2707
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2708
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2709
+ ,fk.referenced_column_name as 'primary_key'
2710
+ ,fk.column_name as 'column'
2711
+ ,fk.constraint_name as 'name'
2712
+ FROM information_schema.key_column_usage fk
2713
+ WHERE fk.referenced_column_name is not null
2714
+ AND fk.table_schema = 'archiving_development'
2715
+ AND fk.table_name = 'log_lines_archive'
2716
+
2717
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2718
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2719
+ ,fk.referenced_column_name as 'primary_key'
2720
+ ,fk.column_name as 'column'
2721
+ ,fk.constraint_name as 'name'
2722
+ FROM information_schema.key_column_usage fk
2723
+ WHERE fk.referenced_column_name is not null
2724
+ AND fk.table_schema = 'archiving_development'
2725
+ AND fk.table_name = 'posts'
2726
+
2727
+  (0.1ms) SHOW CREATE TABLE `posts`
2728
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2729
+ ,fk.referenced_column_name as 'primary_key'
2730
+ ,fk.column_name as 'column'
2731
+ ,fk.constraint_name as 'name'
2732
+ FROM information_schema.key_column_usage fk
2733
+ WHERE fk.referenced_column_name is not null
2734
+ AND fk.table_schema = 'archiving_development'
2735
+ AND fk.table_name = 'posts_archive'
2736
+
2737
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2738
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2739
+ Migrating to CreateLogOther (20161103093656)
2740
+  (10.6ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
2741
+  (0.1ms) BEGIN
2742
+ SQL (0.1ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
2743
+  (0.3ms) COMMIT
2744
+ Migrating to CreateLogOtherArchive (20161103100644)
2745
+  (8.6ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
2746
+  (0.1ms) BEGIN
2747
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
2748
+  (0.7ms) COMMIT
2749
+ Migrating to Dummy (20161103110724)
2750
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2751
+ Migrating to Dummy20161103 (20161103110724)
2752
+  (0.2ms) BEGIN
2753
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103110724')
2754
+  (6.1ms) COMMIT
2755
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2756
+  (0.4ms) SELECT fk.referenced_table_name as 'to_table'
2757
+ ,fk.referenced_column_name as 'primary_key'
2758
+ ,fk.column_name as 'column'
2759
+ ,fk.constraint_name as 'name'
2760
+ FROM information_schema.key_column_usage fk
2761
+ WHERE fk.referenced_column_name is not null
2762
+ AND fk.table_schema = 'archiving_development'
2763
+ AND fk.table_name = 'log_days'
2764
+
2765
+  (0.2ms) SHOW CREATE TABLE `log_days`
2766
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2767
+ ,fk.referenced_column_name as 'primary_key'
2768
+ ,fk.column_name as 'column'
2769
+ ,fk.constraint_name as 'name'
2770
+ FROM information_schema.key_column_usage fk
2771
+ WHERE fk.referenced_column_name is not null
2772
+ AND fk.table_schema = 'archiving_development'
2773
+ AND fk.table_name = 'log_days_archive'
2774
+
2775
+  (0.2ms) SHOW CREATE TABLE `log_days_archive`
2776
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2777
+ ,fk.referenced_column_name as 'primary_key'
2778
+ ,fk.column_name as 'column'
2779
+ ,fk.constraint_name as 'name'
2780
+ FROM information_schema.key_column_usage fk
2781
+ WHERE fk.referenced_column_name is not null
2782
+ AND fk.table_schema = 'archiving_development'
2783
+ AND fk.table_name = 'log_lines'
2784
+
2785
+  (0.2ms) SHOW CREATE TABLE `log_lines`
2786
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2787
+ ,fk.referenced_column_name as 'primary_key'
2788
+ ,fk.column_name as 'column'
2789
+ ,fk.constraint_name as 'name'
2790
+ FROM information_schema.key_column_usage fk
2791
+ WHERE fk.referenced_column_name is not null
2792
+ AND fk.table_schema = 'archiving_development'
2793
+ AND fk.table_name = 'log_lines_archive'
2794
+
2795
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2796
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2797
+ ,fk.referenced_column_name as 'primary_key'
2798
+ ,fk.column_name as 'column'
2799
+ ,fk.constraint_name as 'name'
2800
+ FROM information_schema.key_column_usage fk
2801
+ WHERE fk.referenced_column_name is not null
2802
+ AND fk.table_schema = 'archiving_development'
2803
+ AND fk.table_name = 'log_others'
2804
+
2805
+  (0.1ms) SHOW CREATE TABLE `log_others`
2806
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2807
+ ,fk.referenced_column_name as 'primary_key'
2808
+ ,fk.column_name as 'column'
2809
+ ,fk.constraint_name as 'name'
2810
+ FROM information_schema.key_column_usage fk
2811
+ WHERE fk.referenced_column_name is not null
2812
+ AND fk.table_schema = 'archiving_development'
2813
+ AND fk.table_name = 'posts'
2814
+
2815
+  (0.2ms) SHOW CREATE TABLE `posts`
2816
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2817
+ ,fk.referenced_column_name as 'primary_key'
2818
+ ,fk.column_name as 'column'
2819
+ ,fk.constraint_name as 'name'
2820
+ FROM information_schema.key_column_usage fk
2821
+ WHERE fk.referenced_column_name is not null
2822
+ AND fk.table_schema = 'archiving_development'
2823
+ AND fk.table_name = 'posts_archive'
2824
+
2825
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2826
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2827
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2828
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2829
+ Migrating to Dummy20161103 (20161103110724)
2830
+ SQL (6.4ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103110724'
2831
+ Migrating to CreateLogOtherArchive (20161103100644)
2832
+  (16.4ms) DROP TABLE `log_others_archive`
2833
+ SQL (0.5ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103100644'
2834
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2835
+  (0.5ms) SELECT fk.referenced_table_name as 'to_table'
2836
+ ,fk.referenced_column_name as 'primary_key'
2837
+ ,fk.column_name as 'column'
2838
+ ,fk.constraint_name as 'name'
2839
+ FROM information_schema.key_column_usage fk
2840
+ WHERE fk.referenced_column_name is not null
2841
+ AND fk.table_schema = 'archiving_development'
2842
+ AND fk.table_name = 'log_days'
2843
+
2844
+  (0.3ms) SHOW CREATE TABLE `log_days`
2845
+  (0.5ms) SELECT fk.referenced_table_name as 'to_table'
2846
+ ,fk.referenced_column_name as 'primary_key'
2847
+ ,fk.column_name as 'column'
2848
+ ,fk.constraint_name as 'name'
2849
+ FROM information_schema.key_column_usage fk
2850
+ WHERE fk.referenced_column_name is not null
2851
+ AND fk.table_schema = 'archiving_development'
2852
+ AND fk.table_name = 'log_days_archive'
2853
+
2854
+  (0.5ms) SHOW CREATE TABLE `log_days_archive`
2855
+  (0.6ms) SELECT fk.referenced_table_name as 'to_table'
2856
+ ,fk.referenced_column_name as 'primary_key'
2857
+ ,fk.column_name as 'column'
2858
+ ,fk.constraint_name as 'name'
2859
+ FROM information_schema.key_column_usage fk
2860
+ WHERE fk.referenced_column_name is not null
2861
+ AND fk.table_schema = 'archiving_development'
2862
+ AND fk.table_name = 'log_lines'
2863
+
2864
+  (0.3ms) SHOW CREATE TABLE `log_lines`
2865
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2866
+ ,fk.referenced_column_name as 'primary_key'
2867
+ ,fk.column_name as 'column'
2868
+ ,fk.constraint_name as 'name'
2869
+ FROM information_schema.key_column_usage fk
2870
+ WHERE fk.referenced_column_name is not null
2871
+ AND fk.table_schema = 'archiving_development'
2872
+ AND fk.table_name = 'log_lines_archive'
2873
+
2874
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2875
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2876
+ ,fk.referenced_column_name as 'primary_key'
2877
+ ,fk.column_name as 'column'
2878
+ ,fk.constraint_name as 'name'
2879
+ FROM information_schema.key_column_usage fk
2880
+ WHERE fk.referenced_column_name is not null
2881
+ AND fk.table_schema = 'archiving_development'
2882
+ AND fk.table_name = 'log_others'
2883
+
2884
+  (0.1ms) SHOW CREATE TABLE `log_others`
2885
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2886
+ ,fk.referenced_column_name as 'primary_key'
2887
+ ,fk.column_name as 'column'
2888
+ ,fk.constraint_name as 'name'
2889
+ FROM information_schema.key_column_usage fk
2890
+ WHERE fk.referenced_column_name is not null
2891
+ AND fk.table_schema = 'archiving_development'
2892
+ AND fk.table_name = 'posts'
2893
+
2894
+  (0.1ms) SHOW CREATE TABLE `posts`
2895
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2896
+ ,fk.referenced_column_name as 'primary_key'
2897
+ ,fk.column_name as 'column'
2898
+ ,fk.constraint_name as 'name'
2899
+ FROM information_schema.key_column_usage fk
2900
+ WHERE fk.referenced_column_name is not null
2901
+ AND fk.table_schema = 'archiving_development'
2902
+ AND fk.table_name = 'posts_archive'
2903
+
2904
+  (0.2ms) SHOW CREATE TABLE `posts_archive`
2905
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2906
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2907
+ Migrating to CreateLogOther (20161103093656)
2908
+  (24.1ms) DROP TABLE `log_others`
2909
+ SQL (0.5ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20161103093656'
2910
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2911
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2912
+ ,fk.referenced_column_name as 'primary_key'
2913
+ ,fk.column_name as 'column'
2914
+ ,fk.constraint_name as 'name'
2915
+ FROM information_schema.key_column_usage fk
2916
+ WHERE fk.referenced_column_name is not null
2917
+ AND fk.table_schema = 'archiving_development'
2918
+ AND fk.table_name = 'log_days'
2919
+
2920
+  (0.1ms) SHOW CREATE TABLE `log_days`
2921
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2922
+ ,fk.referenced_column_name as 'primary_key'
2923
+ ,fk.column_name as 'column'
2924
+ ,fk.constraint_name as 'name'
2925
+ FROM information_schema.key_column_usage fk
2926
+ WHERE fk.referenced_column_name is not null
2927
+ AND fk.table_schema = 'archiving_development'
2928
+ AND fk.table_name = 'log_days_archive'
2929
+
2930
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
2931
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2932
+ ,fk.referenced_column_name as 'primary_key'
2933
+ ,fk.column_name as 'column'
2934
+ ,fk.constraint_name as 'name'
2935
+ FROM information_schema.key_column_usage fk
2936
+ WHERE fk.referenced_column_name is not null
2937
+ AND fk.table_schema = 'archiving_development'
2938
+ AND fk.table_name = 'log_lines'
2939
+
2940
+  (0.1ms) SHOW CREATE TABLE `log_lines`
2941
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
2942
+ ,fk.referenced_column_name as 'primary_key'
2943
+ ,fk.column_name as 'column'
2944
+ ,fk.constraint_name as 'name'
2945
+ FROM information_schema.key_column_usage fk
2946
+ WHERE fk.referenced_column_name is not null
2947
+ AND fk.table_schema = 'archiving_development'
2948
+ AND fk.table_name = 'log_lines_archive'
2949
+
2950
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
2951
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
2952
+ ,fk.referenced_column_name as 'primary_key'
2953
+ ,fk.column_name as 'column'
2954
+ ,fk.constraint_name as 'name'
2955
+ FROM information_schema.key_column_usage fk
2956
+ WHERE fk.referenced_column_name is not null
2957
+ AND fk.table_schema = 'archiving_development'
2958
+ AND fk.table_name = 'posts'
2959
+
2960
+  (0.1ms) SHOW CREATE TABLE `posts`
2961
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
2962
+ ,fk.referenced_column_name as 'primary_key'
2963
+ ,fk.column_name as 'column'
2964
+ ,fk.constraint_name as 'name'
2965
+ FROM information_schema.key_column_usage fk
2966
+ WHERE fk.referenced_column_name is not null
2967
+ AND fk.table_schema = 'archiving_development'
2968
+ AND fk.table_name = 'posts_archive'
2969
+
2970
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
2971
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2972
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2973
+ Migrating to CreatePostableOnLogDay (20140414124125)
2974
+  (37.7ms) ALTER TABLE `log_days_archive` DROP `postable_id`
2975
+  (21.3ms) ALTER TABLE `log_days_archive` DROP `postable_type`
2976
+  (21.1ms) ALTER TABLE `log_days` DROP `postable_id`
2977
+  (19.2ms) ALTER TABLE `log_days` DROP `postable_type`
2978
+ SQL (0.7ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20140414124125'
2979
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2980
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
2981
+ ,fk.referenced_column_name as 'primary_key'
2982
+ ,fk.column_name as 'column'
2983
+ ,fk.constraint_name as 'name'
2984
+ FROM information_schema.key_column_usage fk
2985
+ WHERE fk.referenced_column_name is not null
2986
+ AND fk.table_schema = 'archiving_development'
2987
+ AND fk.table_name = 'log_days'
2988
+ 
2989
+  (0.2ms) SHOW CREATE TABLE `log_days`
2990
+  (0.5ms) SELECT fk.referenced_table_name as 'to_table'
2991
+ ,fk.referenced_column_name as 'primary_key'
2992
+ ,fk.column_name as 'column'
2993
+ ,fk.constraint_name as 'name'
2994
+ FROM information_schema.key_column_usage fk
2995
+ WHERE fk.referenced_column_name is not null
2996
+ AND fk.table_schema = 'archiving_development'
2997
+ AND fk.table_name = 'log_days_archive'
2998
+ 
2999
+  (0.2ms) SHOW CREATE TABLE `log_days_archive`
3000
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3001
+ ,fk.referenced_column_name as 'primary_key'
3002
+ ,fk.column_name as 'column'
3003
+ ,fk.constraint_name as 'name'
3004
+ FROM information_schema.key_column_usage fk
3005
+ WHERE fk.referenced_column_name is not null
3006
+ AND fk.table_schema = 'archiving_development'
3007
+ AND fk.table_name = 'log_lines'
3008
+ 
3009
+  (0.1ms) SHOW CREATE TABLE `log_lines`
3010
+  (0.3ms) SELECT fk.referenced_table_name as 'to_table'
3011
+ ,fk.referenced_column_name as 'primary_key'
3012
+ ,fk.column_name as 'column'
3013
+ ,fk.constraint_name as 'name'
3014
+ FROM information_schema.key_column_usage fk
3015
+ WHERE fk.referenced_column_name is not null
3016
+ AND fk.table_schema = 'archiving_development'
3017
+ AND fk.table_name = 'log_lines_archive'
3018
+ 
3019
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
3020
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3021
+ ,fk.referenced_column_name as 'primary_key'
3022
+ ,fk.column_name as 'column'
3023
+ ,fk.constraint_name as 'name'
3024
+ FROM information_schema.key_column_usage fk
3025
+ WHERE fk.referenced_column_name is not null
3026
+ AND fk.table_schema = 'archiving_development'
3027
+ AND fk.table_name = 'posts'
3028
+ 
3029
+  (0.1ms) SHOW CREATE TABLE `posts`
3030
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3031
+ ,fk.referenced_column_name as 'primary_key'
3032
+ ,fk.column_name as 'column'
3033
+ ,fk.constraint_name as 'name'
3034
+ FROM information_schema.key_column_usage fk
3035
+ WHERE fk.referenced_column_name is not null
3036
+ AND fk.table_schema = 'archiving_development'
3037
+ AND fk.table_name = 'posts_archive'
3038
+ 
3039
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
3040
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
3041
+ Migrating to CreatePostableOnLogDay (20140414124125)
3042
+  (19.2ms) ALTER TABLE `log_days` ADD `postable_type` varchar(255)
3043
+  (20.4ms) ALTER TABLE `log_days` ADD `postable_id` int(11)
3044
+  (18.6ms) ALTER TABLE `log_days_archive` ADD `postable_type` varchar(255)
3045
+  (16.1ms) ALTER TABLE `log_days_archive` ADD `postable_id` int(11)
3046
+  (0.1ms) BEGIN
3047
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140414124125')
3048
+  (0.5ms) COMMIT
3049
+ Migrating to CreateLogOther (20161103093656)
3050
+  (9.7ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
3051
+  (0.1ms) BEGIN
3052
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103093656')
3053
+  (0.3ms) COMMIT
3054
+ Migrating to CreateLogOtherArchive (20161103100644)
3055
+  (11.4ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
3056
+  (0.2ms) BEGIN
3057
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103100644')
3058
+  (0.6ms) COMMIT
3059
+ Migrating to Dummy20161103 (20161103110724)
3060
+  (0.1ms) BEGIN
3061
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20161103110724')
3062
+  (0.3ms) COMMIT
3063
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
3064
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3065
+ ,fk.referenced_column_name as 'primary_key'
3066
+ ,fk.column_name as 'column'
3067
+ ,fk.constraint_name as 'name'
3068
+ FROM information_schema.key_column_usage fk
3069
+ WHERE fk.referenced_column_name is not null
3070
+ AND fk.table_schema = 'archiving_development'
3071
+ AND fk.table_name = 'log_days'
3072
+ 
3073
+  (0.1ms) SHOW CREATE TABLE `log_days`
3074
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3075
+ ,fk.referenced_column_name as 'primary_key'
3076
+ ,fk.column_name as 'column'
3077
+ ,fk.constraint_name as 'name'
3078
+ FROM information_schema.key_column_usage fk
3079
+ WHERE fk.referenced_column_name is not null
3080
+ AND fk.table_schema = 'archiving_development'
3081
+ AND fk.table_name = 'log_days_archive'
3082
+ 
3083
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
3084
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3085
+ ,fk.referenced_column_name as 'primary_key'
3086
+ ,fk.column_name as 'column'
3087
+ ,fk.constraint_name as 'name'
3088
+ FROM information_schema.key_column_usage fk
3089
+ WHERE fk.referenced_column_name is not null
3090
+ AND fk.table_schema = 'archiving_development'
3091
+ AND fk.table_name = 'log_lines'
3092
+ 
3093
+  (0.1ms) SHOW CREATE TABLE `log_lines`
3094
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3095
+ ,fk.referenced_column_name as 'primary_key'
3096
+ ,fk.column_name as 'column'
3097
+ ,fk.constraint_name as 'name'
3098
+ FROM information_schema.key_column_usage fk
3099
+ WHERE fk.referenced_column_name is not null
3100
+ AND fk.table_schema = 'archiving_development'
3101
+ AND fk.table_name = 'log_lines_archive'
3102
+ 
3103
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
3104
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3105
+ ,fk.referenced_column_name as 'primary_key'
3106
+ ,fk.column_name as 'column'
3107
+ ,fk.constraint_name as 'name'
3108
+ FROM information_schema.key_column_usage fk
3109
+ WHERE fk.referenced_column_name is not null
3110
+ AND fk.table_schema = 'archiving_development'
3111
+ AND fk.table_name = 'log_others'
3112
+ 
3113
+  (0.1ms) SHOW CREATE TABLE `log_others`
3114
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3115
+ ,fk.referenced_column_name as 'primary_key'
3116
+ ,fk.column_name as 'column'
3117
+ ,fk.constraint_name as 'name'
3118
+ FROM information_schema.key_column_usage fk
3119
+ WHERE fk.referenced_column_name is not null
3120
+ AND fk.table_schema = 'archiving_development'
3121
+ AND fk.table_name = 'posts'
3122
+ 
3123
+  (0.1ms) SHOW CREATE TABLE `posts`
3124
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3125
+ ,fk.referenced_column_name as 'primary_key'
3126
+ ,fk.column_name as 'column'
3127
+ ,fk.constraint_name as 'name'
3128
+ FROM information_schema.key_column_usage fk
3129
+ WHERE fk.referenced_column_name is not null
3130
+ AND fk.table_schema = 'archiving_development'
3131
+ AND fk.table_name = 'posts_archive'
3132
+ 
3133
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
3134
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
3135
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
3136
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3137
+ ,fk.referenced_column_name as 'primary_key'
3138
+ ,fk.column_name as 'column'
3139
+ ,fk.constraint_name as 'name'
3140
+ FROM information_schema.key_column_usage fk
3141
+ WHERE fk.referenced_column_name is not null
3142
+ AND fk.table_schema = 'archiving_development'
3143
+ AND fk.table_name = 'log_days'
3144
+ 
3145
+  (0.1ms) SHOW CREATE TABLE `log_days`
3146
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3147
+ ,fk.referenced_column_name as 'primary_key'
3148
+ ,fk.column_name as 'column'
3149
+ ,fk.constraint_name as 'name'
3150
+ FROM information_schema.key_column_usage fk
3151
+ WHERE fk.referenced_column_name is not null
3152
+ AND fk.table_schema = 'archiving_development'
3153
+ AND fk.table_name = 'log_days_archive'
3154
+ 
3155
+  (0.1ms) SHOW CREATE TABLE `log_days_archive`
3156
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3157
+ ,fk.referenced_column_name as 'primary_key'
3158
+ ,fk.column_name as 'column'
3159
+ ,fk.constraint_name as 'name'
3160
+ FROM information_schema.key_column_usage fk
3161
+ WHERE fk.referenced_column_name is not null
3162
+ AND fk.table_schema = 'archiving_development'
3163
+ AND fk.table_name = 'log_lines'
3164
+ 
3165
+  (0.1ms) SHOW CREATE TABLE `log_lines`
3166
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3167
+ ,fk.referenced_column_name as 'primary_key'
3168
+ ,fk.column_name as 'column'
3169
+ ,fk.constraint_name as 'name'
3170
+ FROM information_schema.key_column_usage fk
3171
+ WHERE fk.referenced_column_name is not null
3172
+ AND fk.table_schema = 'archiving_development'
3173
+ AND fk.table_name = 'log_lines_archive'
3174
+ 
3175
+  (0.1ms) SHOW CREATE TABLE `log_lines_archive`
3176
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3177
+ ,fk.referenced_column_name as 'primary_key'
3178
+ ,fk.column_name as 'column'
3179
+ ,fk.constraint_name as 'name'
3180
+ FROM information_schema.key_column_usage fk
3181
+ WHERE fk.referenced_column_name is not null
3182
+ AND fk.table_schema = 'archiving_development'
3183
+ AND fk.table_name = 'log_others'
3184
+ 
3185
+  (0.1ms) SHOW CREATE TABLE `log_others`
3186
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3187
+ ,fk.referenced_column_name as 'primary_key'
3188
+ ,fk.column_name as 'column'
3189
+ ,fk.constraint_name as 'name'
3190
+ FROM information_schema.key_column_usage fk
3191
+ WHERE fk.referenced_column_name is not null
3192
+ AND fk.table_schema = 'archiving_development'
3193
+ AND fk.table_name = 'posts'
3194
+ 
3195
+  (0.1ms) SHOW CREATE TABLE `posts`
3196
+  (0.2ms) SELECT fk.referenced_table_name as 'to_table'
3197
+ ,fk.referenced_column_name as 'primary_key'
3198
+ ,fk.column_name as 'column'
3199
+ ,fk.constraint_name as 'name'
3200
+ FROM information_schema.key_column_usage fk
3201
+ WHERE fk.referenced_column_name is not null
3202
+ AND fk.table_schema = 'archiving_development'
3203
+ AND fk.table_name = 'posts_archive'
3204
+ 
3205
+  (0.1ms) SHOW CREATE TABLE `posts_archive`
3206
+  (6.1ms) DROP DATABASE IF EXISTS `archiving_test`
3207
+  (0.6ms) CREATE DATABASE `archiving_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
3208
+  (27.3ms) CREATE TABLE `log_days` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
3209
+  (9.8ms) CREATE TABLE `log_days_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `day` date, `postable_type` varchar(255), `postable_id` int(11)) ENGINE=InnoDB
3210
+  (8.4ms) CREATE TABLE `log_lines` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
3211
+  (8.1ms) CREATE TABLE `log_lines_archive` (`id` int(11) auto_increment PRIMARY KEY, `log_day_id` int(11), `descr` varchar(255)) ENGINE=InnoDB
3212
+  (9.8ms) CREATE TABLE `log_others` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
3213
+  (9.2ms) CREATE TABLE `log_others_archive` (`id` int(11) auto_increment PRIMARY KEY, `post_id` int(11), `note` varchar(255)) ENGINE=InnoDB
3214
+  (7.9ms) CREATE TABLE `posts` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime, `tag` varchar(255)) ENGINE=InnoDB
3215
+  (11.6ms) CREATE TABLE `posts_archive` (`id` int(11) auto_increment PRIMARY KEY, `title` varchar(255), `body` text, `created_at` datetime, `updated_at` datetime, `tag` varchar(255)) ENGINE=InnoDB
3216
+  (8.1ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
3217
+  (14.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
3218
+  (0.2ms) SELECT version FROM `schema_migrations`
3219
+  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20161103110724')
3220
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220134827')
12
3221
   (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140852')
13
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
3222
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20140220140952')
14
3223
   (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20140317201702')
15
-  (3.0ms) DROP TABLE `log_days`
3224
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20140414124125')
3225
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20161103093656')
3226
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20161103100644')