spec/dummy/log/development.log in timeful-0.0.1 vs spec/dummy/log/development.log in timeful-1.0.0
- old
+ new
@@ -357,5 +357,68 @@
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 21:06:53 UTC], ["updated_at", 2016-09-27 21:06:53 UTC]]
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
+ [1m[35m (0.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Migrating to RenameFeedableToSubscriberInFeedItems (20160928104634)
+ [1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
+ [1m[35m (0.6ms)[0m [1m[35mALTER TABLE "timeful_feed_items" RENAME COLUMN "feedable_type" TO "subscriber_type"[0m
+ [1m[35m (0.6ms)[0m [1m[35mALTER INDEX "index_timeful_feed_items_on_feedable_type_and_feedable_id" RENAME TO "index_timeful_feed_items_on_subscriber_type_and_feedable_id"[0m
+ [1m[35m (0.5ms)[0m [1m[35mALTER TABLE "timeful_feed_items" RENAME COLUMN "feedable_id" TO "subscriber_id"[0m
+ [1m[35m (0.4ms)[0m [1m[35mALTER INDEX "index_timeful_feed_items_on_subscriber_type_and_feedable_id" RENAME TO "index_timeful_feed_items_on_subscriber_type_and_subscriber_id"[0m
+ [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160928104634"]]
+ [1m[35m (193.9ms)[0m [1m[35mCOMMIT[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
+ [1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
+ [1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
+ [1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (2.1ms)[0m [1m[34mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
+FROM pg_constraint c
+JOIN pg_class t1 ON c.conrelid = t1.oid
+JOIN pg_class t2 ON c.confrelid = t2.oid
+JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
+JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
+JOIN pg_namespace t3 ON c.connamespace = t3.oid
+WHERE c.contype = 'f'
+ AND t1.relname = 'posts'
+ AND t3.nspname = ANY (current_schemas(false))
+ORDER BY c.conname
+[0m
+ [1m[35m (2.1ms)[0m [1m[34mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
+FROM pg_constraint c
+JOIN pg_class t1 ON c.conrelid = t1.oid
+JOIN pg_class t2 ON c.confrelid = t2.oid
+JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
+JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
+JOIN pg_namespace t3 ON c.connamespace = t3.oid
+WHERE c.contype = 'f'
+ AND t1.relname = 'timeful_activities'
+ AND t3.nspname = ANY (current_schemas(false))
+ORDER BY c.conname
+[0m
+ [1m[35m (1.9ms)[0m [1m[34mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
+FROM pg_constraint c
+JOIN pg_class t1 ON c.conrelid = t1.oid
+JOIN pg_class t2 ON c.confrelid = t2.oid
+JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
+JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
+JOIN pg_namespace t3 ON c.connamespace = t3.oid
+WHERE c.contype = 'f'
+ AND t1.relname = 'timeful_feed_items'
+ AND t3.nspname = ANY (current_schemas(false))
+ORDER BY c.conname
+[0m
+ [1m[35m (1.9ms)[0m [1m[34mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
+FROM pg_constraint c
+JOIN pg_class t1 ON c.conrelid = t1.oid
+JOIN pg_class t2 ON c.confrelid = t2.oid
+JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
+JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
+JOIN pg_namespace t3 ON c.connamespace = t3.oid
+WHERE c.contype = 'f'
+ AND t1.relname = 'users'
+ AND t3.nspname = ANY (current_schemas(false))
+ORDER BY c.conname
+[0m