nostalgic 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/nostalgic/_collection_select.html.erb +30 -0
- data/lib/nostalgic/form_builder.rb +6 -0
- data/lib/nostalgic/nostalgic_for.rb +21 -2
- data/lib/nostalgic/version.rb +1 -1
- data/test/dummy/app/models/company.rb +3 -0
- data/test/dummy/app/models/user.rb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20161217105723_create_companies.rb +8 -0
- data/test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb +5 -0
- data/test/dummy/db/schema.rb +8 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +338 -0
- data/test/dummy/log/test.log +3341 -0
- data/test/dummy/test/models/company_test.rb +5 -0
- data/test/dummy/test/models/user_test.rb +20 -4
- data/test/fixtures/companies.yml +7 -0
- data/test/fixtures/nostalgic/attrs.yml +7 -0
- data/test/fixtures/users.yml +1 -0
- data/test/models/nostalgic/attr_test.rb +1 -1
- metadata +19 -8
data/test/dummy/log/test.log
CHANGED
@@ -6181,3 +6181,3344 @@ NostalgicTest: test_that_it_has_a_version_number
|
|
6181
6181
|
NostalgicTest: test_it_does_something_useful
|
6182
6182
|
--------------------------------------------
|
6183
6183
|
[1m[35m (0.0ms)[0m rollback transaction
|
6184
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6185
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6186
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6187
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-10-20', '2016-11-20 08:54:28', '2016-11-20 08:54:28')
|
6188
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-11-20', '2016-11-20 08:54:28', '2016-11-20 08:54:28')[0m
|
6189
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-11-21', '2016-11-20 08:54:28', '2016-11-20 08:54:28')
|
6190
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
6191
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-11-20 08:54:28', '2016-11-20 08:54:28')
|
6192
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
6193
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6194
|
+
------------------------------------------------
|
6195
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6196
|
+
------------------------------------------------
|
6197
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6198
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6199
|
+
--------------------------------------------
|
6200
|
+
NostalgicTest: test_it_does_something_useful
|
6201
|
+
--------------------------------------------
|
6202
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6203
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6204
|
+
-----------------------
|
6205
|
+
UserTest: test_save_tel
|
6206
|
+
-----------------------
|
6207
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6208
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6209
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6211
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-11-20 08:54:28.111305"], ["id", 1]]
|
6212
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-11-20"]]
|
6213
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-11-20 08:54:28.113663"], ["id", 2]]
|
6214
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6215
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6216
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6217
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-11-20 08:54:28.115373"], ["id", 1]]
|
6218
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-11-22"]]
|
6219
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-11-22"], ["value", "555-123-4567"], ["created_at", "2016-11-20 08:54:28.116727"], ["updated_at", "2016-11-20 08:54:28.116727"]]
|
6220
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6221
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6222
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-21') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6223
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-22') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6226
|
+
------------------
|
6227
|
+
UserTest: test_tel
|
6228
|
+
------------------
|
6229
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6230
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6231
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6232
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6233
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-21') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6234
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6235
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6236
|
+
-------------------
|
6237
|
+
UserTest: test_tels
|
6238
|
+
-------------------
|
6239
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6240
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6241
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6242
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6243
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6244
|
+
-----------------------------------------
|
6245
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6246
|
+
-----------------------------------------
|
6247
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6248
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6249
|
+
[1m[36m (3.6ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6250
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6251
|
+
[1m[36m (2.5ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
6252
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6253
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6254
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6255
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6256
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
6257
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
6258
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6259
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6260
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6261
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6262
|
+
[1m[36m (1.9ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
6263
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6264
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6265
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6266
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6267
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
6268
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
6269
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6270
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6271
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6272
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
6273
|
+
FROM sqlite_master
|
6274
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
6275
|
+
UNION ALL
|
6276
|
+
SELECT sql
|
6277
|
+
FROM sqlite_temp_master
|
6278
|
+
WHERE name='index_nostalgic_attrs_on_model_id_and_model_type_and_name' AND type='index'
|
6279
|
+
[0m
|
6280
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6281
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6282
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6283
|
+
[1m[36m (1.7ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
6284
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6285
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6286
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6287
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6288
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
6289
|
+
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
6290
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6291
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6292
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6293
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6294
|
+
[1m[36m (2.0ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
6295
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6296
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6297
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6298
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6299
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
6300
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
6301
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6303
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6304
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6305
|
+
[1m[36m (2.0ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
6306
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6307
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6308
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6309
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6310
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
6311
|
+
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
6312
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6313
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6314
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6315
|
+
[1m[36m (1.8ms)[0m [1mCREATE INDEX "index_nostalgic_attrs_on_model_id_and_model_type_and_name" ON "nostalgic_attrs" ("model_id", "model_type", "name")[0m
|
6316
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6317
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6318
|
+
[1m[35m (2.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
6319
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6320
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161120085751')
|
6321
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
6322
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6323
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6324
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6325
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6326
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-10-20', '2016-11-20 09:05:50', '2016-11-20 09:05:50')
|
6327
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-11-20', '2016-11-20 09:05:50', '2016-11-20 09:05:50')[0m
|
6328
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-11-21', '2016-11-20 09:05:50', '2016-11-20 09:05:50')
|
6329
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6330
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-11-20 09:05:50', '2016-11-20 09:05:50')
|
6331
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
6332
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6333
|
+
------------------
|
6334
|
+
UserTest: test_tel
|
6335
|
+
------------------
|
6336
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6337
|
+
[1m[35mNostalgic::Attr Load (0.3ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6338
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6339
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6340
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6341
|
+
-----------------------
|
6342
|
+
UserTest: test_save_tel
|
6343
|
+
-----------------------
|
6344
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6345
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6346
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6348
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-11-20 09:05:50.730129"], ["id", 1]]
|
6349
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-11-20"]]
|
6350
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-11-20 09:05:50.732797"], ["id", 2]]
|
6351
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6352
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6353
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6354
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-11-20 09:05:50.734989"], ["id", 1]]
|
6355
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-11-22"]]
|
6356
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-11-22"], ["value", "555-123-4567"], ["created_at", "2016-11-20 09:05:50.736298"], ["updated_at", "2016-11-20 09:05:50.736298"]]
|
6357
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6358
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6359
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-21') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6360
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-22') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6361
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6362
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6363
|
+
-------------------
|
6364
|
+
UserTest: test_tels
|
6365
|
+
-------------------
|
6366
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6367
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-11-20') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6368
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6369
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6370
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6371
|
+
-----------------------------------------
|
6372
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6373
|
+
-----------------------------------------
|
6374
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6375
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6376
|
+
------------------------------------------------
|
6377
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6378
|
+
------------------------------------------------
|
6379
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6380
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6381
|
+
--------------------------------------------
|
6382
|
+
NostalgicTest: test_it_does_something_useful
|
6383
|
+
--------------------------------------------
|
6384
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6385
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6386
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6387
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6388
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 04:59:21', '2016-12-17 04:59:21')
|
6389
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 04:59:21', '2016-12-17 04:59:21')[0m
|
6390
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 04:59:21', '2016-12-17 04:59:21')
|
6391
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6392
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 04:59:21', '2016-12-17 04:59:21')
|
6393
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
6394
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6395
|
+
-----------------------
|
6396
|
+
UserTest: test_save_tel
|
6397
|
+
-----------------------
|
6398
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6399
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6400
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6401
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6402
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 04:59:21.780565"], ["id", 1]]
|
6403
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6404
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 04:59:21.782739"], ["id", 2]]
|
6405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6406
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6407
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6408
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 04:59:21.784345"], ["id", 1]]
|
6409
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6410
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 04:59:21.785540"], ["updated_at", "2016-12-17 04:59:21.785540"]]
|
6411
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6412
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6413
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6414
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6415
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6417
|
+
-------------------
|
6418
|
+
UserTest: test_tels
|
6419
|
+
-------------------
|
6420
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6421
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6422
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6423
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6424
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6425
|
+
------------------
|
6426
|
+
UserTest: test_tel
|
6427
|
+
------------------
|
6428
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6429
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6430
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6431
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6432
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6433
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6434
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6435
|
+
--------------------------------------------
|
6436
|
+
NostalgicTest: test_it_does_something_useful
|
6437
|
+
--------------------------------------------
|
6438
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6439
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6440
|
+
------------------------------------------------
|
6441
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6442
|
+
------------------------------------------------
|
6443
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6444
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6445
|
+
-----------------------------------------
|
6446
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6447
|
+
-----------------------------------------
|
6448
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6449
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6450
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6451
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6452
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 05:00:57', '2016-12-17 05:00:57')
|
6453
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 05:00:57', '2016-12-17 05:00:57')[0m
|
6454
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 05:00:57', '2016-12-17 05:00:57')
|
6455
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6456
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 05:00:57', '2016-12-17 05:00:57')
|
6457
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
6458
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6459
|
+
--------------------------------------------
|
6460
|
+
NostalgicTest: test_it_does_something_useful
|
6461
|
+
--------------------------------------------
|
6462
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6463
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6464
|
+
------------------------------------------------
|
6465
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6466
|
+
------------------------------------------------
|
6467
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6468
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6469
|
+
-----------------------
|
6470
|
+
UserTest: test_save_tel
|
6471
|
+
-----------------------
|
6472
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6473
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6475
|
+
------------------
|
6476
|
+
UserTest: test_tel
|
6477
|
+
------------------
|
6478
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6479
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6480
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6481
|
+
-------------------
|
6482
|
+
UserTest: test_tels
|
6483
|
+
-------------------
|
6484
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6485
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6486
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6487
|
+
-----------------------------------------
|
6488
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6489
|
+
-----------------------------------------
|
6490
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6491
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6493
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6494
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 05:01:27', '2016-12-17 05:01:27')
|
6495
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 05:01:27', '2016-12-17 05:01:27')[0m
|
6496
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 05:01:27', '2016-12-17 05:01:27')
|
6497
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
6498
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 05:01:27', '2016-12-17 05:01:27')
|
6499
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
6500
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6501
|
+
------------------------------------------------
|
6502
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6503
|
+
------------------------------------------------
|
6504
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6505
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6506
|
+
--------------------------------------------
|
6507
|
+
NostalgicTest: test_it_does_something_useful
|
6508
|
+
--------------------------------------------
|
6509
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6510
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6511
|
+
------------------
|
6512
|
+
UserTest: test_tel
|
6513
|
+
------------------
|
6514
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6515
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6516
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6517
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6518
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6519
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6520
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6521
|
+
-------------------
|
6522
|
+
UserTest: test_tels
|
6523
|
+
-------------------
|
6524
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6525
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6526
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6527
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6528
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6529
|
+
-----------------------
|
6530
|
+
UserTest: test_save_tel
|
6531
|
+
-----------------------
|
6532
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6533
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6534
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6535
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6536
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 05:01:27.308888"], ["id", 1]]
|
6537
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6538
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 05:01:27.310940"], ["id", 2]]
|
6539
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6540
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6541
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6542
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 05:01:27.312512"], ["id", 1]]
|
6543
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6544
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 05:01:27.313695"], ["updated_at", "2016-12-17 05:01:27.313695"]]
|
6545
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6546
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6547
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6548
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6549
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6550
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6551
|
+
-----------------------------------------
|
6552
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6553
|
+
-----------------------------------------
|
6554
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6555
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6556
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6557
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6558
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 05:01:33', '2016-12-17 05:01:33')
|
6559
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 05:01:33', '2016-12-17 05:01:33')[0m
|
6560
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 05:01:33', '2016-12-17 05:01:33')
|
6561
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6562
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 05:01:33', '2016-12-17 05:01:33')
|
6563
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
6564
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6565
|
+
--------------------------------------------
|
6566
|
+
NostalgicTest: test_it_does_something_useful
|
6567
|
+
--------------------------------------------
|
6568
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6569
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6570
|
+
------------------------------------------------
|
6571
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6572
|
+
------------------------------------------------
|
6573
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6574
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6575
|
+
-------------------
|
6576
|
+
UserTest: test_tels
|
6577
|
+
-------------------
|
6578
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6579
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6580
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6581
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6582
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6583
|
+
-----------------------
|
6584
|
+
UserTest: test_save_tel
|
6585
|
+
-----------------------
|
6586
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6587
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6588
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6589
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6590
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 05:01:33.809139"], ["id", 1]]
|
6591
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6592
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 05:01:33.811289"], ["id", 2]]
|
6593
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6594
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6596
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 05:01:33.812852"], ["id", 1]]
|
6597
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6598
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 05:01:33.814049"], ["updated_at", "2016-12-17 05:01:33.814049"]]
|
6599
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6600
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6601
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6602
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6603
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
6604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6605
|
+
------------------
|
6606
|
+
UserTest: test_tel
|
6607
|
+
------------------
|
6608
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6609
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6610
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6611
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6612
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6613
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6615
|
+
-----------------------------------------
|
6616
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6617
|
+
-----------------------------------------
|
6618
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6619
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6620
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6621
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6622
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 05:01:43', '2016-12-17 05:01:43')
|
6623
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 05:01:43', '2016-12-17 05:01:43')[0m
|
6624
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 05:01:43', '2016-12-17 05:01:43')
|
6625
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6626
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 05:01:43', '2016-12-17 05:01:43')
|
6627
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
6628
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6629
|
+
------------------------------------------------
|
6630
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6631
|
+
------------------------------------------------
|
6632
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6633
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6634
|
+
--------------------------------------------
|
6635
|
+
NostalgicTest: test_it_does_something_useful
|
6636
|
+
--------------------------------------------
|
6637
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6638
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6639
|
+
-----------------------------------------
|
6640
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6641
|
+
-----------------------------------------
|
6642
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6643
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6644
|
+
-----------------------
|
6645
|
+
UserTest: test_save_tel
|
6646
|
+
-----------------------
|
6647
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6648
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6649
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6650
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6651
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 05:01:43.170774"], ["id", 1]]
|
6652
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6653
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 05:01:43.173107"], ["id", 2]]
|
6654
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6655
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6656
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6657
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 05:01:43.174909"], ["id", 1]]
|
6658
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6659
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 05:01:43.176064"], ["updated_at", "2016-12-17 05:01:43.176064"]]
|
6660
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6661
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6662
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6663
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6664
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6665
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6666
|
+
-------------------
|
6667
|
+
UserTest: test_tels
|
6668
|
+
-------------------
|
6669
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6670
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6671
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6672
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6673
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6674
|
+
------------------
|
6675
|
+
UserTest: test_tel
|
6676
|
+
------------------
|
6677
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6678
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6679
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6680
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6681
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6682
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6683
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6684
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6685
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6686
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 05:03:29', '2016-12-17 05:03:29')
|
6687
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 05:03:29', '2016-12-17 05:03:29')[0m
|
6688
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 05:03:29', '2016-12-17 05:03:29')
|
6689
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6690
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 05:03:29', '2016-12-17 05:03:29')
|
6691
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
6692
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6693
|
+
-----------------------------------------
|
6694
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6695
|
+
-----------------------------------------
|
6696
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6697
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6698
|
+
-----------------------
|
6699
|
+
UserTest: test_save_tel
|
6700
|
+
-----------------------
|
6701
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6702
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6703
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6704
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6705
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 05:03:29.548243"], ["id", 1]]
|
6706
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6707
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 05:03:29.550345"], ["id", 2]]
|
6708
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6709
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6711
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 05:03:29.552039"], ["id", 1]]
|
6712
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6713
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 05:03:29.553388"], ["updated_at", "2016-12-17 05:03:29.553388"]]
|
6714
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6715
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6716
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6717
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6718
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6719
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6720
|
+
------------------
|
6721
|
+
UserTest: test_tel
|
6722
|
+
------------------
|
6723
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6724
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6725
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6726
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6727
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6728
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6729
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6730
|
+
-------------------
|
6731
|
+
UserTest: test_tels
|
6732
|
+
-------------------
|
6733
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6734
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6735
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6736
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6737
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6738
|
+
--------------------------------------------
|
6739
|
+
NostalgicTest: test_it_does_something_useful
|
6740
|
+
--------------------------------------------
|
6741
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6742
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6743
|
+
------------------------------------------------
|
6744
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6745
|
+
------------------------------------------------
|
6746
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6747
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6748
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6749
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6750
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6751
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6752
|
+
[1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6753
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6754
|
+
[1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6755
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6756
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6757
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6758
|
+
Migrating to CreateNostalgicAttrs (20160807101438)
|
6759
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6760
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
6761
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6762
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6763
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6764
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6765
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6766
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6767
|
+
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6768
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6769
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6770
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6771
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6772
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6773
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6774
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6775
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6776
|
+
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6777
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6778
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6779
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6780
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6781
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6782
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6783
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6784
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6785
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6786
|
+
[1m[36m (2.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6787
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6788
|
+
[1m[36m (2.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6789
|
+
[1m[35m (2.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6790
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6791
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6792
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6793
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6794
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6795
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6796
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6797
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6798
|
+
[1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6799
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6800
|
+
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6801
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6802
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6803
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6804
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6805
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6806
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6807
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6808
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6809
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6810
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6811
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6812
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6813
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6814
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6815
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6816
|
+
[1m[36m (2.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6817
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6818
|
+
[1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6819
|
+
[1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6820
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6821
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6822
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
6823
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
6824
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
6825
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6826
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6827
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6828
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160816080822')[0m
|
6829
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160807103323')
|
6830
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6831
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6832
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6833
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6834
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 06:43:15', '2016-12-17 06:43:15')
|
6835
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 06:43:15', '2016-12-17 06:43:15')[0m
|
6836
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 06:43:15', '2016-12-17 06:43:15')
|
6837
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6838
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 06:43:15', '2016-12-17 06:43:15')
|
6839
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
6840
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6841
|
+
--------------------------------------------
|
6842
|
+
NostalgicTest: test_it_does_something_useful
|
6843
|
+
--------------------------------------------
|
6844
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6845
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6846
|
+
------------------------------------------------
|
6847
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6848
|
+
------------------------------------------------
|
6849
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6850
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6851
|
+
-----------------------------------------
|
6852
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6853
|
+
-----------------------------------------
|
6854
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6855
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6856
|
+
-----------------------
|
6857
|
+
UserTest: test_save_tel
|
6858
|
+
-----------------------
|
6859
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6860
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6861
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6863
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 06:43:15.742035"], ["id", 1]]
|
6864
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6865
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 06:43:15.744652"], ["id", 2]]
|
6866
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6867
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6868
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6869
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 06:43:15.746433"], ["id", 1]]
|
6870
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6871
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 06:43:15.747573"], ["updated_at", "2016-12-17 06:43:15.747573"]]
|
6872
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6873
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6874
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6875
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6876
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6877
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6878
|
+
------------------
|
6879
|
+
UserTest: test_tel
|
6880
|
+
------------------
|
6881
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6882
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6883
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6884
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6885
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6886
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6887
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6888
|
+
-------------------
|
6889
|
+
UserTest: test_tels
|
6890
|
+
-------------------
|
6891
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6892
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6893
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6894
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6895
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6896
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6897
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6898
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 06:48:05', '2016-12-17 06:48:05')
|
6899
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 06:48:05', '2016-12-17 06:48:05')[0m
|
6900
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 06:48:05', '2016-12-17 06:48:05')
|
6901
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
6902
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 06:48:05', '2016-12-17 06:48:05')
|
6903
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
6904
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6905
|
+
------------------------------------------------
|
6906
|
+
NostalgicTest: test_that_it_has_a_version_number
|
6907
|
+
------------------------------------------------
|
6908
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6909
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6910
|
+
--------------------------------------------
|
6911
|
+
NostalgicTest: test_it_does_something_useful
|
6912
|
+
--------------------------------------------
|
6913
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6914
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6915
|
+
-------------------
|
6916
|
+
UserTest: test_tels
|
6917
|
+
-------------------
|
6918
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6919
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6920
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6921
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6922
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6923
|
+
-----------------------
|
6924
|
+
UserTest: test_save_tel
|
6925
|
+
-----------------------
|
6926
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6927
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6928
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6929
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6930
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 06:48:05.456669"], ["id", 1]]
|
6931
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6932
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 06:48:05.459566"], ["id", 2]]
|
6933
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6934
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6935
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6936
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 06:48:05.461299"], ["id", 1]]
|
6937
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6938
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 06:48:05.462460"], ["updated_at", "2016-12-17 06:48:05.462460"]]
|
6939
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6940
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6941
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6942
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6943
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6944
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6945
|
+
------------------
|
6946
|
+
UserTest: test_tel
|
6947
|
+
------------------
|
6948
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6949
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6950
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6951
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6952
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6953
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6954
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6955
|
+
-----------------------------------------
|
6956
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
6957
|
+
-----------------------------------------
|
6958
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6959
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6960
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6961
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
6962
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 06:50:44', '2016-12-17 06:50:44')
|
6963
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 06:50:44', '2016-12-17 06:50:44')[0m
|
6964
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 06:50:44', '2016-12-17 06:50:44')
|
6965
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
6966
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 06:50:44', '2016-12-17 06:50:44')
|
6967
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
6968
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6969
|
+
-----------------------
|
6970
|
+
UserTest: test_save_tel
|
6971
|
+
-----------------------
|
6972
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
6973
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6974
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6975
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6976
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 06:50:44.423069"], ["id", 1]]
|
6977
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
6978
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 06:50:44.425753"], ["id", 2]]
|
6979
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6980
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6981
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6982
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 06:50:44.427490"], ["id", 1]]
|
6983
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
6984
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 06:50:44.428608"], ["updated_at", "2016-12-17 06:50:44.428608"]]
|
6985
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6986
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6987
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6988
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
6989
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6990
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6991
|
+
-------------------
|
6992
|
+
UserTest: test_tels
|
6993
|
+
-------------------
|
6994
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
6995
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6996
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
6997
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6998
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6999
|
+
------------------
|
7000
|
+
UserTest: test_tel
|
7001
|
+
------------------
|
7002
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7003
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7004
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7005
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7006
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7007
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7008
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7009
|
+
-----------------------------------------
|
7010
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7011
|
+
-----------------------------------------
|
7012
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7013
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7014
|
+
--------------------------------------------
|
7015
|
+
NostalgicTest: test_it_does_something_useful
|
7016
|
+
--------------------------------------------
|
7017
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7018
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7019
|
+
------------------------------------------------
|
7020
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7021
|
+
------------------------------------------------
|
7022
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7023
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7024
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7025
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7026
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 06:54:05', '2016-12-17 06:54:05')
|
7027
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 06:54:05', '2016-12-17 06:54:05')[0m
|
7028
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 06:54:05', '2016-12-17 06:54:05')
|
7029
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7030
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 06:54:05', '2016-12-17 06:54:05')
|
7031
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
7032
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7033
|
+
--------------------------------------------
|
7034
|
+
NostalgicTest: test_it_does_something_useful
|
7035
|
+
--------------------------------------------
|
7036
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7037
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7038
|
+
------------------------------------------------
|
7039
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7040
|
+
------------------------------------------------
|
7041
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7042
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7043
|
+
------------------
|
7044
|
+
UserTest: test_tel
|
7045
|
+
------------------
|
7046
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7047
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7048
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7049
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7050
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7051
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7052
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7053
|
+
-------------------
|
7054
|
+
UserTest: test_tels
|
7055
|
+
-------------------
|
7056
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7057
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7058
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7059
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7060
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7061
|
+
-----------------------
|
7062
|
+
UserTest: test_save_tel
|
7063
|
+
-----------------------
|
7064
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7065
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7066
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7067
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7068
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 06:54:05.965407"], ["id", 1]]
|
7069
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7070
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 06:54:05.967594"], ["id", 2]]
|
7071
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7072
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7073
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7074
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 06:54:05.969310"], ["id", 1]]
|
7075
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7076
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 06:54:05.970587"], ["updated_at", "2016-12-17 06:54:05.970587"]]
|
7077
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7078
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7079
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7080
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7081
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7082
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7083
|
+
-----------------------------------------
|
7084
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7085
|
+
-----------------------------------------
|
7086
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7087
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7088
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7089
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7090
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 06:54:58', '2016-12-17 06:54:58')
|
7091
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 06:54:58', '2016-12-17 06:54:58')[0m
|
7092
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 06:54:58', '2016-12-17 06:54:58')
|
7093
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7094
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 06:54:58', '2016-12-17 06:54:58')
|
7095
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
7096
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7097
|
+
-----------------------------------------
|
7098
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7099
|
+
-----------------------------------------
|
7100
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7101
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7102
|
+
-----------------------
|
7103
|
+
UserTest: test_save_tel
|
7104
|
+
-----------------------
|
7105
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7106
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7107
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7108
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7109
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 06:54:58.484873"], ["id", 1]]
|
7110
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7111
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 06:54:58.487078"], ["id", 2]]
|
7112
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7113
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7114
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7115
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 06:54:58.488905"], ["id", 1]]
|
7116
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7117
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 06:54:58.490018"], ["updated_at", "2016-12-17 06:54:58.490018"]]
|
7118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7119
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7120
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7121
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7122
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7123
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7124
|
+
------------------
|
7125
|
+
UserTest: test_tel
|
7126
|
+
------------------
|
7127
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7128
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7129
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7130
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7131
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7132
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7133
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7134
|
+
-------------------
|
7135
|
+
UserTest: test_tels
|
7136
|
+
-------------------
|
7137
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7138
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7139
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7140
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7141
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7142
|
+
--------------------------------------------
|
7143
|
+
NostalgicTest: test_it_does_something_useful
|
7144
|
+
--------------------------------------------
|
7145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7147
|
+
------------------------------------------------
|
7148
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7149
|
+
------------------------------------------------
|
7150
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7151
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7152
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7153
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7154
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 06:55:30', '2016-12-17 06:55:30')
|
7155
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 06:55:30', '2016-12-17 06:55:30')[0m
|
7156
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 06:55:30', '2016-12-17 06:55:30')
|
7157
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7158
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 06:55:30', '2016-12-17 06:55:30')
|
7159
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
7160
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7161
|
+
--------------------------------------------
|
7162
|
+
NostalgicTest: test_it_does_something_useful
|
7163
|
+
--------------------------------------------
|
7164
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7165
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7166
|
+
------------------------------------------------
|
7167
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7168
|
+
------------------------------------------------
|
7169
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7171
|
+
-----------------------------------------
|
7172
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7173
|
+
-----------------------------------------
|
7174
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7175
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7176
|
+
-----------------------
|
7177
|
+
UserTest: test_save_tel
|
7178
|
+
-----------------------
|
7179
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7180
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7181
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7182
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7183
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 06:55:30.390377"], ["id", 1]]
|
7184
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7185
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 06:55:30.392636"], ["id", 2]]
|
7186
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7187
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7188
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7189
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 06:55:30.394278"], ["id", 1]]
|
7190
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7191
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 06:55:30.395463"], ["updated_at", "2016-12-17 06:55:30.395463"]]
|
7192
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7193
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7194
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7195
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7196
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7198
|
+
-------------------
|
7199
|
+
UserTest: test_tels
|
7200
|
+
-------------------
|
7201
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7202
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7203
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7204
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7205
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7206
|
+
------------------
|
7207
|
+
UserTest: test_tel
|
7208
|
+
------------------
|
7209
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7210
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7211
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7212
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7213
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7215
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7216
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7217
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7218
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 07:11:40', '2016-12-17 07:11:40')
|
7219
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 07:11:40', '2016-12-17 07:11:40')[0m
|
7220
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 07:11:40', '2016-12-17 07:11:40')
|
7221
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7222
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 07:11:40', '2016-12-17 07:11:40')
|
7223
|
+
[1m[36m (4.8ms)[0m [1mcommit transaction[0m
|
7224
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7225
|
+
--------------------------------------------
|
7226
|
+
NostalgicTest: test_it_does_something_useful
|
7227
|
+
--------------------------------------------
|
7228
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7229
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7230
|
+
------------------------------------------------
|
7231
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7232
|
+
------------------------------------------------
|
7233
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7234
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7235
|
+
-----------------------
|
7236
|
+
UserTest: test_save_tel
|
7237
|
+
-----------------------
|
7238
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7239
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7240
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7242
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 07:11:40.929655"], ["id", 1]]
|
7243
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7244
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 07:11:40.932080"], ["id", 2]]
|
7245
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7246
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7247
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7248
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 07:11:40.933815"], ["id", 1]]
|
7249
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7250
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 07:11:40.935041"], ["updated_at", "2016-12-17 07:11:40.935041"]]
|
7251
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7252
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7253
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7254
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7255
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7257
|
+
------------------
|
7258
|
+
UserTest: test_tel
|
7259
|
+
------------------
|
7260
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7261
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7262
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7263
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7264
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7265
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7266
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7267
|
+
-------------------
|
7268
|
+
UserTest: test_tels
|
7269
|
+
-------------------
|
7270
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7271
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7272
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7273
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7274
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7275
|
+
-----------------------------------------
|
7276
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7277
|
+
-----------------------------------------
|
7278
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7279
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7280
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7281
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7282
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 07:23:07', '2016-12-17 07:23:07')
|
7283
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 07:23:07', '2016-12-17 07:23:07')[0m
|
7284
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 07:23:07', '2016-12-17 07:23:07')
|
7285
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7286
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 07:23:07', '2016-12-17 07:23:07')
|
7287
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
7288
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7289
|
+
-----------------------------------------
|
7290
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7291
|
+
-----------------------------------------
|
7292
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7293
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7294
|
+
-----------------------
|
7295
|
+
UserTest: test_save_tel
|
7296
|
+
-----------------------
|
7297
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7298
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7299
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7300
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7301
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 07:23:07.984369"], ["id", 1]]
|
7302
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7303
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 07:23:07.986469"], ["id", 2]]
|
7304
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7305
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7307
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 07:23:07.988048"], ["id", 1]]
|
7308
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7309
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 07:23:07.989223"], ["updated_at", "2016-12-17 07:23:07.989223"]]
|
7310
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7311
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7312
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7313
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7314
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7316
|
+
------------------
|
7317
|
+
UserTest: test_tel
|
7318
|
+
------------------
|
7319
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7320
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7321
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7322
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7323
|
+
-------------------
|
7324
|
+
UserTest: test_tels
|
7325
|
+
-------------------
|
7326
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7327
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7328
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7329
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7331
|
+
--------------------------------------------
|
7332
|
+
NostalgicTest: test_it_does_something_useful
|
7333
|
+
--------------------------------------------
|
7334
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7335
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7336
|
+
------------------------------------------------
|
7337
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7338
|
+
------------------------------------------------
|
7339
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7340
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7341
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7342
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7343
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 07:23:37', '2016-12-17 07:23:37')
|
7344
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 07:23:37', '2016-12-17 07:23:37')[0m
|
7345
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 07:23:37', '2016-12-17 07:23:37')
|
7346
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7347
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 07:23:37', '2016-12-17 07:23:37')
|
7348
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
7349
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7350
|
+
-----------------------------------------
|
7351
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7352
|
+
-----------------------------------------
|
7353
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7354
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7355
|
+
------------------------------------------------
|
7356
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7357
|
+
------------------------------------------------
|
7358
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7359
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7360
|
+
--------------------------------------------
|
7361
|
+
NostalgicTest: test_it_does_something_useful
|
7362
|
+
--------------------------------------------
|
7363
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7364
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7365
|
+
-----------------------
|
7366
|
+
UserTest: test_save_tel
|
7367
|
+
-----------------------
|
7368
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7369
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7370
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7371
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7372
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 07:23:37.914785"], ["id", 1]]
|
7373
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7374
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 07:23:37.917567"], ["id", 2]]
|
7375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7376
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7377
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7378
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 07:23:37.920025"], ["id", 1]]
|
7379
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7380
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 07:23:37.921460"], ["updated_at", "2016-12-17 07:23:37.921460"]]
|
7381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7382
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7383
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7384
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7385
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7386
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7387
|
+
------------------
|
7388
|
+
UserTest: test_tel
|
7389
|
+
------------------
|
7390
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7391
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7392
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7393
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? ORDER BY effective_at desc[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7394
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7395
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7396
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7397
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 07:42:54', '2016-12-17 07:42:54')
|
7398
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 07:42:54', '2016-12-17 07:42:54')[0m
|
7399
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 07:42:54', '2016-12-17 07:42:54')
|
7400
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7401
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 07:42:54', '2016-12-17 07:42:54')
|
7402
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
7403
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7404
|
+
-----------------------------------------
|
7405
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7406
|
+
-----------------------------------------
|
7407
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7408
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7409
|
+
------------------
|
7410
|
+
UserTest: test_tel
|
7411
|
+
------------------
|
7412
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7413
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7414
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7415
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7416
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7417
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 07:43:28', '2016-12-17 07:43:28')
|
7418
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 07:43:28', '2016-12-17 07:43:28')[0m
|
7419
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 07:43:28', '2016-12-17 07:43:28')
|
7420
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7421
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 07:43:28', '2016-12-17 07:43:28')
|
7422
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
7423
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7424
|
+
-----------------------------------------
|
7425
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7426
|
+
-----------------------------------------
|
7427
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7428
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7429
|
+
--------------------------------------------
|
7430
|
+
NostalgicTest: test_it_does_something_useful
|
7431
|
+
--------------------------------------------
|
7432
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7433
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7434
|
+
------------------------------------------------
|
7435
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7436
|
+
------------------------------------------------
|
7437
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7439
|
+
------------------
|
7440
|
+
UserTest: test_tel
|
7441
|
+
------------------
|
7442
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7443
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7444
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7445
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7446
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7447
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7448
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7449
|
+
-------------------
|
7450
|
+
UserTest: test_tels
|
7451
|
+
-------------------
|
7452
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7453
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7454
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7455
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7457
|
+
-----------------------
|
7458
|
+
UserTest: test_save_tel
|
7459
|
+
-----------------------
|
7460
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7461
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7462
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7463
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7464
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 07:43:28.131461"], ["id", 1]]
|
7465
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7466
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 07:43:28.134025"], ["id", 2]]
|
7467
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7468
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7470
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 07:43:28.135732"], ["id", 1]]
|
7471
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7472
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 07:43:28.136894"], ["updated_at", "2016-12-17 07:43:28.136894"]]
|
7473
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7474
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7475
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7476
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7477
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7478
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7479
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7480
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7481
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7482
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7483
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
7484
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7485
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7486
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7487
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7488
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7489
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7490
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7491
|
+
Migrating to CreateNostalgicAttrs (20160807101438)
|
7492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7493
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7494
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7495
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7496
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7497
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7498
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7499
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7500
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7501
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
7502
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7503
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7504
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7505
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7506
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7507
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7508
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7509
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7510
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7511
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7512
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7513
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
7514
|
+
[1m[35m (2.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7515
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7516
|
+
[1m[35m (2.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7517
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7518
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7519
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7520
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7521
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7522
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7523
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7524
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7525
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
7526
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7527
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7528
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7529
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7530
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7531
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7532
|
+
[1m[36m (3.6ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7533
|
+
[1m[35m (2.3ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7534
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7535
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7536
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
7537
|
+
[1m[35m (2.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7538
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7539
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7540
|
+
[1m[36m (1.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7541
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7542
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7543
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7544
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7545
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7546
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7547
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7548
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
7549
|
+
[1m[35m (2.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7550
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7551
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7552
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7553
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7554
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7555
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7556
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7557
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7558
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7559
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
7560
|
+
[1m[35m (2.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7561
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7562
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7563
|
+
[1m[36m (2.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7564
|
+
[1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7565
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7566
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7567
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7568
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "nostalgic_attrs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "model_type" varchar NOT NULL, "model_id" integer NOT NULL, "name" varchar NOT NULL, "value" varchar, "effective_at" date NOT NULL, "created_at" datetime, "updated_at" datetime)
|
7569
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "tel" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "company_id" integer) [0m
|
7570
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7571
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
7572
|
+
[1m[35m (2.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7573
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7574
|
+
[1m[35m (2.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105921')
|
7575
|
+
[1m[36m (1.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160807103323')[0m
|
7576
|
+
[1m[35m (1.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161217105723')
|
7577
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7578
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7580
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7581
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:04:28', '2016-12-17 11:04:28')
|
7582
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:04:28', '2016-12-17 11:04:28')[0m
|
7583
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:04:28', '2016-12-17 11:04:28')
|
7584
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
7585
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 11:04:28', '2016-12-17 11:04:28')
|
7586
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
7587
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7588
|
+
--------------------------------------------
|
7589
|
+
NostalgicTest: test_it_does_something_useful
|
7590
|
+
--------------------------------------------
|
7591
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7592
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7593
|
+
------------------------------------------------
|
7594
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7595
|
+
------------------------------------------------
|
7596
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7597
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7598
|
+
-----------------------
|
7599
|
+
UserTest: test_save_tel
|
7600
|
+
-----------------------
|
7601
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7602
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7603
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7604
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7605
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:04:28.700208"], ["id", 1]]
|
7606
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7607
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:04:28.703097"], ["id", 2]]
|
7608
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7609
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7610
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7611
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:04:28.705163"], ["id", 1]]
|
7612
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7613
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:04:28.706573"], ["updated_at", "2016-12-17 11:04:28.706573"]]
|
7614
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7615
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7616
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7617
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7618
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7620
|
+
-------------------
|
7621
|
+
UserTest: test_tels
|
7622
|
+
-------------------
|
7623
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7624
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7625
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7626
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7627
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7628
|
+
------------------
|
7629
|
+
UserTest: test_tel
|
7630
|
+
------------------
|
7631
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7632
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7633
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7634
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7635
|
+
-----------------------------------------
|
7636
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7637
|
+
-----------------------------------------
|
7638
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7639
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7640
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7641
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7642
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:05:13', '2016-12-17 11:05:13')
|
7643
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:05:13', '2016-12-17 11:05:13')[0m
|
7644
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:05:13', '2016-12-17 11:05:13')
|
7645
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7646
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 11:05:13', '2016-12-17 11:05:13')
|
7647
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
7648
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7649
|
+
-----------------------------------------
|
7650
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7651
|
+
-----------------------------------------
|
7652
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7653
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7654
|
+
------------------
|
7655
|
+
UserTest: test_tel
|
7656
|
+
------------------
|
7657
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7658
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7659
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7660
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7661
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7662
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7663
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7664
|
+
-------------------
|
7665
|
+
UserTest: test_tels
|
7666
|
+
-------------------
|
7667
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7668
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7669
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7670
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7671
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7672
|
+
-----------------------
|
7673
|
+
UserTest: test_save_tel
|
7674
|
+
-----------------------
|
7675
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7676
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7677
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7678
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7679
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:05:13.759321"], ["id", 1]]
|
7680
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7681
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:05:13.761645"], ["id", 2]]
|
7682
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7683
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7684
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7685
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:05:13.763575"], ["id", 1]]
|
7686
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7687
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:05:13.764786"], ["updated_at", "2016-12-17 11:05:13.764786"]]
|
7688
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7689
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7690
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7691
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7692
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7694
|
+
------------------------------------------------
|
7695
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7696
|
+
------------------------------------------------
|
7697
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7698
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7699
|
+
--------------------------------------------
|
7700
|
+
NostalgicTest: test_it_does_something_useful
|
7701
|
+
--------------------------------------------
|
7702
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7703
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7704
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7705
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7706
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:06:02', '2016-12-17 11:06:02')
|
7707
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:06:02', '2016-12-17 11:06:02')[0m
|
7708
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:06:02', '2016-12-17 11:06:02')
|
7709
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7710
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 11:06:02', '2016-12-17 11:06:02')
|
7711
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
7712
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7713
|
+
--------------------------------------------
|
7714
|
+
NostalgicTest: test_it_does_something_useful
|
7715
|
+
--------------------------------------------
|
7716
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7717
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7718
|
+
------------------------------------------------
|
7719
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7720
|
+
------------------------------------------------
|
7721
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7722
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7723
|
+
-----------------------
|
7724
|
+
UserTest: test_save_tel
|
7725
|
+
-----------------------
|
7726
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7727
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7728
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7729
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7730
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7731
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:06:02.655117"], ["id", 1]]
|
7732
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7733
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["created_at", "2016-12-17 11:06:02.657625"], ["updated_at", "2016-12-17 11:06:02.657625"]]
|
7734
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7735
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:06:02.659012"], ["id", 2]]
|
7736
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7737
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7738
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7739
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:06:02.660785"], ["id", 1]]
|
7740
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7741
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7742
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:06:02.662658"], ["updated_at", "2016-12-17 11:06:02.662658"]]
|
7743
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7744
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7745
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7746
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7747
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7748
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7749
|
+
------------------
|
7750
|
+
UserTest: test_tel
|
7751
|
+
------------------
|
7752
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7753
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7754
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7755
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7756
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7757
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7758
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7760
|
+
-------------------
|
7761
|
+
UserTest: test_tels
|
7762
|
+
-------------------
|
7763
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7764
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7765
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7766
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7769
|
+
-----------------------------------------
|
7770
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7771
|
+
-----------------------------------------
|
7772
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7773
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7774
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7775
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7776
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:06:22', '2016-12-17 11:06:22')
|
7777
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:06:22', '2016-12-17 11:06:22')[0m
|
7778
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:06:22', '2016-12-17 11:06:22')
|
7779
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7780
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 11:06:22', '2016-12-17 11:06:22')
|
7781
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
7782
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7783
|
+
--------------------------------------------
|
7784
|
+
NostalgicTest: test_it_does_something_useful
|
7785
|
+
--------------------------------------------
|
7786
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7787
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7788
|
+
------------------------------------------------
|
7789
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7790
|
+
------------------------------------------------
|
7791
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7792
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7793
|
+
-----------------------
|
7794
|
+
UserTest: test_save_tel
|
7795
|
+
-----------------------
|
7796
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7797
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7798
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7799
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7800
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7801
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:06:22.728681"], ["id", 1]]
|
7802
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7803
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["created_at", "2016-12-17 11:06:22.731118"], ["updated_at", "2016-12-17 11:06:22.731118"]]
|
7804
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7805
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:06:22.732393"], ["id", 2]]
|
7806
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7807
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7808
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7809
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:06:22.734107"], ["id", 1]]
|
7810
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7811
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7812
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:06:22.736008"], ["updated_at", "2016-12-17 11:06:22.736008"]]
|
7813
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7814
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7815
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7816
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7817
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7818
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7819
|
+
-------------------
|
7820
|
+
UserTest: test_tels
|
7821
|
+
-------------------
|
7822
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7823
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7824
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7825
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7826
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7827
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7828
|
+
------------------
|
7829
|
+
UserTest: test_tel
|
7830
|
+
------------------
|
7831
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7832
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7833
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7834
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7835
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7836
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7837
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7838
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7839
|
+
-----------------------------------------
|
7840
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7841
|
+
-----------------------------------------
|
7842
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7843
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7844
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7845
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7846
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:07:36', '2016-12-17 11:07:36')
|
7847
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:07:36', '2016-12-17 11:07:36')[0m
|
7848
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:07:36', '2016-12-17 11:07:36')
|
7849
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7850
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 11:07:36', '2016-12-17 11:07:36')
|
7851
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
7852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7853
|
+
-------------------
|
7854
|
+
UserTest: test_tels
|
7855
|
+
-------------------
|
7856
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7857
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7858
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7859
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7860
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7861
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7862
|
+
-----------------------
|
7863
|
+
UserTest: test_save_tel
|
7864
|
+
-----------------------
|
7865
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7866
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7867
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7868
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7869
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7870
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:07:36.288545"], ["id", 1]]
|
7871
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7872
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["created_at", "2016-12-17 11:07:36.291205"], ["updated_at", "2016-12-17 11:07:36.291205"]]
|
7873
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7874
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:07:36.292580"], ["id", 2]]
|
7875
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7876
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7877
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7878
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:07:36.294338"], ["id", 1]]
|
7879
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7880
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7881
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:07:36.296239"], ["updated_at", "2016-12-17 11:07:36.296239"]]
|
7882
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7883
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7884
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7885
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7886
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7887
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7888
|
+
------------------
|
7889
|
+
UserTest: test_tel
|
7890
|
+
------------------
|
7891
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
7892
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7893
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7894
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7895
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7896
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7897
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7898
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7899
|
+
-------------------------
|
7900
|
+
UserTest: test_belongs_to
|
7901
|
+
-------------------------
|
7902
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1
|
7903
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7904
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7905
|
+
------------------------------------------------
|
7906
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7907
|
+
------------------------------------------------
|
7908
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7909
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7910
|
+
--------------------------------------------
|
7911
|
+
NostalgicTest: test_it_does_something_useful
|
7912
|
+
--------------------------------------------
|
7913
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7914
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7915
|
+
-----------------------------------------
|
7916
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7917
|
+
-----------------------------------------
|
7918
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7919
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7920
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7921
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
7922
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:09:26', '2016-12-17 11:09:26')
|
7923
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:09:26', '2016-12-17 11:09:26')[0m
|
7924
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:09:26', '2016-12-17 11:09:26')
|
7925
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
7926
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-12-17 11:09:26', '2016-12-17 11:09:26')
|
7927
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "companies"[0m
|
7928
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:09:26', '2016-12-17 11:09:26')
|
7929
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
7930
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7931
|
+
-------------------------
|
7932
|
+
UserTest: test_belongs_to
|
7933
|
+
-------------------------
|
7934
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1[0m
|
7935
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7936
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("company_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["company_id", 1], ["created_at", "2016-12-17 11:09:26.779743"], ["updated_at", "2016-12-17 11:09:26.779743"]]
|
7937
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
7938
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7939
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7940
|
+
-------------------
|
7941
|
+
UserTest: test_tels
|
7942
|
+
-------------------
|
7943
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7944
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7945
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7946
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7947
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7948
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7949
|
+
------------------
|
7950
|
+
UserTest: test_tel
|
7951
|
+
------------------
|
7952
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7953
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7954
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7955
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7956
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7957
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7958
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7959
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7960
|
+
-----------------------
|
7961
|
+
UserTest: test_save_tel
|
7962
|
+
-----------------------
|
7963
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
7964
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
7965
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
7966
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7968
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:09:26.796568"], ["id", 1]]
|
7969
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7970
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["created_at", "2016-12-17 11:09:26.799679"], ["updated_at", "2016-12-17 11:09:26.799679"]]
|
7971
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
7972
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:09:26.801058"], ["id", 2]]
|
7973
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7974
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7975
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7976
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:09:26.802873"], ["id", 1]]
|
7977
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
7978
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
7979
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:09:26.804794"], ["updated_at", "2016-12-17 11:09:26.804794"]]
|
7980
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7981
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7982
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7983
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
7984
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7985
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7986
|
+
-----------------------------------------
|
7987
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
7988
|
+
-----------------------------------------
|
7989
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7990
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7991
|
+
--------------------------------------------
|
7992
|
+
NostalgicTest: test_it_does_something_useful
|
7993
|
+
--------------------------------------------
|
7994
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7995
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7996
|
+
------------------------------------------------
|
7997
|
+
NostalgicTest: test_that_it_has_a_version_number
|
7998
|
+
------------------------------------------------
|
7999
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8000
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8001
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8002
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8003
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:10:24', '2016-12-17 11:10:24')
|
8004
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:10:24', '2016-12-17 11:10:24')[0m
|
8005
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:10:24', '2016-12-17 11:10:24')
|
8006
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
8007
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:10:24', '2016-12-17 11:10:24')
|
8008
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "companies"[0m
|
8009
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:10:24', '2016-12-17 11:10:24')
|
8010
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
8011
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8012
|
+
-------------------------
|
8013
|
+
UserTest: test_belongs_to
|
8014
|
+
-------------------------
|
8015
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8016
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8017
|
+
------------------
|
8018
|
+
UserTest: test_tel
|
8019
|
+
------------------
|
8020
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8021
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8022
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8023
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8024
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8025
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8026
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8027
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8028
|
+
-----------------------
|
8029
|
+
UserTest: test_save_tel
|
8030
|
+
-----------------------
|
8031
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8032
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8033
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8034
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8035
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8036
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:10:24.440202"], ["id", 1]]
|
8037
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8038
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:10:24.442478"], ["updated_at", "2016-12-17 11:10:24.442478"]]
|
8039
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8040
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:10:24.443852"], ["id", 2]]
|
8041
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8042
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8043
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8044
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:10:24.445563"], ["id", 1]]
|
8045
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8046
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8047
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:10:24.447332"], ["updated_at", "2016-12-17 11:10:24.447332"]]
|
8048
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8049
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8050
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8051
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8052
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8053
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8054
|
+
-------------------
|
8055
|
+
UserTest: test_tels
|
8056
|
+
-------------------
|
8057
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8058
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8059
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8060
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8061
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8062
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8063
|
+
------------------------------------------------
|
8064
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8065
|
+
------------------------------------------------
|
8066
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8067
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8068
|
+
--------------------------------------------
|
8069
|
+
NostalgicTest: test_it_does_something_useful
|
8070
|
+
--------------------------------------------
|
8071
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8072
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8073
|
+
-----------------------------------------
|
8074
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8075
|
+
-----------------------------------------
|
8076
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8077
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8078
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8079
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8080
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:10:51', '2016-12-17 11:10:51')
|
8081
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:10:51', '2016-12-17 11:10:51')[0m
|
8082
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:10:51', '2016-12-17 11:10:51')
|
8083
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8084
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:10:51', '2016-12-17 11:10:51')
|
8085
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "companies"[0m
|
8086
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:10:51', '2016-12-17 11:10:51')
|
8087
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
8088
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8089
|
+
-----------------------
|
8090
|
+
UserTest: test_save_tel
|
8091
|
+
-----------------------
|
8092
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8093
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8094
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8095
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8096
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8097
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:10:51.962519"], ["id", 1]]
|
8098
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8099
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:10:51.964828"], ["updated_at", "2016-12-17 11:10:51.964828"]]
|
8100
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8101
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:10:51.966187"], ["id", 2]]
|
8102
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8103
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8104
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8105
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:10:51.967839"], ["id", 1]]
|
8106
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8107
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8108
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:10:51.969644"], ["updated_at", "2016-12-17 11:10:51.969644"]]
|
8109
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8110
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8111
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8112
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8113
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8114
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8115
|
+
-------------------
|
8116
|
+
UserTest: test_tels
|
8117
|
+
-------------------
|
8118
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8119
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8120
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8121
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8122
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8123
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8124
|
+
------------------
|
8125
|
+
UserTest: test_tel
|
8126
|
+
------------------
|
8127
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8128
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8129
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8130
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8131
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8132
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8135
|
+
-------------------------
|
8136
|
+
UserTest: test_belongs_to
|
8137
|
+
-------------------------
|
8138
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8139
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8140
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8141
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8142
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8143
|
+
--------------------------------------------
|
8144
|
+
NostalgicTest: test_it_does_something_useful
|
8145
|
+
--------------------------------------------
|
8146
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8147
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8148
|
+
------------------------------------------------
|
8149
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8150
|
+
------------------------------------------------
|
8151
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8152
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8153
|
+
-----------------------------------------
|
8154
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8155
|
+
-----------------------------------------
|
8156
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8157
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8158
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8159
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8160
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:11:57', '2016-12-17 11:11:57')
|
8161
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:11:57', '2016-12-17 11:11:57')[0m
|
8162
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:11:57', '2016-12-17 11:11:57')
|
8163
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
8164
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:11:57', '2016-12-17 11:11:57')
|
8165
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "companies"[0m
|
8166
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:11:57', '2016-12-17 11:11:57')
|
8167
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
8168
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8169
|
+
-----------------------------------------
|
8170
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8171
|
+
-----------------------------------------
|
8172
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8174
|
+
------------------------------------------------
|
8175
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8176
|
+
------------------------------------------------
|
8177
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8178
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8179
|
+
--------------------------------------------
|
8180
|
+
NostalgicTest: test_it_does_something_useful
|
8181
|
+
--------------------------------------------
|
8182
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8183
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8184
|
+
-------------------------
|
8185
|
+
UserTest: test_belongs_to
|
8186
|
+
-------------------------
|
8187
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8188
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8189
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8190
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8192
|
+
-----------------------
|
8193
|
+
UserTest: test_save_tel
|
8194
|
+
-----------------------
|
8195
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8196
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8197
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8198
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8200
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:11:57.841157"], ["id", 1]]
|
8201
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8202
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:11:57.843506"], ["updated_at", "2016-12-17 11:11:57.843506"]]
|
8203
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8204
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:11:57.844856"], ["id", 2]]
|
8205
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8206
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8207
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8208
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:11:57.846584"], ["id", 1]]
|
8209
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8210
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8211
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:11:57.848386"], ["updated_at", "2016-12-17 11:11:57.848386"]]
|
8212
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8213
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8214
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8215
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8216
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8217
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8218
|
+
------------------
|
8219
|
+
UserTest: test_tel
|
8220
|
+
------------------
|
8221
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8222
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8223
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8224
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8225
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8226
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8227
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8228
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8229
|
+
-------------------
|
8230
|
+
UserTest: test_tels
|
8231
|
+
-------------------
|
8232
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8233
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8234
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8235
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8236
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8237
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8238
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8239
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8240
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:13:13', '2016-12-17 11:13:13')
|
8241
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:13:13', '2016-12-17 11:13:13')[0m
|
8242
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:13:13', '2016-12-17 11:13:13')
|
8243
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8244
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:13:13', '2016-12-17 11:13:13')
|
8245
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "companies"[0m
|
8246
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:13:13', '2016-12-17 11:13:13')
|
8247
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:13:13', '2016-12-17 11:13:13')[0m
|
8248
|
+
[1m[35m (2.6ms)[0m commit transaction
|
8249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8250
|
+
-----------------------
|
8251
|
+
UserTest: test_save_tel
|
8252
|
+
-----------------------
|
8253
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8254
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8255
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8256
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8257
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8258
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:13:13.964986"], ["id", 1]]
|
8259
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8260
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:13:13.967365"], ["updated_at", "2016-12-17 11:13:13.967365"]]
|
8261
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8262
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:13:13.968729"], ["id", 2]]
|
8263
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8264
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8265
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8266
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:13:13.970475"], ["id", 1]]
|
8267
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8268
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8269
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:13:13.972458"], ["updated_at", "2016-12-17 11:13:13.972458"]]
|
8270
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8271
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8272
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8273
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8274
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8275
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8276
|
+
-------------------------
|
8277
|
+
UserTest: test_belongs_to
|
8278
|
+
-------------------------
|
8279
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8280
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8281
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8282
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8283
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
8284
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8285
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8286
|
+
------------------
|
8287
|
+
UserTest: test_tel
|
8288
|
+
------------------
|
8289
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8290
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8291
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8292
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8293
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8294
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8295
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8296
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8297
|
+
-------------------
|
8298
|
+
UserTest: test_tels
|
8299
|
+
-------------------
|
8300
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8301
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8302
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8303
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8304
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8305
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8306
|
+
------------------------------------------------
|
8307
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8308
|
+
------------------------------------------------
|
8309
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8310
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8311
|
+
--------------------------------------------
|
8312
|
+
NostalgicTest: test_it_does_something_useful
|
8313
|
+
--------------------------------------------
|
8314
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8316
|
+
-----------------------------------------
|
8317
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8318
|
+
-----------------------------------------
|
8319
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8320
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8321
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8322
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8323
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:16:33', '2016-12-17 11:16:33')
|
8324
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:16:33', '2016-12-17 11:16:33')[0m
|
8325
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:16:33', '2016-12-17 11:16:33')
|
8326
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8327
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:16:33', '2016-12-17 11:16:33')
|
8328
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "companies"[0m
|
8329
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:16:33', '2016-12-17 11:16:33')
|
8330
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:16:33', '2016-12-17 11:16:33')[0m
|
8331
|
+
[1m[35m (2.8ms)[0m commit transaction
|
8332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8333
|
+
-------------------------
|
8334
|
+
UserTest: test_belongs_to
|
8335
|
+
-------------------------
|
8336
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8337
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8338
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8339
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8340
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
8341
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1[0m
|
8342
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8343
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8344
|
+
-----------------------
|
8345
|
+
UserTest: test_save_tel
|
8346
|
+
-----------------------
|
8347
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8348
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8349
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8350
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8351
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8352
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:16:33.569422"], ["id", 1]]
|
8353
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8354
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:16:33.571924"], ["updated_at", "2016-12-17 11:16:33.571924"]]
|
8355
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8356
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:16:33.573400"], ["id", 2]]
|
8357
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8358
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8359
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8360
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:16:33.575193"], ["id", 1]]
|
8361
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8362
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8363
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:16:33.577202"], ["updated_at", "2016-12-17 11:16:33.577202"]]
|
8364
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8365
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8366
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8367
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8368
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8369
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8370
|
+
------------------
|
8371
|
+
UserTest: test_tel
|
8372
|
+
------------------
|
8373
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8374
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8375
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8376
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8377
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8378
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8379
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8380
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8381
|
+
-------------------
|
8382
|
+
UserTest: test_tels
|
8383
|
+
-------------------
|
8384
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8385
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8386
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8387
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8388
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8389
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8390
|
+
-----------------------------------------
|
8391
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8392
|
+
-----------------------------------------
|
8393
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8395
|
+
--------------------------------------------
|
8396
|
+
NostalgicTest: test_it_does_something_useful
|
8397
|
+
--------------------------------------------
|
8398
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8400
|
+
------------------------------------------------
|
8401
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8402
|
+
------------------------------------------------
|
8403
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8404
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8406
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8407
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:16:54', '2016-12-17 11:16:54')
|
8408
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:16:54', '2016-12-17 11:16:54')[0m
|
8409
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:16:54', '2016-12-17 11:16:54')
|
8410
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8411
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:16:54', '2016-12-17 11:16:54')
|
8412
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "companies"[0m
|
8413
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:16:54', '2016-12-17 11:16:54')
|
8414
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:16:54', '2016-12-17 11:16:54')[0m
|
8415
|
+
[1m[35m (2.9ms)[0m commit transaction
|
8416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8417
|
+
-----------------------------------------
|
8418
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8419
|
+
-----------------------------------------
|
8420
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8421
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8422
|
+
--------------------------------------------
|
8423
|
+
NostalgicTest: test_it_does_something_useful
|
8424
|
+
--------------------------------------------
|
8425
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8426
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8427
|
+
------------------------------------------------
|
8428
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8429
|
+
------------------------------------------------
|
8430
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8431
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8432
|
+
------------------
|
8433
|
+
UserTest: test_tel
|
8434
|
+
------------------
|
8435
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8436
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8437
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8438
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8439
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8440
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8441
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8443
|
+
-------------------
|
8444
|
+
UserTest: test_tels
|
8445
|
+
-------------------
|
8446
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8447
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8448
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8449
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8450
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8452
|
+
-----------------------
|
8453
|
+
UserTest: test_save_tel
|
8454
|
+
-----------------------
|
8455
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8456
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8457
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8458
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8459
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8460
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:16:54.286230"], ["id", 1]]
|
8461
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8462
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:16:54.288721"], ["updated_at", "2016-12-17 11:16:54.288721"]]
|
8463
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8464
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:16:54.290062"], ["id", 2]]
|
8465
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8466
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8468
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:16:54.292362"], ["id", 1]]
|
8469
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8470
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8471
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:16:54.294305"], ["updated_at", "2016-12-17 11:16:54.294305"]]
|
8472
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8473
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8474
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8475
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8476
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8478
|
+
-------------------------
|
8479
|
+
UserTest: test_belongs_to
|
8480
|
+
-------------------------
|
8481
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8482
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8483
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8484
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8485
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
8486
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
8487
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8488
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8489
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8490
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8491
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:17:35', '2016-12-17 11:17:35')
|
8492
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:17:35', '2016-12-17 11:17:35')[0m
|
8493
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:17:35', '2016-12-17 11:17:35')
|
8494
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8495
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:17:35', '2016-12-17 11:17:35')
|
8496
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "companies"[0m
|
8497
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:17:35', '2016-12-17 11:17:35')
|
8498
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:17:35', '2016-12-17 11:17:35')[0m
|
8499
|
+
[1m[35m (3.1ms)[0m commit transaction
|
8500
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8501
|
+
-----------------------------------------
|
8502
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8503
|
+
-----------------------------------------
|
8504
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8505
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8506
|
+
-------------------------
|
8507
|
+
UserTest: test_belongs_to
|
8508
|
+
-------------------------
|
8509
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8510
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8511
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8512
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8513
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
8514
|
+
[1m[36mCompany Load (0.2ms)[0m [1mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1[0m
|
8515
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8516
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["company_id", 2], ["updated_at", "2016-12-17 11:17:35.974726"], ["id", 1]]
|
8517
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8518
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "2"], ["created_at", "2016-12-17 11:17:35.977198"], ["updated_at", "2016-12-17 11:17:35.977198"]]
|
8519
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8520
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8521
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8522
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8523
|
+
-----------------------
|
8524
|
+
UserTest: test_save_tel
|
8525
|
+
-----------------------
|
8526
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8527
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8528
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8529
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8530
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8531
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:17:35.982449"], ["id", 1]]
|
8532
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8533
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:17:35.983652"], ["updated_at", "2016-12-17 11:17:35.983652"]]
|
8534
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8535
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:17:35.984846"], ["id", 2]]
|
8536
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8537
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8538
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8539
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:17:35.986916"], ["id", 1]]
|
8540
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8541
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8542
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:17:35.989019"], ["updated_at", "2016-12-17 11:17:35.989019"]]
|
8543
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8544
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8545
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8546
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8547
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8548
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8549
|
+
------------------
|
8550
|
+
UserTest: test_tel
|
8551
|
+
------------------
|
8552
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8553
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8554
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8555
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8556
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8557
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8558
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8559
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8560
|
+
-------------------
|
8561
|
+
UserTest: test_tels
|
8562
|
+
-------------------
|
8563
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8564
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8565
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8566
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8567
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8568
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8569
|
+
--------------------------------------------
|
8570
|
+
NostalgicTest: test_it_does_something_useful
|
8571
|
+
--------------------------------------------
|
8572
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8573
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8574
|
+
------------------------------------------------
|
8575
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8576
|
+
------------------------------------------------
|
8577
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8578
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8580
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8581
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:17:43', '2016-12-17 11:17:43')
|
8582
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:17:43', '2016-12-17 11:17:43')[0m
|
8583
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:17:43', '2016-12-17 11:17:43')
|
8584
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8585
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:17:43', '2016-12-17 11:17:43')
|
8586
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "companies"[0m
|
8587
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:17:43', '2016-12-17 11:17:43')
|
8588
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:17:43', '2016-12-17 11:17:43')[0m
|
8589
|
+
[1m[35m (2.9ms)[0m commit transaction
|
8590
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8591
|
+
--------------------------------------------
|
8592
|
+
NostalgicTest: test_it_does_something_useful
|
8593
|
+
--------------------------------------------
|
8594
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8595
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8596
|
+
------------------------------------------------
|
8597
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8598
|
+
------------------------------------------------
|
8599
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8600
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8601
|
+
-------------------------
|
8602
|
+
UserTest: test_belongs_to
|
8603
|
+
-------------------------
|
8604
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8605
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8606
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8607
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8608
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
8609
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1[0m
|
8610
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8611
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["company_id", 2], ["updated_at", "2016-12-17 11:17:43.702858"], ["id", 1]]
|
8612
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8613
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "2"], ["created_at", "2016-12-17 11:17:43.704901"], ["updated_at", "2016-12-17 11:17:43.704901"]]
|
8614
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8615
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8616
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8617
|
+
[1m[36mCompany Load (0.0ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 2]]
|
8618
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8620
|
+
-------------------
|
8621
|
+
UserTest: test_tels
|
8622
|
+
-------------------
|
8623
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8624
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8625
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8626
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8627
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8628
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8629
|
+
-----------------------
|
8630
|
+
UserTest: test_save_tel
|
8631
|
+
-----------------------
|
8632
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8633
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8634
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8635
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8636
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8637
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:17:43.713526"], ["id", 1]]
|
8638
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8639
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:17:43.715388"], ["updated_at", "2016-12-17 11:17:43.715388"]]
|
8640
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8641
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:17:43.716694"], ["id", 2]]
|
8642
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8643
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8645
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:17:43.718512"], ["id", 1]]
|
8646
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8647
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8648
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:17:43.720302"], ["updated_at", "2016-12-17 11:17:43.720302"]]
|
8649
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8650
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8651
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8652
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8653
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8654
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8655
|
+
------------------
|
8656
|
+
UserTest: test_tel
|
8657
|
+
------------------
|
8658
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8659
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8660
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8661
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8662
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8663
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8664
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8665
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8666
|
+
-----------------------------------------
|
8667
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8668
|
+
-----------------------------------------
|
8669
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8670
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8671
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8672
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8673
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:18:07', '2016-12-17 11:18:07')
|
8674
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:18:07', '2016-12-17 11:18:07')[0m
|
8675
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:18:07', '2016-12-17 11:18:07')
|
8676
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8677
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:18:07', '2016-12-17 11:18:07')
|
8678
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "companies"[0m
|
8679
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:18:07', '2016-12-17 11:18:07')
|
8680
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:18:07', '2016-12-17 11:18:07')[0m
|
8681
|
+
[1m[35m (2.5ms)[0m commit transaction
|
8682
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8683
|
+
-----------------------------------------
|
8684
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8685
|
+
-----------------------------------------
|
8686
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8687
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8688
|
+
------------------------------------------------
|
8689
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8690
|
+
------------------------------------------------
|
8691
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8692
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8693
|
+
--------------------------------------------
|
8694
|
+
NostalgicTest: test_it_does_something_useful
|
8695
|
+
--------------------------------------------
|
8696
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8697
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8698
|
+
-------------------
|
8699
|
+
UserTest: test_tels
|
8700
|
+
-------------------
|
8701
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8702
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8703
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8704
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8705
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8706
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8707
|
+
-------------------------
|
8708
|
+
UserTest: test_belongs_to
|
8709
|
+
-------------------------
|
8710
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8711
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8712
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8713
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8714
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
8715
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1[0m
|
8716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8717
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["company_id", 2], ["updated_at", "2016-12-17 11:18:07.175210"], ["id", 1]]
|
8718
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
8719
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"], ["value", "2"], ["created_at", "2016-12-17 11:18:07.177128"], ["updated_at", "2016-12-17 11:18:07.177128"]]
|
8720
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8721
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8722
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8723
|
+
[1m[36mCompany Load (0.0ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 2]]
|
8724
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8725
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8726
|
+
-----------------------
|
8727
|
+
UserTest: test_save_tel
|
8728
|
+
-----------------------
|
8729
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8730
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8731
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8732
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8733
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8734
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:18:07.182740"], ["id", 1]]
|
8735
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8736
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:18:07.183919"], ["updated_at", "2016-12-17 11:18:07.183919"]]
|
8737
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8738
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:18:07.185200"], ["id", 2]]
|
8739
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8740
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8741
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8742
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:18:07.186908"], ["id", 1]]
|
8743
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8744
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8745
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:18:07.188615"], ["updated_at", "2016-12-17 11:18:07.188615"]]
|
8746
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8747
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8748
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8749
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8750
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8751
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8752
|
+
------------------
|
8753
|
+
UserTest: test_tel
|
8754
|
+
------------------
|
8755
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8756
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8757
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8758
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8759
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8760
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8761
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8762
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8763
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8764
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8765
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:18:20', '2016-12-17 11:18:20')
|
8766
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:18:20', '2016-12-17 11:18:20')[0m
|
8767
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:18:20', '2016-12-17 11:18:20')
|
8768
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "users"[0m
|
8769
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:18:20', '2016-12-17 11:18:20')
|
8770
|
+
[1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "companies"[0m
|
8771
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:18:20', '2016-12-17 11:18:20')
|
8772
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:18:20', '2016-12-17 11:18:20')[0m
|
8773
|
+
[1m[35m (3.4ms)[0m commit transaction
|
8774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8775
|
+
------------------
|
8776
|
+
UserTest: test_tel
|
8777
|
+
------------------
|
8778
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8779
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8780
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8781
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8782
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8783
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8784
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8785
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8786
|
+
-----------------------
|
8787
|
+
UserTest: test_save_tel
|
8788
|
+
-----------------------
|
8789
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
8790
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8791
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8792
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8793
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8794
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:18:20.048972"], ["id", 1]]
|
8795
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8796
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "1"], ["created_at", "2016-12-17 11:18:20.052526"], ["updated_at", "2016-12-17 11:18:20.052526"]]
|
8797
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8798
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:18:20.054945"], ["id", 2]]
|
8799
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8800
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8801
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8802
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:18:20.057949"], ["id", 1]]
|
8803
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8804
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8805
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:18:20.060927"], ["updated_at", "2016-12-17 11:18:20.060927"]]
|
8806
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8807
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8808
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8809
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8810
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8811
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8812
|
+
-------------------
|
8813
|
+
UserTest: test_tels
|
8814
|
+
-------------------
|
8815
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8816
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8817
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8818
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8819
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8820
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8821
|
+
-------------------------
|
8822
|
+
UserTest: test_belongs_to
|
8823
|
+
-------------------------
|
8824
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8825
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8826
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8827
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8828
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
8829
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
8830
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8831
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 11:18:20.073804"], ["id", 1]]
|
8832
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
8833
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"], ["value", "2"], ["created_at", "2016-12-17 11:18:20.075186"], ["updated_at", "2016-12-17 11:18:20.075186"]]
|
8834
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8835
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8836
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8837
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 2]]
|
8838
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8839
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8840
|
+
--------------------------------------------
|
8841
|
+
NostalgicTest: test_it_does_something_useful
|
8842
|
+
--------------------------------------------
|
8843
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8844
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8845
|
+
------------------------------------------------
|
8846
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8847
|
+
------------------------------------------------
|
8848
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8849
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8850
|
+
-----------------------------------------
|
8851
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8852
|
+
-----------------------------------------
|
8853
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8854
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8855
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8856
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8857
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:19:53', '2016-12-17 11:19:53')
|
8858
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:19:53', '2016-12-17 11:19:53')[0m
|
8859
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:19:53', '2016-12-17 11:19:53')
|
8860
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2016-12-16', '2016-12-17 11:19:53', '2016-12-17 11:19:53')[0m
|
8861
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "users"
|
8862
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:19:53', '2016-12-17 11:19:53')[0m
|
8863
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "companies"
|
8864
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:19:53', '2016-12-17 11:19:53')[0m
|
8865
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:19:53', '2016-12-17 11:19:53')
|
8866
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
8867
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8868
|
+
-----------------------------------------
|
8869
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8870
|
+
-----------------------------------------
|
8871
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8872
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8873
|
+
-------------------------
|
8874
|
+
UserTest: test_belongs_to
|
8875
|
+
-------------------------
|
8876
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8877
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8878
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8879
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8880
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
8881
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
8882
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8883
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 11:19:54.000710"], ["id", 1]]
|
8884
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8885
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "2"], ["created_at", "2016-12-17 11:19:54.003132"], ["updated_at", "2016-12-17 11:19:54.003132"]]
|
8886
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8887
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8888
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8889
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 2]]
|
8890
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8891
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8892
|
+
------------------
|
8893
|
+
UserTest: test_tel
|
8894
|
+
------------------
|
8895
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8896
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8897
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8898
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8899
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8900
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8901
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8902
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8903
|
+
-------------------
|
8904
|
+
UserTest: test_tels
|
8905
|
+
-------------------
|
8906
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8907
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8908
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8909
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8910
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8911
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8912
|
+
-----------------------
|
8913
|
+
UserTest: test_save_tel
|
8914
|
+
-----------------------
|
8915
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8916
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8917
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8918
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8919
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8920
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:19:54.017287"], ["id", 1]]
|
8921
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
8922
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8923
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:19:54.019416"], ["id", 2]]
|
8924
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8925
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8926
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8927
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:19:54.021017"], ["id", 1]]
|
8928
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
8929
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
8930
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:19:54.023019"], ["updated_at", "2016-12-17 11:19:54.023019"]]
|
8931
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8932
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8933
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8934
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
8935
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8936
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8937
|
+
--------------------------------------------
|
8938
|
+
NostalgicTest: test_it_does_something_useful
|
8939
|
+
--------------------------------------------
|
8940
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8941
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8942
|
+
------------------------------------------------
|
8943
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8944
|
+
------------------------------------------------
|
8945
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8946
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8947
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8948
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
8949
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:20:11', '2016-12-17 11:20:11')
|
8950
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:20:11', '2016-12-17 11:20:11')[0m
|
8951
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:20:11', '2016-12-17 11:20:11')
|
8952
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2016-12-16', '2016-12-17 11:20:11', '2016-12-17 11:20:11')[0m
|
8953
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "users"
|
8954
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:20:11', '2016-12-17 11:20:11')[0m
|
8955
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "companies"
|
8956
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:20:11', '2016-12-17 11:20:11')[0m
|
8957
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:20:11', '2016-12-17 11:20:11')
|
8958
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
8959
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8960
|
+
--------------------------------------------
|
8961
|
+
NostalgicTest: test_it_does_something_useful
|
8962
|
+
--------------------------------------------
|
8963
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8964
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8965
|
+
------------------------------------------------
|
8966
|
+
NostalgicTest: test_that_it_has_a_version_number
|
8967
|
+
------------------------------------------------
|
8968
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8969
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8970
|
+
-----------------------------------------
|
8971
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
8972
|
+
-----------------------------------------
|
8973
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8974
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8975
|
+
-------------------------
|
8976
|
+
UserTest: test_belongs_to
|
8977
|
+
-------------------------
|
8978
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8979
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8980
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
8981
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8982
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
8983
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
8984
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8985
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 11:20:11.899376"], ["id", 1]]
|
8986
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"]]
|
8987
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-17"], ["value", "2"], ["created_at", "2016-12-17 11:20:11.901596"], ["updated_at", "2016-12-17 11:20:11.901596"]]
|
8988
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
8989
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8990
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
8991
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
8992
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8993
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8994
|
+
-------------------
|
8995
|
+
UserTest: test_tels
|
8996
|
+
-------------------
|
8997
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
8998
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
8999
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9000
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9001
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9002
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9003
|
+
-----------------------
|
9004
|
+
UserTest: test_save_tel
|
9005
|
+
-----------------------
|
9006
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9007
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9008
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9009
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9010
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9011
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:20:11.911122"], ["id", 1]]
|
9012
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9013
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9014
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:20:11.913061"], ["id", 2]]
|
9015
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9016
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9017
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9018
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:20:11.914613"], ["id", 1]]
|
9019
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9020
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
9021
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:20:11.916463"], ["updated_at", "2016-12-17 11:20:11.916463"]]
|
9022
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9023
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9024
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9025
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9026
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9027
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9028
|
+
------------------
|
9029
|
+
UserTest: test_tel
|
9030
|
+
------------------
|
9031
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9032
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9033
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9034
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9035
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9036
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9037
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9038
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9039
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9040
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
9041
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:20:37', '2016-12-17 11:20:37')
|
9042
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:20:37', '2016-12-17 11:20:37')[0m
|
9043
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:20:37', '2016-12-17 11:20:37')
|
9044
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2016-12-16', '2016-12-17 11:20:37', '2016-12-17 11:20:37')[0m
|
9045
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "users"
|
9046
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:20:37', '2016-12-17 11:20:37')[0m
|
9047
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "companies"
|
9048
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:20:37', '2016-12-17 11:20:37')[0m
|
9049
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:20:37', '2016-12-17 11:20:37')
|
9050
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
9051
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9052
|
+
-----------------------------------------
|
9053
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
9054
|
+
-----------------------------------------
|
9055
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9056
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9057
|
+
-------------------
|
9058
|
+
UserTest: test_tels
|
9059
|
+
-------------------
|
9060
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9061
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9062
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9063
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9064
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9065
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9066
|
+
------------------
|
9067
|
+
UserTest: test_tel
|
9068
|
+
------------------
|
9069
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9070
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9071
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9072
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9073
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9074
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9075
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9076
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9077
|
+
-------------------------
|
9078
|
+
UserTest: test_belongs_to
|
9079
|
+
-------------------------
|
9080
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9081
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9082
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9083
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9084
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
9085
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
9086
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9087
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 11:20:37.545051"], ["id", 1]]
|
9088
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"]]
|
9089
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"], ["value", "2"], ["created_at", "2016-12-17 11:20:37.547793"], ["updated_at", "2016-12-17 11:20:37.547793"]]
|
9090
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9091
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9092
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9093
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9094
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9095
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9096
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9097
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 2]]
|
9098
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9099
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9100
|
+
-----------------------
|
9101
|
+
UserTest: test_save_tel
|
9102
|
+
-----------------------
|
9103
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9104
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9105
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9106
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9107
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9108
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:20:37.555102"], ["id", 1]]
|
9109
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9110
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9111
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:20:37.557085"], ["id", 2]]
|
9112
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9113
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9114
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9115
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:20:37.558713"], ["id", 1]]
|
9116
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9117
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
9118
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:20:37.560666"], ["updated_at", "2016-12-17 11:20:37.560666"]]
|
9119
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9120
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9121
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9122
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9123
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9125
|
+
--------------------------------------------
|
9126
|
+
NostalgicTest: test_it_does_something_useful
|
9127
|
+
--------------------------------------------
|
9128
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9130
|
+
------------------------------------------------
|
9131
|
+
NostalgicTest: test_that_it_has_a_version_number
|
9132
|
+
------------------------------------------------
|
9133
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9134
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9135
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9136
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
9137
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:20:58', '2016-12-17 11:20:58')
|
9138
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:20:58', '2016-12-17 11:20:58')[0m
|
9139
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:20:58', '2016-12-17 11:20:58')
|
9140
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2016-12-16', '2016-12-17 11:20:58', '2016-12-17 11:20:58')[0m
|
9141
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "users"
|
9142
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:20:58', '2016-12-17 11:20:58')[0m
|
9143
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "companies"
|
9144
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:20:58', '2016-12-17 11:20:58')[0m
|
9145
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:20:58', '2016-12-17 11:20:58')
|
9146
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
9147
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9148
|
+
-------------------------
|
9149
|
+
UserTest: test_belongs_to
|
9150
|
+
-------------------------
|
9151
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9152
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9153
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9154
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9155
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
9156
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
9157
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9158
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 11:20:58.942500"], ["id", 1]]
|
9159
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"]]
|
9160
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"], ["value", "2"], ["created_at", "2016-12-17 11:20:58.944881"], ["updated_at", "2016-12-17 11:20:58.944881"]]
|
9161
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9162
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9163
|
+
[1m[36mCompany Load (0.0ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 2]]
|
9164
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9165
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9166
|
+
-----------------------
|
9167
|
+
UserTest: test_save_tel
|
9168
|
+
-----------------------
|
9169
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
9170
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9171
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9172
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9173
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9174
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:20:58.952685"], ["id", 1]]
|
9175
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9176
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9177
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:20:58.955378"], ["id", 2]]
|
9178
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9179
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9180
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9181
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:20:58.957485"], ["id", 1]]
|
9182
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9183
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
9184
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:20:58.959941"], ["updated_at", "2016-12-17 11:20:58.959941"]]
|
9185
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9186
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9187
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9188
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9189
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9190
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9191
|
+
------------------
|
9192
|
+
UserTest: test_tel
|
9193
|
+
------------------
|
9194
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
9195
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9196
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9197
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9198
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9199
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9200
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9201
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9202
|
+
-------------------
|
9203
|
+
UserTest: test_tels
|
9204
|
+
-------------------
|
9205
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
9206
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9207
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9208
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9209
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9211
|
+
--------------------------------------------
|
9212
|
+
NostalgicTest: test_it_does_something_useful
|
9213
|
+
--------------------------------------------
|
9214
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9215
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9216
|
+
------------------------------------------------
|
9217
|
+
NostalgicTest: test_that_it_has_a_version_number
|
9218
|
+
------------------------------------------------
|
9219
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9220
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9221
|
+
-----------------------------------------
|
9222
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
9223
|
+
-----------------------------------------
|
9224
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9225
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9226
|
+
[1m[35m (0.2ms)[0m begin transaction
|
9227
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
9228
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 11:21:49', '2016-12-17 11:21:49')
|
9229
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 11:21:49', '2016-12-17 11:21:49')[0m
|
9230
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 11:21:49', '2016-12-17 11:21:49')
|
9231
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2016-12-16', '2016-12-17 11:21:49', '2016-12-17 11:21:49')[0m
|
9232
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
9233
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 11:21:49', '2016-12-17 11:21:49')[0m
|
9234
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "companies"
|
9235
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 11:21:49', '2016-12-17 11:21:49')[0m
|
9236
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 11:21:49', '2016-12-17 11:21:49')
|
9237
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
9238
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9239
|
+
-----------------------
|
9240
|
+
UserTest: test_save_tel
|
9241
|
+
-----------------------
|
9242
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9243
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9244
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9245
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9246
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9247
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 11:21:49.430740"], ["id", 1]]
|
9248
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9249
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9250
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 11:21:49.433676"], ["id", 2]]
|
9251
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9252
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9253
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9254
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 11:21:49.435304"], ["id", 1]]
|
9255
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9256
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
9257
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 11:21:49.437516"], ["updated_at", "2016-12-17 11:21:49.437516"]]
|
9258
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9259
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9260
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9261
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9262
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9263
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9264
|
+
------------------
|
9265
|
+
UserTest: test_tel
|
9266
|
+
------------------
|
9267
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9268
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9269
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9270
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9271
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9272
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9273
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9274
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9275
|
+
-------------------------
|
9276
|
+
UserTest: test_belongs_to
|
9277
|
+
-------------------------
|
9278
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9279
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9280
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9281
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9282
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
9283
|
+
[1m[35mCompany Load (0.2ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
9284
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9285
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 11:21:49.451314"], ["id", 1]]
|
9286
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"]]
|
9287
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"], ["value", "2"], ["created_at", "2016-12-17 11:21:49.452948"], ["updated_at", "2016-12-17 11:21:49.452948"]]
|
9288
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9289
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9290
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
9291
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9292
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9293
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9294
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9295
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9296
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9297
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9298
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9299
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 2]]
|
9300
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9301
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9302
|
+
-------------------
|
9303
|
+
UserTest: test_tels
|
9304
|
+
-------------------
|
9305
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9306
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9307
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9308
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9309
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9310
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9311
|
+
------------------------------------------------
|
9312
|
+
NostalgicTest: test_that_it_has_a_version_number
|
9313
|
+
------------------------------------------------
|
9314
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9315
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9316
|
+
--------------------------------------------
|
9317
|
+
NostalgicTest: test_it_does_something_useful
|
9318
|
+
--------------------------------------------
|
9319
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9320
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9321
|
+
-----------------------------------------
|
9322
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
9323
|
+
-----------------------------------------
|
9324
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9325
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9327
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
9328
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 14:55:16', '2016-12-17 14:55:16')
|
9329
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 14:55:16', '2016-12-17 14:55:16')[0m
|
9330
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 14:55:16', '2016-12-17 14:55:16')
|
9331
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2016-12-16', '2016-12-17 14:55:16', '2016-12-17 14:55:16')[0m
|
9332
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "users"
|
9333
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 14:55:16', '2016-12-17 14:55:16')[0m
|
9334
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "companies"
|
9335
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 14:55:16', '2016-12-17 14:55:16')[0m
|
9336
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 14:55:16', '2016-12-17 14:55:16')
|
9337
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
9338
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9339
|
+
-------------------------
|
9340
|
+
UserTest: test_belongs_to
|
9341
|
+
-------------------------
|
9342
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9343
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9344
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9345
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9346
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
9347
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
9348
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9349
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 14:55:16.079272"], ["id", 1]]
|
9350
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"]]
|
9351
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"], ["value", "2"], ["created_at", "2016-12-17 14:55:16.081965"], ["updated_at", "2016-12-17 14:55:16.081965"]]
|
9352
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9353
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9354
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
9355
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9356
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9357
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9358
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9359
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9360
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9361
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9362
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9363
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 2]]
|
9364
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9365
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9366
|
+
------------------
|
9367
|
+
UserTest: test_tel
|
9368
|
+
------------------
|
9369
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9370
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9371
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9372
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9373
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9374
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9375
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9376
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9377
|
+
-----------------------
|
9378
|
+
UserTest: test_save_tel
|
9379
|
+
-----------------------
|
9380
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9381
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9382
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9383
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9384
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9385
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 14:55:16.098582"], ["id", 1]]
|
9386
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9387
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9388
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 14:55:16.101690"], ["id", 2]]
|
9389
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9390
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9392
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 14:55:16.104042"], ["id", 1]]
|
9393
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9394
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
9395
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 14:55:16.106280"], ["updated_at", "2016-12-17 14:55:16.106280"]]
|
9396
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9397
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9398
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9399
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9400
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9401
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9402
|
+
-------------------
|
9403
|
+
UserTest: test_tels
|
9404
|
+
-------------------
|
9405
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9406
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9407
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9408
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9409
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9410
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9411
|
+
--------------------------------------------
|
9412
|
+
NostalgicTest: test_it_does_something_useful
|
9413
|
+
--------------------------------------------
|
9414
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9415
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9416
|
+
------------------------------------------------
|
9417
|
+
NostalgicTest: test_that_it_has_a_version_number
|
9418
|
+
------------------------------------------------
|
9419
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9420
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9421
|
+
-----------------------------------------
|
9422
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
9423
|
+
-----------------------------------------
|
9424
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9425
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9426
|
+
[1m[35m (0.3ms)[0m begin transaction
|
9427
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
9428
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-11-17', '2016-12-17 14:56:00', '2016-12-17 14:56:00')
|
9429
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-12-17', '2016-12-17 14:56:00', '2016-12-17 14:56:00')[0m
|
9430
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-12-18', '2016-12-17 14:56:00', '2016-12-17 14:56:00')
|
9431
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2016-12-16', '2016-12-17 14:56:00', '2016-12-17 14:56:00')[0m
|
9432
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "users"
|
9433
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2016-12-17 14:56:00', '2016-12-17 14:56:00')[0m
|
9434
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "companies"
|
9435
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2016-12-17 14:56:00', '2016-12-17 14:56:00')[0m
|
9436
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2016-12-17 14:56:00', '2016-12-17 14:56:00')
|
9437
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
9438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9439
|
+
------------------------------------------------
|
9440
|
+
NostalgicTest: test_that_it_has_a_version_number
|
9441
|
+
------------------------------------------------
|
9442
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9443
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9444
|
+
--------------------------------------------
|
9445
|
+
NostalgicTest: test_it_does_something_useful
|
9446
|
+
--------------------------------------------
|
9447
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9448
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9449
|
+
-------------------------
|
9450
|
+
UserTest: test_belongs_to
|
9451
|
+
-------------------------
|
9452
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9453
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9454
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9455
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9456
|
+
[1m[36mCompany Load (0.1ms)[0m [1mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1[0m [["id", 1]]
|
9457
|
+
[1m[35mCompany Load (0.1ms)[0m SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 OFFSET 1
|
9458
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9459
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ? [["company_id", 2], ["updated_at", "2016-12-17 14:56:00.203751"], ["id", 1]]
|
9460
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"]]
|
9461
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-18"], ["value", "2"], ["created_at", "2016-12-17 14:56:00.206468"], ["updated_at", "2016-12-17 14:56:00.206468"]]
|
9462
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9463
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9464
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
9465
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9466
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9467
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9468
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9469
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9470
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9471
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 1]]
|
9472
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"]]
|
9473
|
+
[1m[35mCompany Load (0.0ms)[0m SELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT 1 [["id", 2]]
|
9474
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9475
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9476
|
+
------------------
|
9477
|
+
UserTest: test_tel
|
9478
|
+
------------------
|
9479
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9480
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9481
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9482
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-16') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9483
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9484
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9485
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9486
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9487
|
+
-------------------
|
9488
|
+
UserTest: test_tels
|
9489
|
+
-------------------
|
9490
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9491
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9492
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9493
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9494
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9495
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9496
|
+
-----------------------
|
9497
|
+
UserTest: test_save_tel
|
9498
|
+
-----------------------
|
9499
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
9500
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "company_id"]]
|
9501
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9502
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9503
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9504
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-12-17 14:56:00.225387"], ["id", 1]]
|
9505
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9506
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-17"]]
|
9507
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-12-17 14:56:00.227426"], ["id", 2]]
|
9508
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9509
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9511
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-12-17 14:56:00.229135"], ["id", 1]]
|
9512
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["effective_at", "2016-12-16"]]
|
9513
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"]]
|
9514
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-12-19"], ["value", "555-123-4567"], ["created_at", "2016-12-17 14:56:00.230997"], ["updated_at", "2016-12-17 14:56:00.230997"]]
|
9515
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9516
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-17') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9517
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-18') ORDER BY effective_at desc LIMIT 1[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9518
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-12-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
9519
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9520
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9521
|
+
-----------------------------------------
|
9522
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
9523
|
+
-----------------------------------------
|
9524
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|