switchman 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/Rakefile +30 -0
- data/app/models/switchman/shard.rb +502 -0
- data/db/migrate/20130328212039_create_switchman_shards.rb +9 -0
- data/db/migrate/20130328224244_create_default_shard.rb +9 -0
- data/lib/switchman.rb +9 -0
- data/lib/switchman/active_record/abstract_adapter.rb +11 -0
- data/lib/switchman/active_record/association.rb +108 -0
- data/lib/switchman/active_record/attribute_methods.rb +104 -0
- data/lib/switchman/active_record/base.rb +95 -0
- data/lib/switchman/active_record/calculations.rb +63 -0
- data/lib/switchman/active_record/connection_handler.rb +147 -0
- data/lib/switchman/active_record/connection_pool.rb +117 -0
- data/lib/switchman/active_record/finder_methods.rb +25 -0
- data/lib/switchman/active_record/log_subscriber.rb +43 -0
- data/lib/switchman/active_record/postgresql_adapter.rb +13 -0
- data/lib/switchman/active_record/query_cache.rb +12 -0
- data/lib/switchman/active_record/query_methods.rb +184 -0
- data/lib/switchman/active_record/relation.rb +69 -0
- data/lib/switchman/cache_extensions.rb +12 -0
- data/lib/switchman/connection_pool_proxy.rb +62 -0
- data/lib/switchman/database_server.rb +197 -0
- data/lib/switchman/default_shard.rb +28 -0
- data/lib/switchman/engine.rb +91 -0
- data/lib/switchman/r_spec_helper.rb +124 -0
- data/lib/switchman/shackles.rb +34 -0
- data/lib/switchman/test_helper.rb +65 -0
- data/lib/switchman/version.rb +3 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/models/appendage.rb +24 -0
- data/spec/dummy/app/models/digit.rb +9 -0
- data/spec/dummy/app/models/feature.rb +5 -0
- data/spec/dummy/app/models/mirror_user.rb +5 -0
- data/spec/dummy/app/models/user.rb +23 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +59 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +17 -0
- data/spec/dummy/config/database.yml.example +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/routes.rb +8 -0
- data/spec/dummy/db/migrate/20130403132607_create_users.rb +10 -0
- data/spec/dummy/db/migrate/20130411202442_create_appendages.rb +10 -0
- data/spec/dummy/db/migrate/20130411202551_create_mirror_users.rb +9 -0
- data/spec/dummy/db/migrate/20131022202028_create_digits.rb +10 -0
- data/spec/dummy/db/migrate/20131206172923_create_features.rb +12 -0
- data/spec/dummy/db/schema.rb +57 -0
- data/spec/dummy/log/development.log +504 -0
- data/spec/dummy/log/test.log +29907 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/2E2/830/shard%2F2 +0 -0
- data/spec/dummy/tmp/cache/2E3/840/shard%2F3 +0 -0
- data/spec/dummy/tmp/cache/313/970/shard%2F30 +0 -0
- data/spec/dummy/tmp/cache/314/980/shard%2F31 +0 -0
- data/spec/dummy/tmp/cache/316/980/shard%2F15 +1 -0
- data/spec/dummy/tmp/cache/316/9D0/shard%2F60 +0 -0
- data/spec/dummy/tmp/cache/317/990/shard%2F16 +0 -0
- data/spec/dummy/tmp/cache/317/9C0/shard%2F43 +1 -0
- data/spec/dummy/tmp/cache/317/9E0/shard%2F61 +0 -0
- data/spec/dummy/tmp/cache/318/9A0/shard%2F17 +0 -0
- data/spec/dummy/tmp/cache/318/9D0/shard%2F44 +0 -0
- data/spec/dummy/tmp/cache/318/9F0/shard%2F62 +1 -0
- data/spec/dummy/tmp/cache/319/9E0/shard%2F45 +0 -0
- data/spec/dummy/tmp/cache/319/9F0/shard%2F54 +1 -0
- data/spec/dummy/tmp/cache/319/A10/shard%2F72 +1 -0
- data/spec/dummy/tmp/cache/319/A30/shard%2F90 +0 -0
- data/spec/dummy/tmp/cache/31B/9E0/shard%2F29 +1 -0
- data/spec/dummy/tmp/cache/321/AA0/shard%2F89 +0 -0
- data/spec/dummy/tmp/cache/322/AC0/shard%2F99 +1 -0
- data/spec/dummy/tmp/cache/344/D70/shard%2F103 +1 -0
- data/spec/dummy/tmp/cache/345/D80/shard%2F104 +0 -0
- data/spec/dummy/tmp/cache/345/DB0/shard%2F131 +1 -0
- data/spec/dummy/tmp/cache/345/DC0/shard%2F140 +0 -0
- data/spec/dummy/tmp/cache/346/D90/shard%2F105 +0 -0
- data/spec/dummy/tmp/cache/346/DB0/shard%2F123 +0 -0
- data/spec/dummy/tmp/cache/346/DD0/shard%2F222 +1 -0
- data/spec/dummy/tmp/cache/346/DE0/shard%2F150 +0 -0
- data/spec/dummy/tmp/cache/346/DF0/shard%2F240 +1 -0
- data/spec/dummy/tmp/cache/347/DA0/shard%2F106 +1 -0
- data/spec/dummy/tmp/cache/347/DC0/shard%2F124 +0 -0
- data/spec/dummy/tmp/cache/347/DC0/shard%2F205 +1 -0
- data/spec/dummy/tmp/cache/347/E10/shard%2F250 +1 -0
- data/spec/dummy/tmp/cache/348/DF0/shard%2F143 +1 -0
- data/spec/dummy/tmp/cache/348/DF0/shard%2F224 +1 -0
- data/spec/dummy/tmp/cache/348/E10/shard%2F161 +1 -0
- data/spec/dummy/tmp/cache/349/DD0/shard%2F117 +1 -0
- data/spec/dummy/tmp/cache/349/E40/shard%2F180 +1 -0
- data/spec/dummy/tmp/cache/34A/DF0/shard%2F127 +1 -0
- data/spec/dummy/tmp/cache/34A/DF0/shard%2F208 +1 -0
- data/spec/dummy/tmp/cache/34A/E10/shard%2F145 +1 -0
- data/spec/dummy/tmp/cache/34A/E60/shard%2F190 +1 -0
- data/spec/dummy/tmp/cache/34B/E30/shard%2F155 +1 -0
- data/spec/dummy/tmp/cache/34D/E30/shard%2F139 +0 -0
- data/spec/dummy/tmp/cache/34E/E50/shard%2F149 +0 -0
- data/spec/dummy/tmp/cache/353/EF0/shard%2F199 +1 -0
- data/spec/dummy/tmp/cache/3A4/E90/shard%2F10003 +1 -0
- data/spec/dummy/tmp/cache/3A5/ED0/shard%2F10031 +1 -0
- data/spec/dummy/tmp/cache/3A9/EF0/shard%2F10017 +1 -0
- data/spec/lib/active_record/association_spec.rb +305 -0
- data/spec/lib/active_record/attribute_methods_spec.rb +108 -0
- data/spec/lib/active_record/base_spec.rb +66 -0
- data/spec/lib/active_record/calculations_spec.rb +119 -0
- data/spec/lib/active_record/connection_handler_spec.rb +45 -0
- data/spec/lib/active_record/connection_pool_spec.rb +23 -0
- data/spec/lib/active_record/finder_methods_spec.rb +29 -0
- data/spec/lib/active_record/query_cache_spec.rb +20 -0
- data/spec/lib/active_record/query_methods_spec.rb +130 -0
- data/spec/lib/active_record/relation_spec.rb +38 -0
- data/spec/lib/cache_extensions_spec.rb +27 -0
- data/spec/lib/connection_pool_proxy_spec.rb +13 -0
- data/spec/lib/database_server_spec.rb +154 -0
- data/spec/lib/shackles_spec.rb +147 -0
- data/spec/models/shard_spec.rb +382 -0
- data/spec/spec_helper.rb +32 -0
- metadata +344 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '86515c01dbef2ec9e0c10e108466edcdbd73dddd49c57d4b07f60935dbdd7bcfb9aa5d5d5bd0f51f55f9e95801689ee598b1c900bd3a50dcefaea353f72c8afe'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -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]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20131206172923) do
|
15
|
+
|
16
|
+
create_table "appendages", :force => true do |t|
|
17
|
+
t.integer "user_id", :limit => 8
|
18
|
+
t.integer "value"
|
19
|
+
t.datetime "created_at", :null => false
|
20
|
+
t.datetime "updated_at", :null => false
|
21
|
+
end
|
22
|
+
|
23
|
+
create_table "digits", :force => true do |t|
|
24
|
+
t.integer "appendage_id", :limit => 8
|
25
|
+
t.integer "value"
|
26
|
+
t.datetime "created_at", :null => false
|
27
|
+
t.datetime "updated_at", :null => false
|
28
|
+
end
|
29
|
+
|
30
|
+
create_table "features", :force => true do |t|
|
31
|
+
t.integer "owner_id", :limit => 8
|
32
|
+
t.string "owner_type"
|
33
|
+
t.integer "value"
|
34
|
+
t.datetime "created_at", :null => false
|
35
|
+
t.datetime "updated_at", :null => false
|
36
|
+
end
|
37
|
+
|
38
|
+
create_table "mirror_users", :force => true do |t|
|
39
|
+
t.integer "user_id", :limit => 8
|
40
|
+
t.datetime "created_at", :null => false
|
41
|
+
t.datetime "updated_at", :null => false
|
42
|
+
end
|
43
|
+
|
44
|
+
create_table "switchman_shards", :force => true do |t|
|
45
|
+
t.string "name"
|
46
|
+
t.string "database_server_id"
|
47
|
+
t.boolean "default", :default => false, :null => false
|
48
|
+
end
|
49
|
+
|
50
|
+
create_table "users", :force => true do |t|
|
51
|
+
t.string "name"
|
52
|
+
t.integer "mirror_user_id", :limit => 8
|
53
|
+
t.datetime "created_at", :null => false
|
54
|
+
t.datetime "updated_at", :null => false
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,504 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
[1m[36m (0.8ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
4
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
5
|
+
LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
|
6
|
+
^
|
7
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
8
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
9
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
10
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
11
|
+
WHERE a.attrelid = '"switchman_shards"'::regclass
|
12
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
13
|
+
ORDER BY a.attnum
|
14
|
+
|
15
|
+
[1m[35m (3.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard default master]
|
16
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard default master]
|
17
|
+
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard default master]
|
18
|
+
Migrating to CreateSwitchmanShards (20130328212039)
|
19
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard default master]
|
20
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "switchman_shards" ("id" serial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean) [shard default master]
|
21
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')[0m [shard default master]
|
22
|
+
[1m[35m (0.4ms)[0m COMMIT [shard default master]
|
23
|
+
Migrating to CreateDefaultShard (20130328224244)
|
24
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard default master]
|
25
|
+
[1m[35mSwitchman::Shard Exists (0.5ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
26
|
+
[1m[36mSQL (5.8ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", nil], ["default", true], ["name", nil]] [shard default master]
|
27
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
28
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')[0m [shard 1 master]
|
29
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 1 master]
|
30
|
+
Migrating to CreateUsers (20130403132607)
|
31
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 1 master]
|
32
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1 master]
|
33
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')[0m [shard 1 master]
|
34
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 1 master]
|
35
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard 1 master]
|
36
|
+
Connecting to database specified by database.yml
|
37
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
38
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
39
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
40
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
41
|
+
[1m[36m (7.7ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
42
|
+
[1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1 master]
|
43
|
+
Migrating to CreateSwitchmanShards (20130328212039)
|
44
|
+
Migrating to CreateDefaultShard (20130328224244)
|
45
|
+
Migrating to CreateUsers (20130403132607)
|
46
|
+
Migrating to CreateAppendages (20130411202442)
|
47
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m [shard 1 master]
|
48
|
+
[1m[35m (2.8ms)[0m CREATE TABLE "appendages" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1 master]
|
49
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')[0m [shard 1 master]
|
50
|
+
[1m[35m (0.5ms)[0m COMMIT [shard 1 master]
|
51
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
52
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard 1 master]
|
53
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "mirror_users" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1 master]
|
54
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130411202551')[0m [shard 1 master]
|
55
|
+
[1m[35m (0.3ms)[0m COMMIT [shard 1 master]
|
56
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard 1 master]
|
57
|
+
Connecting to database specified by database.yml
|
58
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
59
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
60
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
61
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
62
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
63
|
+
PG::Error: ERROR: missing FROM-clause entry for table "appendages"
|
64
|
+
LINE 1: SELECT "users"."id" FROM "users" WHERE "appendages"."id" = ...
|
65
|
+
^
|
66
|
+
: SELECT "users"."id" FROM "users" WHERE "appendages"."id" = 1
|
67
|
+
Connecting to database specified by database.yml
|
68
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
69
|
+
[1m[35mSwitchman::Shard Load (1.9ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
70
|
+
[1m[36m (0.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
71
|
+
[1m[35mSwitchman::Shard Load (1.0ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
72
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
73
|
+
Connecting to database specified by database.yml
|
74
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
75
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
76
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
77
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
78
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
79
|
+
PG::Error: ERROR: value "20000000000001" is out of range for type integer
|
80
|
+
: INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id"
|
81
|
+
Connecting to database specified by database.yml
|
82
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
83
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
84
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
85
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
86
|
+
[1m[36m (0.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
87
|
+
Connecting to database specified by database.yml
|
88
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
89
|
+
[1m[35mSwitchman::Shard Load (0.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
90
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
91
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
92
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
93
|
+
DEPRECATION WARNING: The method `local_user_id', matching the attribute `user_id' has dispatched through method_missing. This shouldn't happen, because `user_id' is a column of the table. If this error has happened through normal usage of Active Record (rather than through your own code or external libraries), please report it as a bug. (called from irb_binding at (irb):9)
|
94
|
+
Connecting to database specified by database.yml
|
95
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
96
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
97
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
98
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
99
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
100
|
+
Connecting to database specified by database.yml
|
101
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
102
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
103
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
104
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
105
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
106
|
+
[1m[35m (0.7ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1 master]
|
107
|
+
Migrating to CreateUsers (20130403132607)
|
108
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard 1 master]
|
109
|
+
Connecting to database specified by database.yml
|
110
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
111
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
112
|
+
[1m[36m (0.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
113
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
114
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
115
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master]
|
116
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
117
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
118
|
+
^
|
119
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
120
|
+
[1m[36m (124.6ms)[0m [1mDROP DATABASE IF EXISTS "switchman_development"[0m [shard default master]
|
121
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
122
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
123
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
124
|
+
^
|
125
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
126
|
+
[1m[36m (120.1ms)[0m [1mDROP DATABASE IF EXISTS "switchman_test"[0m [shard default master]
|
127
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
128
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
129
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
130
|
+
^
|
131
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
132
|
+
[1m[36m (269.5ms)[0m [1mCREATE DATABASE "switchman_development" ENCODING = 'utf8'[0m [shard default master]
|
133
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
134
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
135
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
136
|
+
^
|
137
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
138
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard default master]
|
139
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
140
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
141
|
+
^
|
142
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
143
|
+
[1m[35m (232.8ms)[0m CREATE DATABASE "switchman_test" ENCODING = 'utf8' [shard default master]
|
144
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard default master]
|
145
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
146
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
147
|
+
^
|
148
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
149
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
150
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
151
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
152
|
+
^
|
153
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
154
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "appendages" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard default master]
|
155
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "mirror_users" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard default master]
|
156
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "switchman_shards" ("id" serial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean) [0m [shard default master]
|
157
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard default master]
|
158
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m [shard default master]
|
159
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard default master]
|
160
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [shard default master]
|
161
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130411202551') [shard default master]
|
162
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130403132607')[0m [shard default master]
|
163
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130328212039') [shard default master]
|
164
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130328224244')[0m [shard default master]
|
165
|
+
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard default master]
|
166
|
+
Connecting to database specified by database.yml
|
167
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
168
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
169
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM schema_migrations[0m [shard default master]
|
170
|
+
Connecting to database specified by database.yml
|
171
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
172
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
173
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM schema_migrations[0m [shard default master]
|
174
|
+
Connecting to database specified by database.yml
|
175
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
176
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
177
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard default master]
|
178
|
+
[1m[35m (8.4ms)[0m DROP TABLE "users" [shard default master]
|
179
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20130403132607'[0m [shard default master]
|
180
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard default master]
|
181
|
+
Connecting to database specified by database.yml
|
182
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
183
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
184
|
+
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard default master]
|
185
|
+
Migrating to CreateSwitchmanShards (20130328212039)
|
186
|
+
Migrating to CreateDefaultShard (20130328224244)
|
187
|
+
Migrating to CreateUsers (20130403132607)
|
188
|
+
[1m[35m (0.0ms)[0m BEGIN [shard default master]
|
189
|
+
[1m[36m (9.1ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "mirror_user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard default master]
|
190
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard default master]
|
191
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m [shard default master]
|
192
|
+
Migrating to CreateAppendages (20130411202442)
|
193
|
+
[1m[35m (0.1ms)[0m BEGIN [shard default master]
|
194
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "appendages" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard default master]
|
195
|
+
PG::Error: ERROR: relation "appendages" already exists
|
196
|
+
: CREATE TABLE "appendages" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
197
|
+
[1m[35m (0.0ms)[0m ROLLBACK [shard default master]
|
198
|
+
Connecting to database specified by database.yml
|
199
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
200
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
201
|
+
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard default master]
|
202
|
+
Migrating to CreateSwitchmanShards (20130328212039)
|
203
|
+
Migrating to CreateDefaultShard (20130328224244)
|
204
|
+
Migrating to CreateUsers (20130403132607)
|
205
|
+
Migrating to CreateAppendages (20130411202442)
|
206
|
+
[1m[35m (0.0ms)[0m BEGIN [shard default master]
|
207
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "appendages" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [shard default master]
|
208
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard default master]
|
209
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m [shard default master]
|
210
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
211
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard default master]
|
212
|
+
Connecting to database specified by database.yml
|
213
|
+
[1m[36m (8.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
214
|
+
[1m[35mSwitchman::Shard Load (1.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
215
|
+
Connecting to database specified by database.yml
|
216
|
+
[1m[36m (12.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
217
|
+
[1m[35mSwitchman::Shard Load (1.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
218
|
+
Connecting to database specified by database.yml
|
219
|
+
[1m[36m (0.8ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
220
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
221
|
+
PG::Error: ERROR: operator does not exist: character varying = integer
|
222
|
+
LINE 1: ...LECT "users".* FROM "users" WHERE "users"."name" IN (SELECT...
|
223
|
+
^
|
224
|
+
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
|
225
|
+
: SELECT "users".* FROM "users" WHERE "users"."name" IN (SELECT "users"."id" FROM "users" WHERE "users"."id" = 1)
|
226
|
+
Connecting to database specified by database.yml
|
227
|
+
[1m[36m (7.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
228
|
+
[1m[35mSwitchman::Shard Load (13.9ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
229
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard default master]
|
230
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
231
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
232
|
+
^
|
233
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
234
|
+
[1m[35m (120.5ms)[0m DROP DATABASE IF EXISTS "switchman_development" [shard default master]
|
235
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard default master]
|
236
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
237
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
238
|
+
^
|
239
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
240
|
+
[1m[35m (123.8ms)[0m DROP DATABASE IF EXISTS "switchman_test" [shard default master]
|
241
|
+
[1m[36mSwitchman::Shard Load (0.2ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard default master]
|
242
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
243
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
244
|
+
^
|
245
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
246
|
+
[1m[35m (441.4ms)[0m CREATE DATABASE "switchman_development" ENCODING = 'utf8' [shard default master]
|
247
|
+
[1m[36mSwitchman::Shard Load (0.3ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard default master]
|
248
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
249
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
250
|
+
^
|
251
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
252
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
253
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
254
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
255
|
+
^
|
256
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
257
|
+
[1m[36m (288.3ms)[0m [1mCREATE DATABASE "switchman_test" ENCODING = 'utf8'[0m [shard default master]
|
258
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
259
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
260
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
261
|
+
^
|
262
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
263
|
+
[1m[36mSwitchman::Shard Load (0.4ms)[0m [1mSELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1[0m [shard default master]
|
264
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
265
|
+
LINE 1: SELECT "switchman_shards".* FROM "switchman_shards" WHERE ...
|
266
|
+
^
|
267
|
+
: SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1
|
268
|
+
Connecting to database specified by database.yml
|
269
|
+
[1m[36m (0.7ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
270
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
271
|
+
LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
|
272
|
+
^
|
273
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
274
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
275
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
276
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
277
|
+
WHERE a.attrelid = '"switchman_shards"'::regclass
|
278
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
279
|
+
ORDER BY a.attnum
|
280
|
+
|
281
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard default master]
|
282
|
+
[1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [shard default master]
|
283
|
+
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard default master]
|
284
|
+
Migrating to CreateUsers (20130403132607)
|
285
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard default master]
|
286
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard default master]
|
287
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')[0m [shard default master]
|
288
|
+
[1m[35m (0.4ms)[0m COMMIT [shard default master]
|
289
|
+
Migrating to CreateAppendages (20130411202442)
|
290
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard default master]
|
291
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard default master]
|
292
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')[0m [shard default master]
|
293
|
+
[1m[35m (0.3ms)[0m COMMIT [shard default master]
|
294
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
295
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard default master]
|
296
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard default master]
|
297
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130411202551')[0m [shard default master]
|
298
|
+
[1m[35m (0.3ms)[0m COMMIT [shard default master]
|
299
|
+
Migrating to CreateDigits (20131022202028)
|
300
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard default master]
|
301
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard default master]
|
302
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20131022202028')[0m [shard default master]
|
303
|
+
[1m[35m (0.3ms)[0m COMMIT [shard default master]
|
304
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard default master]
|
305
|
+
Connecting to database specified by database.yml
|
306
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
307
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
308
|
+
LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
|
309
|
+
^
|
310
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
311
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
312
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
313
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
314
|
+
WHERE a.attrelid = '"switchman_shards"'::regclass
|
315
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
316
|
+
ORDER BY a.attnum
|
317
|
+
|
318
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
319
|
+
LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
|
320
|
+
^
|
321
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
322
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
323
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
324
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
325
|
+
WHERE a.attrelid = '"switchman_shards"'::regclass
|
326
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
327
|
+
ORDER BY a.attnum
|
328
|
+
|
329
|
+
Connecting to database specified by database.yml
|
330
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
331
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
332
|
+
LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
|
333
|
+
^
|
334
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
335
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
336
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
337
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
338
|
+
WHERE a.attrelid = '"switchman_shards"'::regclass
|
339
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
340
|
+
ORDER BY a.attnum
|
341
|
+
|
342
|
+
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard default master]
|
343
|
+
Migrating to CreateUsers (20130403132607)
|
344
|
+
Migrating to CreateAppendages (20130411202442)
|
345
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
346
|
+
Migrating to CreateDigits (20131022202028)
|
347
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard default master]
|
348
|
+
Connecting to database specified by database.yml
|
349
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
350
|
+
PG::Error: ERROR: relation "switchman_shards" does not exist
|
351
|
+
LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla...
|
352
|
+
^
|
353
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
354
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
355
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
356
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
357
|
+
WHERE a.attrelid = '"switchman_shards"'::regclass
|
358
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
359
|
+
ORDER BY a.attnum
|
360
|
+
|
361
|
+
[1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations" [shard default master]
|
362
|
+
Migrating to CreateSwitchmanShards (20130328212039)
|
363
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m [shard default master]
|
364
|
+
[1m[35m (18.6ms)[0m CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard default master]
|
365
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')[0m [shard default master]
|
366
|
+
[1m[35m (0.5ms)[0m COMMIT [shard default master]
|
367
|
+
Migrating to CreateDefaultShard (20130328224244)
|
368
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m [shard default master]
|
369
|
+
[1m[35mSwitchman::Shard Exists (0.4ms)[0m SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
370
|
+
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["database_server_id", nil], ["default", true], ["name", nil]] [shard default master]
|
371
|
+
[1m[35mSwitchman::Shard Load (0.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
372
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')[0m [shard 1 master]
|
373
|
+
[1m[35m (5.8ms)[0m COMMIT [shard 1 master]
|
374
|
+
Migrating to CreateUsers (20130403132607)
|
375
|
+
Migrating to CreateAppendages (20130411202442)
|
376
|
+
Migrating to CreateMirrorUsers (20130411202551)
|
377
|
+
Migrating to CreateDigits (20131022202028)
|
378
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m [shard 1 master]
|
379
|
+
Connecting to database specified by database.yml
|
380
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
381
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
382
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
383
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
384
|
+
Connecting to database specified by database.yml
|
385
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
386
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
387
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
388
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
389
|
+
Connecting to database specified by database.yml
|
390
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
391
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
392
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
393
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
394
|
+
Connecting to database specified by database.yml
|
395
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
396
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
397
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
398
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
399
|
+
Connecting to database specified by database.yml
|
400
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
401
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
402
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
403
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
404
|
+
Connecting to database specified by database.yml
|
405
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
406
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
407
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
408
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
409
|
+
Connecting to database specified by database.yml
|
410
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
411
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
412
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
413
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
414
|
+
Connecting to database specified by database.yml
|
415
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
416
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
417
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
418
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
419
|
+
Connecting to database specified by database.yml
|
420
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
421
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
422
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
423
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
424
|
+
Connecting to database specified by database.yml
|
425
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
426
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
427
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
428
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
429
|
+
Connecting to database specified by database.yml
|
430
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
431
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
432
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
433
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
434
|
+
Connecting to database specified by database.yml
|
435
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
436
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
437
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
438
|
+
[1m[35mSwitchman::Shard Load (0.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
439
|
+
Connecting to database specified by database.yml
|
440
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
441
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
442
|
+
[1m[36m (0.3ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
443
|
+
[1m[35mSwitchman::Shard Load (0.8ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
444
|
+
Connecting to database specified by database.yml
|
445
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
446
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
447
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
448
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
449
|
+
Connecting to database specified by database.yml
|
450
|
+
[1m[36m (0.6ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
451
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
452
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
453
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
454
|
+
Connecting to database specified by database.yml
|
455
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
456
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
457
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
458
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
459
|
+
Connecting to database specified by database.yml
|
460
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
461
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
462
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
463
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
464
|
+
Connecting to database specified by database.yml
|
465
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
466
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
467
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
468
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
469
|
+
Connecting to database specified by database.yml
|
470
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
471
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
472
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
473
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
474
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
475
|
+
Connecting to database specified by database.yml
|
476
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
477
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
478
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
479
|
+
[1m[35mSwitchman::Shard Load (0.3ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
480
|
+
[1m[36m (0.5ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
481
|
+
Connecting to database specified by database.yml
|
482
|
+
[1m[36m (7.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
483
|
+
[1m[35mSwitchman::Shard Load (24.6ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
484
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
485
|
+
[1m[35mSwitchman::Shard Load (0.7ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
486
|
+
[1m[36m (7.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
487
|
+
Connecting to database specified by database.yml
|
488
|
+
[1m[36m (6.6ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
489
|
+
[1m[35mSwitchman::Shard Load (24.2ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
490
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
491
|
+
[1m[35mSwitchman::Shard Load (1.0ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
492
|
+
[1m[36m (7.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
493
|
+
Connecting to database specified by database.yml
|
494
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
495
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
496
|
+
[1m[36m (0.1ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
497
|
+
[1m[35mSwitchman::Shard Load (0.4ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
498
|
+
[1m[36m (0.4ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|
499
|
+
Connecting to database specified by database.yml
|
500
|
+
[1m[36m (0.6ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
501
|
+
[1m[35mSwitchman::Shard Load (7.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard default master]
|
502
|
+
[1m[36m (0.2ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard default master]
|
503
|
+
[1m[35mSwitchman::Shard Load (0.5ms)[0m SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'test' AND "switchman_shards"."name" IS NULL LIMIT 1 [shard 1 master]
|
504
|
+
[1m[36m (0.6ms)[0m [1mSELECT * FROM unnest(current_schemas(false))[0m [shard master]
|