Ran
|
Files
84
|
Run time
3s
|
Badge
Embed ▾
README BADGES
|
travis-ci
Re-enable the `AR::LogSubscriber::IGNORE_PAYLOAD_NAMES` The definition was used until version 2.x, but the commit below made that unused. https://github.com/drecom/activerecord-turntable/commit/2ad357dab --- Before: ``` irb(main):001:0> User.create SCHEMA [Shard: master] (0.5ms) SELECT table_name FROM information_schema.tables WHERE table_schema = 'sample_app_development' SCHEMA [Shard: master] (4.9ms) SELECT column_name FROM information_schema.key_column_usage WHERE constraint_name = 'PRIMARY' AND table_schema = 'sample_app_development' AND table_name = 'users' ORDER BY ordinal_position SCHEMA [Shard: master] (0.4ms) SHOW FULL FIELDS FROM `users` [Shard: user_seq] (2.1ms) UPDATE `users_id_seq` SET id=LAST_INSERT_ID(id+1) [Shard: user_seq] (0.2ms) SELECT LAST_INSERT_ID() [Shard: user_shard_1] (0.1ms) BEGIN [ActiveRecord::Turntable] Sending method: insert, sql: #<Arel::InsertManager:0x007f97d9f4ebb0>, shards: ["user_shard_1"] SQL [Shard: user_shard_1] (1.4ms) INSERT INTO `users` (`id`, `created_at`, `updated_at`) VALUES (3, '2017-01-21 17:18:18', '2017-01-21 17:18:18') [Shard: user_shard_1] (5.8ms) COMMIT => #<User id: 3, name: nil, created_at: "2017-01-21 17:18:18", updated_at: "2017-01-21 17:18:18"> ``` After: ``` irb(main):001:0> User.create [Shard: user_seq] (2.6ms) UPDATE `users_id_seq` SET id=LAST_INSERT_ID(id+1) [Shard: user_seq] (0.2ms) SELECT LAST_INSERT_ID() [Shard: user_shard_1] (0.2ms) BEGIN [ActiveRecord::Turntable] Sending method: insert, sql: #<Arel::InsertManager:0x007fe8aa333520>, shards: ["user_shard_1"] SQL [Shard: user_shard_1] (15.5ms) INSERT INTO `users` (`id`, `created_at`, `updated_at`) VALUES (4, '2017-01-21 17:28:57', '2017-01-21 17:28:57') [Shard: user_shard_1] (6.1ms) COMMIT => #<User id: 4, name: nil, created_at: "2017-01-21 17:28:57", updated_at: "2017-01-21 17:28:57"> ```
2204 of 2445 relevant lines covered (90.14%)
209.13 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|