timeful 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +112 -0
- data/Rakefile +31 -0
- data/app/jobs/timeful/deliver_activity_to_subscribers_job.rb +15 -0
- data/app/models/timeful/activity.rb +34 -0
- data/app/models/timeful/application_record.rb +6 -0
- data/app/models/timeful/feed_item.rb +13 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20160927141608_create_timeful_activities.rb +16 -0
- data/db/migrate/20160927154912_create_timeful_feed_items.rb +15 -0
- data/lib/generators/timeful/install_generator.rb +10 -0
- data/lib/timeful.rb +28 -0
- data/lib/timeful/engine.rb +6 -0
- data/lib/timeful/model/actor.rb +35 -0
- data/lib/timeful/model/subscriber.rb +21 -0
- data/lib/timeful/relation_proxy.rb +26 -0
- data/lib/timeful/version.rb +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/activities/post_activity.rb +5 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/post.rb +2 -0
- data/spec/dummy/app/models/user.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +22 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.example.yml +19 -0
- data/spec/dummy/config/database.yml +19 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20160927141815_create_timeful_activities.timeful.rb +17 -0
- data/spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb +16 -0
- data/spec/dummy/db/migrate/20160927160026_create_users.rb +8 -0
- data/spec/dummy/db/migrate/20160927160031_create_posts.rb +8 -0
- data/spec/dummy/db/schema.rb +50 -0
- data/spec/dummy/log/development.log +361 -0
- data/spec/dummy/log/test.log +3554 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/examples.txt +12 -0
- data/spec/factories/posts.rb +5 -0
- data/spec/factories/timeful/activities.rb +8 -0
- data/spec/factories/timeful/feed_items.rb +7 -0
- data/spec/factories/users.rb +5 -0
- data/spec/jobs/timeful/deliver_activity_to_subscribers_job_spec.rb +17 -0
- data/spec/models/timeful/activity_spec.rb +8 -0
- data/spec/models/timeful/feed_item_spec.rb +8 -0
- data/spec/rails_helper.rb +21 -0
- data/spec/spec_helper.rb +73 -0
- data/spec/support/active_job.rb +3 -0
- data/spec/support/database_cleaner.rb +19 -0
- data/spec/support/factory_girl.rb +5 -0
- data/spec/support/faker.rb +1 -0
- data/spec/support/shoulda.rb +8 -0
- data/spec/timeful/model/actor_spec.rb +20 -0
- data/spec/timeful/model/subscriber_spec.rb +17 -0
- data/spec/timeful/relation_proxy_spec.rb +34 -0
- data/spec/timeful/timeful_spec.rb +12 -0
- metadata +337 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 07d03430e50ca1fda90b6d01a9209579593d38ffc1e7d0398d46391439fc6ecfa41f3300a2271d09e8ae902e66f8ae3b0087513d3e8191f704040b0012a28c54
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 62d389f62253060992c3b2a10126fa1fe0fe198663f30f51ca1f894928bb27accf504a3caff3b2741bbcb3ef6778c6e56743c318df2c3ec8750bd5398cab370b
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This migration comes from timeful (originally 20160927141608)
|
2
|
+
class CreateTimefulActivities < ActiveRecord::Migration[5.0]
|
3
|
+
def change
|
4
|
+
create_table :timeful_activities do |t|
|
5
|
+
t.string :type, null: false
|
6
|
+
t.string :object_type, null: false
|
7
|
+
t.integer :object_id, null: false
|
8
|
+
t.string :actor_type, null: false
|
9
|
+
t.integer :actor_id, null: false
|
10
|
+
|
11
|
+
t.timestamps null: false
|
12
|
+
|
13
|
+
t.index [:object_type, :object_id]
|
14
|
+
t.index [:actor_type, :actor_id]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This migration comes from timeful (originally 20160927154912)
|
2
|
+
class CreateTimefulFeedItems < ActiveRecord::Migration[5.0]
|
3
|
+
def change
|
4
|
+
create_table :timeful_feed_items do |t|
|
5
|
+
t.string :feedable_type, null: false
|
6
|
+
t.integer :feedable_id, null: false
|
7
|
+
t.integer :activity_id, null: false
|
8
|
+
|
9
|
+
t.timestamps null: false
|
10
|
+
|
11
|
+
t.foreign_key :timeful_activities, column: :activity_id, on_delete: :cascade
|
12
|
+
|
13
|
+
t.index [:feedable_type, :feedable_id]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 20160927160031) do
|
14
|
+
|
15
|
+
# These are extensions that must be enabled in order to support this database
|
16
|
+
enable_extension "plpgsql"
|
17
|
+
|
18
|
+
create_table "posts", force: :cascade do |t|
|
19
|
+
t.datetime "created_at", null: false
|
20
|
+
t.datetime "updated_at", null: false
|
21
|
+
end
|
22
|
+
|
23
|
+
create_table "timeful_activities", force: :cascade do |t|
|
24
|
+
t.string "type", null: false
|
25
|
+
t.string "object_type", null: false
|
26
|
+
t.integer "object_id", null: false
|
27
|
+
t.string "actor_type", null: false
|
28
|
+
t.integer "actor_id", null: false
|
29
|
+
t.datetime "created_at", null: false
|
30
|
+
t.datetime "updated_at", null: false
|
31
|
+
t.index ["actor_type", "actor_id"], name: "index_timeful_activities_on_actor_type_and_actor_id", using: :btree
|
32
|
+
t.index ["object_type", "object_id"], name: "index_timeful_activities_on_object_type_and_object_id", using: :btree
|
33
|
+
end
|
34
|
+
|
35
|
+
create_table "timeful_feed_items", force: :cascade do |t|
|
36
|
+
t.string "feedable_type", null: false
|
37
|
+
t.integer "feedable_id", null: false
|
38
|
+
t.integer "activity_id", null: false
|
39
|
+
t.datetime "created_at", null: false
|
40
|
+
t.datetime "updated_at", null: false
|
41
|
+
t.index ["feedable_type", "feedable_id"], name: "index_timeful_feed_items_on_feedable_type_and_feedable_id", using: :btree
|
42
|
+
end
|
43
|
+
|
44
|
+
create_table "users", force: :cascade do |t|
|
45
|
+
t.datetime "created_at", null: false
|
46
|
+
t.datetime "updated_at", null: false
|
47
|
+
end
|
48
|
+
|
49
|
+
add_foreign_key "timeful_feed_items", "timeful_activities", column: "activity_id", on_delete: :cascade
|
50
|
+
end
|
@@ -0,0 +1,361 @@
|
|
1
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2
|
+
[1m[35mSQL (31.9ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
3
|
+
[1m[36m (21.0ms)[0m [1mCREATE TABLE "hertz_notifications" ("id" serial primary key, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL) [0m
|
4
|
+
[1m[35m (6.6ms)[0m CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying NOT NULL)
|
5
|
+
[1m[36m (7.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
6
|
+
[1m[35m (8.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
+
[1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
|
9
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160415175837')[0m
|
10
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
|
11
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
12
|
+
[1m[35mSQL (24.4ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
13
|
+
[1m[36m (16.8ms)[0m [1mCREATE TABLE "hertz_notifications" ("id" serial primary key, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL) [0m
|
14
|
+
[1m[35m (10.0ms)[0m CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying NOT NULL)
|
15
|
+
[1m[36m (9.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
16
|
+
[1m[35m (13.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
17
|
+
[1m[36m (1.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
18
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
|
19
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160415175837')[0m
|
20
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
+
Migrating to RemoveEmailFromUsers (20160508094342)
|
24
|
+
[1m[35m (0.4ms)[0m BEGIN
|
25
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "users" DROP "email"[0m
|
26
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160508094342"]]
|
27
|
+
[1m[36m (2.8ms)[0m [1mCOMMIT[0m
|
28
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
29
|
+
[1m[36m (2.8ms)[0m [1mSELECT 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
|
30
|
+
FROM pg_constraint c
|
31
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
32
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
33
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
34
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
35
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
36
|
+
WHERE c.contype = 'f'
|
37
|
+
AND t1.relname = 'hertz_notifications'
|
38
|
+
AND t3.nspname = ANY (current_schemas(false))
|
39
|
+
ORDER BY c.conname
|
40
|
+
[0m
|
41
|
+
[1m[35m (2.5ms)[0m SELECT 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
|
42
|
+
FROM pg_constraint c
|
43
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
44
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
45
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
46
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
47
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
48
|
+
WHERE c.contype = 'f'
|
49
|
+
AND t1.relname = 'users'
|
50
|
+
AND t3.nspname = ANY (current_schemas(false))
|
51
|
+
ORDER BY c.conname
|
52
|
+
|
53
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
54
|
+
Migrating to CreateHertzNotificationDeliveries (20160627084119)
|
55
|
+
[1m[35m (0.3ms)[0m BEGIN
|
56
|
+
[1m[36m (52.1ms)[0m [1mCREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
57
|
+
[1m[35m (11.6ms)[0m CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
|
58
|
+
[1m[36m (1.1ms)[0m [1mROLLBACK[0m
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
Migrating to CreateHertzNotificationDeliveries (20160627084119)
|
61
|
+
[1m[35m (0.3ms)[0m BEGIN
|
62
|
+
[1m[36m (7.8ms)[0m [1mCREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
63
|
+
[1m[35m (2.1ms)[0m CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
|
64
|
+
[1m[36m (0.9ms)[0m [1mROLLBACK[0m
|
65
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
66
|
+
Migrating to CreateHertzNotificationDeliveries (20160627084119)
|
67
|
+
[1m[35m (0.4ms)[0m BEGIN
|
68
|
+
[1m[36m (7.3ms)[0m [1mCREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
69
|
+
[1m[35m (3.6ms)[0m CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
|
70
|
+
[1m[36m (5.1ms)[0m [1mCREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")[0m
|
71
|
+
[1m[35m (1.8ms)[0m ALTER TABLE "hertz_notification_deliveries" ADD CONSTRAINT "fk_rails_68c880ead4"
|
72
|
+
FOREIGN KEY ("notification_id")
|
73
|
+
REFERENCES "notifications" ("id")
|
74
|
+
ON DELETE CASCADE
|
75
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
76
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
77
|
+
Migrating to CreateHertzNotificationDeliveries (20160627084119)
|
78
|
+
[1m[35m (0.3ms)[0m BEGIN
|
79
|
+
[1m[36m (6.5ms)[0m [1mCREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "hertz_notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
80
|
+
[1m[35m (3.8ms)[0m CREATE INDEX "index_hertz_notification_deliveries_on_hertz_notification_id" ON "hertz_notification_deliveries" ("hertz_notification_id")
|
81
|
+
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")[0m
|
82
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
83
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
84
|
+
Migrating to CreateHertzNotificationDeliveries (20160627084119)
|
85
|
+
[1m[35m (0.3ms)[0m BEGIN
|
86
|
+
[1m[36m (7.2ms)[0m [1mCREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
87
|
+
[1m[35m (4.2ms)[0m CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
|
88
|
+
[1m[36m (5.3ms)[0m [1mCREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")[0m
|
89
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "hertz_notification_deliveries" ADD CONSTRAINT "fk_rails_a16c02eed0"
|
90
|
+
FOREIGN KEY ("hertz_notification_id")
|
91
|
+
REFERENCES "hertz_notifications" ("id")
|
92
|
+
ON DELETE CASCADE
|
93
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
94
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
95
|
+
Migrating to CreateHertzNotificationDeliveries (20160627084119)
|
96
|
+
[1m[35m (0.3ms)[0m BEGIN
|
97
|
+
[1m[36m (7.5ms)[0m [1mCREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
98
|
+
[1m[35m (4.7ms)[0m CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
|
99
|
+
[1m[36m (2.8ms)[0m [1mCREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")[0m
|
100
|
+
[1m[35m (23.4ms)[0m ALTER TABLE "hertz_notification_deliveries" ADD CONSTRAINT "fk_rails_68c880ead4"
|
101
|
+
FOREIGN KEY ("notification_id")
|
102
|
+
REFERENCES "hertz_notifications" ("id")
|
103
|
+
ON DELETE CASCADE
|
104
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160627084119"]]
|
105
|
+
[1m[35m (5.6ms)[0m COMMIT
|
106
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107
|
+
[1m[35m (4.6ms)[0m SELECT 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
|
108
|
+
FROM pg_constraint c
|
109
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
110
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
111
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
112
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
113
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
114
|
+
WHERE c.contype = 'f'
|
115
|
+
AND t1.relname = 'hertz_notification_deliveries'
|
116
|
+
AND t3.nspname = ANY (current_schemas(false))
|
117
|
+
ORDER BY c.conname
|
118
|
+
|
119
|
+
[1m[36m (3.5ms)[0m [1mSELECT 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
|
120
|
+
FROM pg_constraint c
|
121
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
122
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
123
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
124
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
125
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
126
|
+
WHERE c.contype = 'f'
|
127
|
+
AND t1.relname = 'hertz_notifications'
|
128
|
+
AND t3.nspname = ANY (current_schemas(false))
|
129
|
+
ORDER BY c.conname
|
130
|
+
[0m
|
131
|
+
[1m[35m (4.7ms)[0m SELECT 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
|
132
|
+
FROM pg_constraint c
|
133
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
134
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
135
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
136
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
137
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
138
|
+
WHERE c.contype = 'f'
|
139
|
+
AND t1.relname = 'users'
|
140
|
+
AND t3.nspname = ANY (current_schemas(false))
|
141
|
+
ORDER BY c.conname
|
142
|
+
|
143
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
144
|
+
Migrating to RenameNotificationDeliveriesToDeliveries (20160628084413)
|
145
|
+
[1m[35m (0.2ms)[0m BEGIN
|
146
|
+
[1m[36m (2.8ms)[0m [1mALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"[0m
|
147
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
|
148
|
+
[1m[36m (4.9ms)[0m [1mALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"[0m
|
149
|
+
[1m[35m (0.3ms)[0m ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
|
150
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20160628084413"]]
|
151
|
+
[1m[35m (8.3ms)[0m COMMIT
|
152
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
153
|
+
[1m[35m (8.0ms)[0m SELECT 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
|
154
|
+
FROM pg_constraint c
|
155
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
156
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
157
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
158
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
159
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
160
|
+
WHERE c.contype = 'f'
|
161
|
+
AND t1.relname = 'hertz_deliveries'
|
162
|
+
AND t3.nspname = ANY (current_schemas(false))
|
163
|
+
ORDER BY c.conname
|
164
|
+
|
165
|
+
[1m[36m (2.2ms)[0m [1mSELECT 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
|
166
|
+
FROM pg_constraint c
|
167
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
168
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
169
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
170
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
171
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
172
|
+
WHERE c.contype = 'f'
|
173
|
+
AND t1.relname = 'hertz_notifications'
|
174
|
+
AND t3.nspname = ANY (current_schemas(false))
|
175
|
+
ORDER BY c.conname
|
176
|
+
[0m
|
177
|
+
[1m[35m (2.3ms)[0m SELECT 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
|
178
|
+
FROM pg_constraint c
|
179
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
180
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
181
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
182
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
183
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
184
|
+
WHERE c.contype = 'f'
|
185
|
+
AND t1.relname = 'users'
|
186
|
+
AND t3.nspname = ANY (current_schemas(false))
|
187
|
+
ORDER BY c.conname
|
188
|
+
|
189
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
190
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
191
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
192
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
193
|
+
[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]]
|
194
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
195
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", 2016-09-27 12:47:17 UTC], ["updated_at", 2016-09-27 12:47:17 UTC]]
|
196
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
197
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
198
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
199
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
200
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
201
|
+
Migrating to CreateTimefulActivities (20160927141815)
|
202
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
203
|
+
[1m[35m (27.6ms)[0m [1m[35mCREATE TABLE "timeful_activities" ("id" serial primary key, "type" character varying NOT NULL, "object_type" character varying NOT NULL, "object_id" integer NOT NULL, "actor_type" character varying NOT NULL, "actor_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
204
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160927141815"]]
|
205
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
206
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
207
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
208
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
209
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
210
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
211
|
+
[1m[35m (2.6ms)[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
|
212
|
+
FROM pg_constraint c
|
213
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
214
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
215
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
216
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
217
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
218
|
+
WHERE c.contype = 'f'
|
219
|
+
AND t1.relname = 'timeful_activities'
|
220
|
+
AND t3.nspname = ANY (current_schemas(false))
|
221
|
+
ORDER BY c.conname
|
222
|
+
[0m
|
223
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
224
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
225
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
226
|
+
Migrating to CreateTimefulActivities (20160927141815)
|
227
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
228
|
+
[1m[35m (1.3ms)[0m [1m[35mDROP TABLE "timeful_activities"[0m
|
229
|
+
[1m[35mSQL (0.7ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20160927141815"]]
|
230
|
+
[1m[35m (3.3ms)[0m [1m[35mCOMMIT[0m
|
231
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
232
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
233
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
234
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
235
|
+
Migrating to CreateTimefulActivities (20160927141815)
|
236
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
237
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE "timeful_activities" ("id" serial primary key, "type" character varying NOT NULL, "object_type" character varying NOT NULL, "object_id" integer NOT NULL, "actor_type" character varying NOT NULL, "actor_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
238
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_object_type_and_object_id" ON "timeful_activities" ("object_type", "object_id")[0m
|
239
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_actor_type_and_actor_id" ON "timeful_activities" ("actor_type", "actor_id")[0m
|
240
|
+
[1m[35mSQL (3.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160927141815"]]
|
241
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
242
|
+
Migrating to CreateTimefulFeedItems (20160927155215)
|
243
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
244
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "timeful_feed_items" ("id" serial primary key, "feedable_type" character varying NOT NULL, "feedable_id" integer NOT NULL, "activity_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "fk_rails_9d539205d7"
|
245
|
+
FOREIGN KEY ("timeful_activity_id")
|
246
|
+
REFERENCES "timeful_activities" ("id")
|
247
|
+
ON DELETE CASCADE)[0m
|
248
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
249
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
250
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
251
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
252
|
+
Migrating to CreateTimefulFeedItems (20160927155215)
|
253
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
254
|
+
[1m[35m (217.9ms)[0m [1m[35mCREATE TABLE "timeful_feed_items" ("id" serial primary key, "feedable_type" character varying NOT NULL, "feedable_id" integer NOT NULL, "activity_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "fk_rails_9bc442415c"
|
255
|
+
FOREIGN KEY ("activity_id")
|
256
|
+
REFERENCES "timeful_activities" ("id")
|
257
|
+
ON DELETE CASCADE)[0m
|
258
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE INDEX "index_timeful_feed_items_on_feedable_type_and_feedable_id" ON "timeful_feed_items" ("feedable_type", "feedable_id")[0m
|
259
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160927155215"]]
|
260
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
261
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
262
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
263
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
264
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
265
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
266
|
+
[1m[35m (2.3ms)[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
|
267
|
+
FROM pg_constraint c
|
268
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
269
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
270
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
271
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
272
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
273
|
+
WHERE c.contype = 'f'
|
274
|
+
AND t1.relname = 'timeful_activities'
|
275
|
+
AND t3.nspname = ANY (current_schemas(false))
|
276
|
+
ORDER BY c.conname
|
277
|
+
[0m
|
278
|
+
[1m[35m (3.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
|
279
|
+
FROM pg_constraint c
|
280
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
281
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
282
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
283
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
284
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
285
|
+
WHERE c.contype = 'f'
|
286
|
+
AND t1.relname = 'timeful_feed_items'
|
287
|
+
AND t3.nspname = ANY (current_schemas(false))
|
288
|
+
ORDER BY c.conname
|
289
|
+
[0m
|
290
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
291
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
292
|
+
Migrating to CreateUsers (20160927160026)
|
293
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
294
|
+
[1m[35m (205.7ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
295
|
+
[1m[35mSQL (7.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160927160026"]]
|
296
|
+
[1m[35m (5.8ms)[0m [1m[35mCOMMIT[0m
|
297
|
+
Migrating to CreatePosts (20160927160031)
|
298
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
299
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
300
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160927160031"]]
|
301
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
302
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
303
|
+
[1m[35m (2.8ms)[0m [1m[35mBEGIN[0m
|
304
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
305
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
306
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
307
|
+
[1m[35m (2.6ms)[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
|
308
|
+
FROM pg_constraint c
|
309
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
310
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
311
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
312
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
313
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
314
|
+
WHERE c.contype = 'f'
|
315
|
+
AND t1.relname = 'posts'
|
316
|
+
AND t3.nspname = ANY (current_schemas(false))
|
317
|
+
ORDER BY c.conname
|
318
|
+
[0m
|
319
|
+
[1m[35m (2.3ms)[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
|
320
|
+
FROM pg_constraint c
|
321
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
322
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
323
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
324
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
325
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
326
|
+
WHERE c.contype = 'f'
|
327
|
+
AND t1.relname = 'timeful_activities'
|
328
|
+
AND t3.nspname = ANY (current_schemas(false))
|
329
|
+
ORDER BY c.conname
|
330
|
+
[0m
|
331
|
+
[1m[35m (2.5ms)[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
|
332
|
+
FROM pg_constraint c
|
333
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
334
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
335
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
336
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
337
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
338
|
+
WHERE c.contype = 'f'
|
339
|
+
AND t1.relname = 'timeful_feed_items'
|
340
|
+
AND t3.nspname = ANY (current_schemas(false))
|
341
|
+
ORDER BY c.conname
|
342
|
+
[0m
|
343
|
+
[1m[35m (2.0ms)[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
|
344
|
+
FROM pg_constraint c
|
345
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
346
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
347
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
348
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
349
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
350
|
+
WHERE c.contype = 'f'
|
351
|
+
AND t1.relname = 'users'
|
352
|
+
AND t3.nspname = ANY (current_schemas(false))
|
353
|
+
ORDER BY c.conname
|
354
|
+
[0m
|
355
|
+
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
356
|
+
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
357
|
+
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
358
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
359
|
+
[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]]
|
360
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
361
|
+
[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"]]
|