enterprise_mti 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.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/lib/enterprise_mti.rb +9 -0
  5. data/lib/enterprise_mti/class_methods.rb +1 -0
  6. data/lib/enterprise_mti/class_methods/class_methods.rb +175 -0
  7. data/lib/enterprise_mti/migration.rb +1 -0
  8. data/lib/enterprise_mti/migration/migration.rb +34 -0
  9. data/lib/enterprise_mti/migration/sql_factory.rb +2 -0
  10. data/lib/enterprise_mti/migration/sql_factory/postgres_sql_factory.rb +16 -0
  11. data/lib/enterprise_mti/migration/sql_factory/sql_factory.rb +132 -0
  12. data/lib/enterprise_mti/version.rb +3 -0
  13. data/lib/tasks/enterprise_mti_tasks.rake +4 -0
  14. data/spec/class_methods_spec.rb +72 -0
  15. data/spec/dummy/README.rdoc +28 -0
  16. data/spec/dummy/Rakefile +6 -0
  17. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  19. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  20. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  21. data/spec/dummy/app/models/container.rb +3 -0
  22. data/spec/dummy/app/models/superthing.rb +3 -0
  23. data/spec/dummy/app/models/superthing_subclasses/subthing_one.rb +2 -0
  24. data/spec/dummy/app/models/superthing_subclasses/subthing_two.rb +2 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/spec/dummy/bin/bundle +3 -0
  27. data/spec/dummy/bin/rails +4 -0
  28. data/spec/dummy/bin/rake +4 -0
  29. data/spec/dummy/config.ru +4 -0
  30. data/spec/dummy/config/application.rb +23 -0
  31. data/spec/dummy/config/boot.rb +5 -0
  32. data/spec/dummy/config/database.yml +23 -0
  33. data/spec/dummy/config/environment.rb +5 -0
  34. data/spec/dummy/config/environments/development.rb +29 -0
  35. data/spec/dummy/config/environments/production.rb +80 -0
  36. data/spec/dummy/config/environments/test.rb +36 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/spec/dummy/config/initializers/inflections.rb +16 -0
  40. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  41. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  42. data/spec/dummy/config/initializers/session_store.rb +3 -0
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/spec/dummy/config/locales/en.yml +23 -0
  45. data/spec/dummy/config/routes.rb +56 -0
  46. data/spec/dummy/db/migrate/20131029213145_create_superthings.rb +9 -0
  47. data/spec/dummy/db/migrate/20131029213154_create_subthing_ones.rb +9 -0
  48. data/spec/dummy/db/migrate/20131029213203_create_subthing_twos.rb +9 -0
  49. data/spec/dummy/db/migrate/20131029213251_start_enterprise_mti.rb +9 -0
  50. data/spec/dummy/db/migrate/20131031131410_create_containers.rb +9 -0
  51. data/spec/dummy/db/schema.rb +42 -0
  52. data/spec/dummy/log/development.log +35 -0
  53. data/spec/dummy/log/test.log +1683 -0
  54. data/spec/dummy/public/404.html +58 -0
  55. data/spec/dummy/public/422.html +58 -0
  56. data/spec/dummy/public/500.html +57 -0
  57. data/spec/dummy/public/favicon.ico +0 -0
  58. data/spec/dummy/spec/models/container_spec.rb +5 -0
  59. data/spec/dummy/spec/models/subthing_one_spec.rb +5 -0
  60. data/spec/dummy/spec/models/subthing_two_spec.rb +5 -0
  61. data/spec/dummy/spec/models/superthing_spec.rb +5 -0
  62. data/spec/helpers/class_methods_spec_helpers.rb +5 -0
  63. data/spec/helpers/migration_spec_helpers.rb +42 -0
  64. data/spec/migration_spec.rb +74 -0
  65. data/spec/spec_helper.rb +24 -0
  66. metadata +220 -0
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
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 your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = 'faafc422bc7236ba580b411040fef0940a0489b964df998a38f1bc1d7ab91b23cebbd1e3d301a85e460dc0ab2b173ae7011ffca1e7b28add7ac463e1cd5c6cc3'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -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,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,9 @@
1
+ class CreateSuperthings < ActiveRecord::Migration
2
+ def change
3
+ create_table :superthings do |t|
4
+ t.text :content
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class CreateSubthingOnes < ActiveRecord::Migration
2
+ def change
3
+ create_table :subthing_ones do |t|
4
+ t.text :content
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class CreateSubthingTwos < ActiveRecord::Migration
2
+ def change
3
+ create_table :subthing_twos do |t|
4
+ t.text :content
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class StartEnterpriseMti < ActiveRecord::Migration
2
+ def up
3
+ enterprise_mti_up superclass_table: 'superthings', subclass_tables: ['subthing_ones', 'subthing_twos']
4
+ end
5
+
6
+ def down
7
+ enterprise_mti_down superclass_table: 'superthings', subclass_tables: ['subthing_ones', 'subthing_twos']
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class CreateContainers < ActiveRecord::Migration
2
+ def change
3
+ create_table :containers do |t|
4
+ t.text :content
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,42 @@
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 that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 0) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
18
+
19
+ create_table "subthing_ones", force: true do |t|
20
+ t.text "content"
21
+ t.datetime "created_at"
22
+ t.datetime "updated_at"
23
+ end
24
+
25
+ create_table "subthing_twos", force: true do |t|
26
+ t.text "content"
27
+ t.datetime "created_at"
28
+ t.datetime "updated_at"
29
+ end
30
+
31
+ create_table "superthings", force: true do |t|
32
+ t.text "content"
33
+ t.datetime "created_at"
34
+ t.datetime "updated_at"
35
+ t.integer "subthing_ones_id", limit: 8, null: false
36
+ t.integer "subthing_twos_id", limit: 8, null: false
37
+ end
38
+
39
+ add_index "superthings", ["subthing_ones_id"], name: "superthings_subthing_ones_id_key", unique: true, using: :btree
40
+ add_index "superthings", ["subthing_twos_id"], name: "superthings_subthing_twos_id_key", unique: true, using: :btree
41
+
42
+ end
@@ -0,0 +1,35 @@
1
+  (0.2ms) BEGIN
2
+  (2163.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
3
+  (60.6ms) DROP TABLE "superthings"
4
+  (2.2ms) ROLLBACK
5
+  (47.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
6
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+ ActiveRecord::SchemaMigration Load (9.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
+  (0.2ms) BEGIN
10
+ PG::UndefinedTable: ERROR: relation "superthings" does not exist
11
+ LINE 5: WHERE a.attrelid = '"superthings"'::regclass
12
+ ^
13
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
14
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
15
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
16
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
17
+ WHERE a.attrelid = '"superthings"'::regclass
18
+ AND a.attnum > 0 AND NOT a.attisdropped
19
+ ORDER BY a.attnum
20
+
21
+  (0.4ms) ROLLBACK
22
+  (0.2ms) BEGIN
23
+  (0.4ms) ROLLBACK
24
+  (0.2ms) BEGIN
25
+  (0.4ms) ROLLBACK
26
+  (0.2ms) BEGIN
27
+  (0.4ms) ROLLBACK
28
+  (0.2ms) BEGIN
29
+  (0.4ms) ROLLBACK
30
+  (0.3ms) BEGIN
31
+  (0.4ms) ROLLBACK
32
+  (0.2ms) BEGIN
33
+  (0.4ms) ROLLBACK
34
+  (0.2ms) BEGIN
35
+  (0.4ms) ROLLBACK
@@ -0,0 +1,1683 @@
1
+  (510.3ms) select * from information_schema.columns where table_name='superclass_migration'
2
+  (25.4ms) select * from information_schema.columns where table_name='superclass_migration'
3
+  (26.1ms) select * from information_schema.columns where table_name='superclass_migration'
4
+  (24.6ms) select * from information_schema.columns where table_name='superclass_migration'
5
+  (0.5ms) select * from information_schema.columns where table='superclass_migration'
6
+ PG::SyntaxError: ERROR: syntax error at or near "table"
7
+ LINE 1: select * from information_schema.columns where table='superc...
8
+ ^
9
+ : select * from information_schema.columns where table='superclass_migration'
10
+  (31.4ms) select * from information_schema.columns where table_name='superthings'
11
+  (35.9ms) select * from information_schema.columns where table_name='superthings'
12
+  (28.6ms) select * from information_schema.columns where table_name='superthings'
13
+  (23.8ms) select * from information_schema.columns where table_name='superthings'
14
+  (215.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
15
+  (89.5ms) select * from information_schema.columns where table_name='superthings'
16
+  (7.3ms) DROP TABLE "superthings"
17
+  (26.1ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
18
+  (41.2ms) select * from information_schema.columns where table_name='superthings'
19
+  (10.7ms) DROP TABLE "superthings"
20
+  (21.1ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
21
+  (32.9ms) select * from information_schema.columns where table_name='superthings'
22
+  (4.9ms) DROP TABLE "superthings"
23
+  (30.0ms) select * from information_schema.columns where table_name='superthings'
24
+  (25.4ms) select * from information_schema.columns where table_name='superthings'
25
+  (34.5ms) select column_name from information_schema.columns where table_name='superthings'
26
+  (28.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
27
+  (10.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
28
+  (8.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
29
+  (55.8ms) select column_name from information_schema.columns where table_name='superthings'
30
+  (5.6ms) DROP TABLE "subthing_twos"
31
+  (10.9ms) DROP TABLE "subthing_ones"
32
+  (11.8ms) DROP TABLE "superthings"
33
+  (24.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
34
+  (9.2ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
35
+  (15.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
36
+  (28.3ms) select column_name from information_schema.columns where table_name='superthings'
37
+
38
+  (5.5ms) DROP TABLE "subthing_twos"
39
+  (4.0ms) DROP TABLE "subthing_ones"
40
+  (6.6ms) DROP TABLE "superthings"
41
+  (19.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
42
+  (10.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
43
+  (22.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
44
+  (24.9ms) select column_name from information_schema.columns where table_name='superthings'
45
+
46
+  (4.9ms) DROP TABLE "subthing_twos"
47
+  (5.1ms) DROP TABLE "subthing_ones"
48
+  (4.4ms) DROP TABLE "superthings"
49
+  (68.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
50
+  (9.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
51
+  (11.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
52
+  (35.8ms) select column_name from information_schema.columns where table_name='superthings'
53
+
54
+  (5.0ms) DROP TABLE "subthing_twos"
55
+  (4.0ms) DROP TABLE "subthing_ones"
56
+  (4.9ms) DROP TABLE "superthings"
57
+  (19.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
58
+  (8.5ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
59
+  (19.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
60
+  (24.2ms) select column_name from information_schema.columns where table_name='superthings'
61
+
62
+  (5.8ms) DROP TABLE "subthing_twos"
63
+  (8.0ms) DROP TABLE "subthing_ones"
64
+  (7.9ms) DROP TABLE "superthings"
65
+  (0.9ms) DROP TABLE "subthing_twos"
66
+ PG::UndefinedTable: ERROR: table "subthing_twos" does not exist
67
+ : DROP TABLE "subthing_twos"
68
+  (32.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
69
+  (10.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
70
+  (9.5ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
71
+  (85.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
72
+  (44.3ms)  select * from information_schema.columns where table_name='superthings'
73
+ 
74
+  (1.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
75
+ PG::DuplicateColumn: ERROR: column "subthing_ones_id" of relation "superthings" already exists
76
+ : ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
77
+  (8.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
78
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
79
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
80
+  (3.3ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
81
+ PG::DuplicateColumn: ERROR: column "subthing_ones_id" of relation "superthings" already exists
82
+ : ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
83
+  (19.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
84
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
85
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
86
+  (1.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
87
+ PG::DuplicateColumn: ERROR: column "subthing_ones_id" of relation "superthings" already exists
88
+ : ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
89
+  (16.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
90
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
91
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
92
+  (3.4ms) DROP TABLE "subthing_twos"
93
+ PG::DependentObjectsStillExist: ERROR: cannot drop table subthing_twos because other objects depend on it
94
+ DETAIL: constraint superthings_subthing_twos_id_fkey on table superthings depends on table subthing_twos
95
+ HINT: Use DROP ... CASCADE to drop the dependent objects too.
96
+ : DROP TABLE "subthing_twos"
97
+  (0.2ms) BEGIN
98
+  (8.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
99
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
100
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
101
+  (0.2ms) ROLLBACK
102
+  (0.4ms) BEGIN
103
+  (5.2ms) DROP TABLE "subthing_twos"
104
+ PG::DependentObjectsStillExist: ERROR: cannot drop table subthing_twos because other objects depend on it
105
+ DETAIL: constraint superthings_subthing_twos_id_fkey on table superthings depends on table subthing_twos
106
+ HINT: Use DROP ... CASCADE to drop the dependent objects too.
107
+ : DROP TABLE "subthing_twos"
108
+  (0.5ms) ROLLBACK
109
+  (3.2ms) BEGIN
110
+  (18.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
111
+  (10.2ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
112
+  (19.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
113
+  (8.0ms) COMMIT
114
+  (36.1ms) select * from information_schema.columns where table_name='superthings'
115
+
116
+  (0.3ms) BEGIN
117
+  (7.3ms) DROP TABLE "subthing_twos"
118
+  (3.3ms) DROP TABLE "subthing_ones"
119
+  (2.6ms) DROP TABLE "superthings"
120
+  (8.0ms) COMMIT
121
+  (0.3ms) BEGIN
122
+  (15.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
123
+  (7.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
124
+  (14.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
125
+  (25.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
126
+  (3.3ms) COMMIT
127
+  (47.3ms)  select * from information_schema.columns where table_name='superthings'
128
+ 
129
+  (0.4ms) BEGIN
130
+  (1.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
131
+ PG::DuplicateColumn: ERROR: column "subthing_ones_id" of relation "superthings" already exists
132
+ : ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
133
+  (0.4ms) ROLLBACK
134
+  (0.2ms) BEGIN
135
+  (14.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
136
+  (8.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
137
+  (7.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
138
+  (34.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
139
+  (5.5ms) COMMIT
140
+  (32.8ms)  select * from information_schema.columns where table_name='superthings'
141
+ 
142
+  (0.2ms) BEGIN
143
+  (1.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
144
+ PG::DuplicateColumn: ERROR: column "subthing_ones_id" of relation "superthings" already exists
145
+ : ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
146
+  (0.2ms) ROLLBACK
147
+  (0.3ms) BEGIN
148
+  (20.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
149
+  (8.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
150
+  (9.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
151
+  (26.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
152
+  (5.7ms) COMMIT
153
+  (49.1ms)  select * from information_schema.columns where table_name='superthings'
154
+ 
155
+  (0.5ms) BEGIN
156
+  (6.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
157
+  (2.7ms) DROP TABLE "subthing_twos"
158
+  (3.1ms) DROP TABLE "subthing_ones"
159
+  (3.1ms) DROP TABLE "superthings"
160
+  (9.5ms) COMMIT
161
+  (0.2ms) BEGIN
162
+  (24.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
163
+  (8.2ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
164
+  (9.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
165
+  (22.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
166
+  (4.8ms) COMMIT
167
+  (11.0ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
168
+  (26.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
169
+  (0.9ms) BEGIN
170
+  (6.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
171
+  (2.8ms) DROP TABLE "subthing_twos"
172
+  (2.7ms) DROP TABLE "subthing_ones"
173
+  (2.6ms) DROP TABLE "superthings"
174
+  (4.3ms) COMMIT
175
+  (0.2ms) BEGIN
176
+  (17.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
177
+  (14.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
178
+  (10.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
179
+  (25.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
180
+  (13.1ms) COMMIT
181
+  (9.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
182
+  (15.2ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
183
+  (0.5ms) BEGIN
184
+  (8.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
185
+  (3.0ms) DROP TABLE "subthing_twos"
186
+  (2.7ms) DROP TABLE "subthing_ones"
187
+  (2.6ms) DROP TABLE "superthings"
188
+  (4.3ms) COMMIT
189
+  (0.2ms) BEGIN
190
+  (22.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
191
+  (16.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
192
+  (7.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
193
+  (38.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
194
+  (13.5ms) COMMIT
195
+  (8.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
196
+  (21.3ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
197
+  (0.5ms) BEGIN
198
+  (5.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
199
+  (3.1ms) DROP TABLE "subthing_twos"
200
+  (2.2ms) DROP TABLE "subthing_ones"
201
+  (2.2ms) DROP TABLE "superthings"
202
+  (14.4ms) COMMIT
203
+  (0.2ms) BEGIN
204
+  (11.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
205
+  (7.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
206
+  (8.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
207
+  (26.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
208
+  (5.1ms) COMMIT
209
+  (9.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
210
+  (21.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
211
+  (1.4ms) BEGIN
212
+  (14.0ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
213
+  (2.6ms) DROP TABLE "subthing_twos"
214
+  (2.7ms) DROP TABLE "subthing_ones"
215
+  (4.7ms) DROP TABLE "superthings"
216
+  (6.3ms) COMMIT
217
+  (0.7ms) BEGIN
218
+  (11.1ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
219
+  (9.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
220
+  (9.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
221
+  (15.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
222
+  (3.9ms) COMMIT
223
+  (6.3ms)  select * from information_schema.columns where table_name=superthings
224
+ 
225
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
226
+ LINE 1: ... from information_schema.columns where table_name=superthing...
227
+ ^
228
+ : select * from information_schema.columns where table_name=superthings
229
+
230
+  (0.8ms) select * from information_schema.columns where table_name=superthings
231
+
232
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
233
+ LINE 1: ... from information_schema.columns where table_name=superthing...
234
+ ^
235
+ : select * from information_schema.columns where table_name=superthings
236
+
237
+  (20.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
238
+  (18.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
239
+  (1.0ms) BEGIN
240
+  (5.7ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
241
+  (4.2ms) DROP TABLE "subthing_twos"
242
+  (4.9ms) DROP TABLE "subthing_ones"
243
+  (10.0ms) DROP TABLE "superthings"
244
+  (5.4ms) COMMIT
245
+  (0.2ms) BEGIN
246
+  (17.1ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
247
+  (7.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
248
+  (7.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
249
+  (24.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
250
+  (6.9ms) COMMIT
251
+  (18.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
252
+  (13.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
253
+  (5.9ms)  select * from information_schema.columns where table_name="superthings"
254
+ 
255
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
256
+ LINE 1: ... from information_schema.columns where table_name="superthin...
257
+ ^
258
+ : select * from information_schema.columns where table_name="superthings"
259
+
260
+  (0.6ms) select * from information_schema.columns where table_name="superthings"
261
+
262
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
263
+ LINE 1: ... from information_schema.columns where table_name="superthin...
264
+ ^
265
+ : select * from information_schema.columns where table_name="superthings"
266
+
267
+  (0.3ms) BEGIN
268
+  (5.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
269
+  (2.7ms) DROP TABLE "subthing_twos"
270
+  (2.8ms) DROP TABLE "subthing_ones"
271
+  (2.7ms) DROP TABLE "superthings"
272
+  (18.3ms) COMMIT
273
+  (0.9ms) BEGIN
274
+  (16.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
275
+  (8.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
276
+  (7.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
277
+  (17.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
278
+  (2.9ms) COMMIT
279
+  (10.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
280
+  (28.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
281
+  (4.6ms)  select * from information_schema.columns where table_name="superthings";
282
+ 
283
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
284
+ LINE 1: ... from information_schema.columns where table_name="superthin...
285
+ ^
286
+ : select * from information_schema.columns where table_name="superthings";
287
+
288
+  (0.9ms) select * from information_schema.columns where table_name="superthings";
289
+
290
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
291
+ LINE 1: ... from information_schema.columns where table_name="superthin...
292
+ ^
293
+ : select * from information_schema.columns where table_name="superthings";
294
+
295
+  (0.3ms) BEGIN
296
+  (5.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
297
+  (2.7ms) DROP TABLE "subthing_twos"
298
+  (2.7ms) DROP TABLE "subthing_ones"
299
+  (3.1ms) DROP TABLE "superthings"
300
+  (6.0ms) COMMIT
301
+  (0.3ms) BEGIN
302
+  (18.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
303
+  (9.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
304
+  (9.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
305
+  (24.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
306
+  (3.5ms) COMMIT
307
+  (6.0ms)  select * from information_schema.columns where table_name="superthings";
308
+ 
309
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
310
+ LINE 1: ... from information_schema.columns where table_name="superthin...
311
+ ^
312
+ : select * from information_schema.columns where table_name="superthings";
313
+
314
+  (1.3ms) select * from information_schema.columns where table_name="superthings";
315
+
316
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
317
+ LINE 1: ... from information_schema.columns where table_name="superthin...
318
+ ^
319
+ : select * from information_schema.columns where table_name="superthings";
320
+
321
+  (14.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
322
+  (1.2ms) select * from information_schema.columns where table_name="superthings";
323
+
324
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
325
+ LINE 1: ... from information_schema.columns where table_name="superthin...
326
+ ^
327
+ : select * from information_schema.columns where table_name="superthings";
328
+
329
+  (0.7ms)  select * from information_schema.columns where table_name="superthings";
330
+ 
331
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
332
+ LINE 1: ... from information_schema.columns where table_name="superthin...
333
+ ^
334
+ : select * from information_schema.columns where table_name="superthings";
335
+
336
+  (25.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
337
+  (0.3ms) BEGIN
338
+  (5.7ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
339
+  (2.9ms) DROP TABLE "subthing_twos"
340
+  (2.8ms) DROP TABLE "subthing_ones"
341
+  (3.0ms) DROP TABLE "superthings"
342
+  (10.9ms) COMMIT
343
+  (0.2ms) BEGIN
344
+  (20.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
345
+  (7.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
346
+  (12.4ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
347
+  (15.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
348
+  (9.9ms) COMMIT
349
+  (15.5ms)  select * from information_schema.columns where table_name="superthings";
350
+ 
351
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
352
+ LINE 1: ... from information_schema.columns where table_name="superthin...
353
+ ^
354
+ : select * from information_schema.columns where table_name="superthings";
355
+
356
+  (1.1ms) select * from information_schema.columns where table_name="superthings";
357
+
358
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
359
+ LINE 1: ... from information_schema.columns where table_name="superthin...
360
+ ^
361
+ : select * from information_schema.columns where table_name="superthings";
362
+
363
+  (0.7ms) BEGIN
364
+  (6.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
365
+  (2.4ms) DROP TABLE "subthing_twos"
366
+  (3.8ms) DROP TABLE "subthing_ones"
367
+  (4.2ms) DROP TABLE "superthings"
368
+  (12.4ms) COMMIT
369
+  (0.2ms) BEGIN
370
+  (30.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
371
+  (8.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
372
+  (8.5ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
373
+  (17.8ms) COMMIT
374
+  (2.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
375
+ PG::UndefinedObject: ERROR: constraint "id_fkey" of relation "subthing_ones" does not exist
376
+ : ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
377
+  (29.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
378
+  (11.3ms) select * from information_schema.columns where table_name="superthings";
379
+
380
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
381
+ LINE 1: ... from information_schema.columns where table_name="superthin...
382
+ ^
383
+ : select * from information_schema.columns where table_name="superthings";
384
+
385
+  (0.5ms)  select * from information_schema.columns where table_name="superthings";
386
+ 
387
+ PG::UndefinedColumn: ERROR: column "superthings" does not exist
388
+ LINE 1: ... from information_schema.columns where table_name="superthin...
389
+ ^
390
+ : select * from information_schema.columns where table_name="superthings";
391
+
392
+  (0.3ms) BEGIN
393
+  (1.7ms) DROP TABLE "subthing_twos"
394
+ PG::DependentObjectsStillExist: ERROR: cannot drop table subthing_twos because other objects depend on it
395
+ DETAIL: constraint superthings_subthing_twos_id_fkey on table superthings depends on table subthing_twos
396
+ HINT: Use DROP ... CASCADE to drop the dependent objects too.
397
+ : DROP TABLE "subthing_twos"
398
+  (0.1ms) ROLLBACK
399
+  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
400
+  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
401
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
402
+ Migrating to CreateSuperthings (20131029213145)
403
+  (0.5ms) BEGIN
404
+  (4.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
405
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
406
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
407
+  (0.3ms) ROLLBACK
408
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
409
+ Migrating to CreateSuperthings (20131029213145)
410
+  (0.3ms) BEGIN
411
+  (28.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
412
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
413
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
414
+  (0.2ms) ROLLBACK
415
+  (0.2ms) BEGIN
416
+  (28.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
417
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
418
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
419
+  (3.5ms) ROLLBACK
420
+  (0.3ms) BEGIN
421
+  (3.2ms) DROP TABLE "subthing_twos"
422
+ PG::DependentObjectsStillExist: ERROR: cannot drop table subthing_twos because other objects depend on it
423
+ DETAIL: constraint superthings_subthing_twos_id_fkey on table superthings depends on table subthing_twos
424
+ HINT: Use DROP ... CASCADE to drop the dependent objects too.
425
+ : DROP TABLE "subthing_twos"
426
+  (0.2ms) ROLLBACK
427
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
428
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
429
+  (9.6ms) BEGIN
430
+  (14.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
431
+  (8.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
432
+  (16.5ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
433
+  (4.8ms) COMMIT
434
+  (41.1ms) select * from information_schema.columns where table_name='superthings';
435
+
436
+  (13.4ms)  select * from information_schema.columns where table_name='superthings';
437
+ 
438
+  (1.0ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
439
+ PG::UndefinedObject: ERROR: constraint "id_fkey" of relation "subthing_ones" does not exist
440
+ : ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
441
+  (15.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
442
+  (0.3ms) BEGIN
443
+  (9.7ms) DROP TABLE "subthing_twos"
444
+ PG::DependentObjectsStillExist: ERROR: cannot drop table subthing_twos because other objects depend on it
445
+ DETAIL: constraint superthings_subthing_twos_id_fkey on table superthings depends on table subthing_twos
446
+ HINT: Use DROP ... CASCADE to drop the dependent objects too.
447
+ : DROP TABLE "subthing_twos"
448
+  (0.4ms) ROLLBACK
449
+  (0.2ms) BEGIN
450
+  (17.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
451
+  (8.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
452
+  (10.5ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
453
+  (21.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
454
+  (6.1ms) COMMIT
455
+  (39.3ms)  select * from information_schema.columns where table_name='superthings';
456
+ 
457
+  (15.9ms) select * from information_schema.columns where table_name='superthings';
458
+
459
+  (7.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
460
+  (27.5ms) select * from information_schema.columns where table_name='superthings';
461
+
462
+  (17.4ms)  select * from information_schema.columns where table_name='superthings';
463
+ 
464
+  (22.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
465
+  (0.4ms) BEGIN
466
+  (5.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
467
+  (11.3ms) DROP TABLE "subthing_twos"
468
+  (2.4ms) DROP TABLE "subthing_ones"
469
+  (3.0ms) DROP TABLE "superthings"
470
+  (4.2ms) COMMIT
471
+  (0.2ms) BEGIN
472
+  (11.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
473
+  (17.0ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
474
+  (12.5ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
475
+  (16.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
476
+  (2.8ms) COMMIT
477
+  (9.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
478
+  (43.0ms) select * from information_schema.columns where table_name='superthings';
479
+
480
+  (16.7ms)  select * from information_schema.columns where table_name='superthings';
481
+ 
482
+  (30.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
483
+  (15.6ms)  select * from information_schema.columns where table_name='superthings';
484
+ 
485
+  (16.8ms) select * from information_schema.columns where table_name='superthings';
486
+
487
+  (2.0ms) BEGIN
488
+  (5.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
489
+  (2.7ms) DROP TABLE "subthing_twos"
490
+  (5.8ms) DROP TABLE "subthing_ones"
491
+  (3.5ms) DROP TABLE "superthings"
492
+  (0.8ms) ROLLBACK
493
+  (0.2ms) BEGIN
494
+  (5.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
495
+ PG::DuplicateTable: ERROR: relation "superthings" already exists
496
+ : CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
497
+  (1.0ms) ROLLBACK
498
+  (0.3ms) BEGIN
499
+  (7.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
500
+  (2.8ms) DROP TABLE "subthing_twos"
501
+  (2.5ms) DROP TABLE "subthing_ones"
502
+  (2.4ms) DROP TABLE "superthings"
503
+  (18.2ms) COMMIT
504
+  (0.2ms) BEGIN
505
+  (23.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
506
+  (8.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
507
+  (7.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
508
+  (23.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
509
+  (3.1ms) COMMIT
510
+  (12.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
511
+  (47.4ms) select * from information_schema.columns where table_name='superthings';
512
+
513
+  (17.3ms)  select * from information_schema.columns where table_name='superthings';
514
+ 
515
+  (21.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
516
+  (16.0ms)  select * from information_schema.columns where table_name='superthings';
517
+ 
518
+  (16.4ms) select * from information_schema.columns where table_name='superthings';
519
+
520
+  (0.3ms) BEGIN
521
+  (6.7ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
522
+  (4.3ms) DROP TABLE "subthing_twos"
523
+  (2.5ms) DROP TABLE "subthing_ones"
524
+  (3.9ms) DROP TABLE "superthings"
525
+  (8.8ms) COMMIT
526
+  (0.3ms) BEGIN
527
+  (20.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
528
+  (8.2ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
529
+  (18.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
530
+  (15.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
531
+  (4.4ms) COMMIT
532
+  (19.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
533
+  (33.7ms) select * from information_schema.columns where table_name='superthings';
534
+
535
+  (16.3ms)  select * from information_schema.columns where table_name='superthings';
536
+ 
537
+  (86.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
538
+  (20.8ms)  select * from information_schema.columns where table_name='superthings';
539
+ 
540
+  (17.5ms) select * from information_schema.columns where table_name='superthings';
541
+
542
+  (0.2ms) BEGIN
543
+  (7.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
544
+  (3.4ms) DROP TABLE "subthing_twos"
545
+  (2.9ms) DROP TABLE "subthing_ones"
546
+  (2.7ms) DROP TABLE "superthings"
547
+  (21.5ms) COMMIT
548
+  (0.2ms) BEGIN
549
+  (19.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
550
+  (10.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
551
+  (8.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
552
+  (25.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
553
+  (8.8ms) COMMIT
554
+  (8.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
555
+  (32.7ms) select * from information_schema.columns where table_name='superthings';
556
+
557
+  (15.2ms)  select * from information_schema.columns where table_name='superthings';
558
+ 
559
+  (23.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
560
+  (18.0ms)  select * from information_schema.columns where table_name='superthings';
561
+ 
562
+  (15.8ms) select * from information_schema.columns where table_name='superthings';
563
+
564
+  (0.3ms) BEGIN
565
+  (7.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
566
+  (2.8ms) DROP TABLE "subthing_twos"
567
+  (2.6ms) DROP TABLE "subthing_ones"
568
+  (2.7ms) DROP TABLE "superthings"
569
+  (4.2ms) COMMIT
570
+  (0.2ms) BEGIN
571
+  (23.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
572
+  (8.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
573
+  (8.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
574
+  (17.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
575
+  (3.0ms) COMMIT
576
+  (50.7ms)  select * from information_schema.columns where table_name='superthings';
577
+ 
578
+  (20.6ms) select * from information_schema.columns where table_name='superthings';
579
+
580
+  (10.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
581
+  (22.6ms) select * from information_schema.columns where table_name='superthings';
582
+
583
+  (16.0ms)  select * from information_schema.columns where table_name='superthings';
584
+ 
585
+  (26.4ms) select * from information_schema.columns where table_name='superthings';
586
+
587
+  (16.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
588
+  (0.5ms) BEGIN
589
+  (5.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
590
+  (3.0ms) DROP TABLE "subthing_twos"
591
+  (12.5ms) DROP TABLE "subthing_ones"
592
+  (2.7ms) DROP TABLE "superthings"
593
+  (3.7ms) COMMIT
594
+  (0.2ms) BEGIN
595
+  (13.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
596
+  (8.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
597
+  (33.1ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
598
+  (15.3ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
599
+  (9.3ms) COMMIT
600
+  (8.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
601
+  (59.4ms) select * from information_schema.columns where table_name='superthings';
602
+
603
+  (26.0ms)  select * from information_schema.columns where table_name='superthings';
604
+ 
605
+  (17.4ms) select * from information_schema.columns where table_name='superthings';
606
+
607
+  (20.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
608
+  (18.7ms) select * from information_schema.columns where table_name='superthings';
609
+
610
+  (15.1ms)  select * from information_schema.columns where table_name='superthings';
611
+ 
612
+  (0.6ms) BEGIN
613
+  (13.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
614
+  (3.1ms) DROP TABLE "subthing_twos"
615
+  (3.0ms) DROP TABLE "subthing_ones"
616
+  (14.4ms) DROP TABLE "superthings"
617
+  (10.2ms) COMMIT
618
+  (0.3ms) BEGIN
619
+  (22.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
620
+  (8.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
621
+  (12.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
622
+  (17.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
623
+  (7.4ms) COMMIT
624
+  (11.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
625
+  (17.1ms) select * from information_schema.constraint_column_usage where table_name='superthings';
626
+
627
+  (15.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
628
+  (0.7ms) BEGIN
629
+  (5.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
630
+  (2.6ms) DROP TABLE "subthing_twos"
631
+  (12.6ms) DROP TABLE "subthing_ones"
632
+  (2.5ms) DROP TABLE "superthings"
633
+  (4.1ms) COMMIT
634
+  (0.3ms) BEGIN
635
+  (11.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
636
+  (7.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
637
+  (9.9ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
638
+  (37.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
639
+  (3.2ms) COMMIT
640
+  (11.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
641
+  (15.1ms) select * from information_schema.constraint_column_usage where table_name='superthings';
642
+
643
+  (13.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
644
+  (10.2ms) BEGIN
645
+  (5.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
646
+  (4.2ms) DROP TABLE "subthing_twos"
647
+  (2.6ms) DROP TABLE "subthing_ones"
648
+  (6.8ms) DROP TABLE "superthings"
649
+  (4.1ms) COMMIT
650
+  (0.2ms) BEGIN
651
+  (1030.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
652
+  (329.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
653
+  (50.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
654
+  (23.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
655
+  (8.8ms) COMMIT
656
+  (11.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
657
+  (37.8ms) select * from information_schema.columns where table_name='superthings';
658
+
659
+  (11.2ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
660
+ 
661
+  (14.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
662
+  (25.7ms)  select * from information_schema.columns where table_name='superthings';
663
+ 
664
+  (17.3ms) select * from information_schema.columns where table_name='superthings';
665
+
666
+  (0.3ms) BEGIN
667
+  (5.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
668
+  (2.8ms) DROP TABLE "subthing_twos"
669
+  (2.7ms) DROP TABLE "subthing_ones"
670
+  (12.2ms) DROP TABLE "superthings"
671
+  (5.0ms) COMMIT
672
+  (0.2ms) BEGIN
673
+  (120.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
674
+  (7.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
675
+  (7.5ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
676
+  (14.2ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
677
+  (2.6ms) COMMIT
678
+  (13.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
679
+  (38.5ms) select * from information_schema.columns where table_name='superthings';
680
+
681
+  (16.6ms)  select * from information_schema.columns where table_name='superthings';
682
+ 
683
+  (10.0ms) select * from information_schema.constraint_column_usage where table_name='superthings';
684
+
685
+  (20.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
686
+  (17.6ms) select * from information_schema.columns where table_name='superthings';
687
+
688
+  (28.4ms)  select * from information_schema.columns where table_name='superthings';
689
+ 
690
+  (0.4ms) BEGIN
691
+  (5.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
692
+  (3.0ms) DROP TABLE "subthing_twos"
693
+  (2.7ms) DROP TABLE "subthing_ones"
694
+  (2.6ms) DROP TABLE "superthings"
695
+  (5.4ms) COMMIT
696
+  (0.2ms) BEGIN
697
+  (13.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
698
+  (7.7ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
699
+  (7.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
700
+  (23.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
701
+  (32.9ms) COMMIT
702
+  (10.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
703
+  (36.7ms) select * from information_schema.columns where table_name='superthings';
704
+
705
+  (14.1ms)  select * from information_schema.columns where table_name='superthings';
706
+ 
707
+  (10.2ms) select * from information_schema.constraint_column_usage where table_name='superthings';
708
+
709
+  (13.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
710
+  (27.6ms) select * from information_schema.columns where table_name='superthings';
711
+
712
+  (19.1ms)  select * from information_schema.columns where table_name='superthings';
713
+ 
714
+  (0.4ms) BEGIN
715
+  (18.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
716
+  (2.6ms) DROP TABLE "subthing_twos"
717
+  (2.2ms) DROP TABLE "subthing_ones"
718
+  (2.0ms) DROP TABLE "superthings"
719
+  (3.9ms) COMMIT
720
+  (0.2ms) BEGIN
721
+  (11.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
722
+  (7.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
723
+  (7.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
724
+  (17.2ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
725
+  (11.0ms) COMMIT
726
+  (12.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
727
+  (29.7ms) select * from information_schema.columns where table_name='superthings';
728
+
729
+  (13.8ms)  select * from information_schema.columns where table_name='superthings';
730
+ 
731
+  (8.9ms) select * from information_schema.constraint_column_usage where table_name='superthings';
732
+
733
+  (12.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
734
+  (15.8ms) select * from information_schema.columns where table_name='superthings';
735
+
736
+  (14.5ms)  select * from information_schema.columns where table_name='superthings';
737
+ 
738
+  (0.2ms) BEGIN
739
+  (18.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
740
+  (2.6ms) DROP TABLE "subthing_twos"
741
+  (2.5ms) DROP TABLE "subthing_ones"
742
+  (2.1ms) DROP TABLE "superthings"
743
+  (3.7ms) COMMIT
744
+  (0.2ms) BEGIN
745
+  (14.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
746
+  (6.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
747
+  (9.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
748
+  (13.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
749
+  (4.0ms) COMMIT
750
+  (10.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
751
+  (30.4ms) select * from information_schema.columns where table_name='superthings';
752
+
753
+  (15.5ms)  select * from information_schema.columns where table_name='superthings';
754
+ 
755
+  (9.1ms) select * from information_schema.constraint_column_usage where table_name='superthings';
756
+
757
+  (14.3ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
758
+  (15.4ms) select * from information_schema.columns where table_name='superthings';
759
+
760
+  (14.8ms)  select * from information_schema.columns where table_name='superthings';
761
+ 
762
+  (2.3ms) BEGIN
763
+  (11.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
764
+  (2.9ms) DROP TABLE "subthing_twos"
765
+  (2.6ms) DROP TABLE "subthing_ones"
766
+  (3.5ms) DROP TABLE "superthings"
767
+  (4.3ms) COMMIT
768
+  (0.2ms) BEGIN
769
+  (68.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
770
+  (9.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
771
+  (6.4ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
772
+  (13.2ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
773
+  (2.6ms) COMMIT
774
+  (9.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
775
+  (28.5ms) select * from information_schema.columns where table_name='superthings';
776
+
777
+  (14.6ms)  select * from information_schema.columns where table_name='superthings';
778
+ 
779
+  (10.5ms) select * from information_schema.constraint_column_usage where table_name='superthings';
780
+
781
+  (12.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
782
+  (14.6ms) select * from information_schema.columns where table_name='superthings';
783
+
784
+  (16.3ms)  select * from information_schema.columns where table_name='superthings';
785
+ 
786
+  (0.3ms) BEGIN
787
+  (4.7ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
788
+  (2.3ms) DROP TABLE "subthing_twos"
789
+  (2.3ms) DROP TABLE "subthing_ones"
790
+  (2.2ms) DROP TABLE "superthings"
791
+  (4.1ms) COMMIT
792
+  (0.2ms) BEGIN
793
+  (12.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
794
+  (7.2ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
795
+  (7.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
796
+  (15.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
797
+  (4.3ms) COMMIT
798
+  (8.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
799
+  (14.2ms) select * from information_schema.constraint_column_usage where table_name='superthings';
800
+
801
+  (24.7ms)  select * from information_schema.columns where table_name='superthings';
802
+ 
803
+  (14.2ms) select * from information_schema.columns where table_name='superthings';
804
+
805
+  (11.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
806
+  (15.4ms) select * from information_schema.columns where table_name='superthings';
807
+
808
+  (15.9ms)  select * from information_schema.columns where table_name='superthings';
809
+ 
810
+  (0.2ms) BEGIN
811
+  (4.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
812
+  (2.3ms) DROP TABLE "subthing_twos"
813
+  (2.6ms) DROP TABLE "subthing_ones"
814
+  (2.3ms) DROP TABLE "superthings"
815
+  (4.5ms) COMMIT
816
+  (0.2ms) BEGIN
817
+  (12.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
818
+  (8.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
819
+  (7.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
820
+  (13.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
821
+  (2.8ms) COMMIT
822
+  (0.8ms) BEGIN
823
+  (5.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
824
+  (2.5ms) DROP TABLE "subthing_twos"
825
+  (2.2ms) DROP TABLE "subthing_ones"
826
+  (2.1ms) DROP TABLE "superthings"
827
+  (4.2ms) COMMIT
828
+  (1.1ms) BEGIN
829
+  (7.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
830
+  (7.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
831
+  (6.4ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
832
+  (11.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
833
+  (2.4ms) COMMIT
834
+  (9.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
835
+  (27.2ms) select * from information_schema.columns where table_name='superthings';
836
+
837
+  (16.0ms)  select * from information_schema.columns where table_name='superthings';
838
+ 
839
+  (10.1ms) select * from information_schema.constraint_column_usage where table_name='superthings';
840
+
841
+  (12.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
842
+  (15.0ms) select * from information_schema.columns where table_name='superthings';
843
+
844
+  (18.1ms)  select * from information_schema.columns where table_name='superthings';
845
+ 
846
+  (0.5ms) BEGIN
847
+  (4.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
848
+  (2.1ms) DROP TABLE "subthing_twos"
849
+  (2.0ms) DROP TABLE "subthing_ones"
850
+  (2.0ms) DROP TABLE "superthings"
851
+  (5.8ms) COMMIT
852
+  (0.2ms) BEGIN
853
+  (11.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
854
+  (16.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
855
+  (10.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
856
+  (13.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
857
+  (5.9ms) ROLLBACK
858
+  (0.3ms) BEGIN
859
+  (0.3ms) ROLLBACK
860
+  (0.3ms) BEGIN
861
+  (8.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
862
+  (6.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
863
+  (6.9ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
864
+  (13.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
865
+  (34.2ms) ROLLBACK
866
+  (0.4ms) BEGIN
867
+  (0.2ms) ROLLBACK
868
+  (0.2ms) BEGIN
869
+  (9.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
870
+  (8.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
871
+  (7.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
872
+  (13.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
873
+  (6.0ms) ROLLBACK
874
+  (0.3ms) BEGIN
875
+  (0.2ms) ROLLBACK
876
+  (0.2ms) BEGIN
877
+  (7.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
878
+  (9.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
879
+  (7.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
880
+  (13.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
881
+  (5.3ms) ROLLBACK
882
+  (0.5ms) BEGIN
883
+  (0.4ms) ROLLBACK
884
+  (0.2ms) BEGIN
885
+  (10.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
886
+  (6.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
887
+  (9.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
888
+  (12.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
889
+  (7.1ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
890
+  (6.8ms) COMMIT
891
+  (0.9ms) BEGIN
892
+  (2.8ms) DROP TABLE "containers"
893
+  (5.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
894
+  (2.2ms) DROP TABLE "subthing_twos"
895
+  (2.1ms) DROP TABLE "subthing_ones"
896
+  (2.1ms) DROP TABLE "superthings"
897
+  (4.9ms) COMMIT
898
+  (0.5ms) BEGIN
899
+  (7.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
900
+  (6.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
901
+  (7.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
902
+  (10.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
903
+  (6.7ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
904
+  (2.8ms) COMMIT
905
+  (30.4ms) select * from information_schema.columns where table_name='superthings';
906
+
907
+  (14.6ms)  select * from information_schema.columns where table_name='superthings';
908
+ 
909
+  (6.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
910
+  (18.1ms)  select * from information_schema.columns where table_name='superthings';
911
+ 
912
+  (9.6ms) select * from information_schema.constraint_column_usage where table_name='superthings';
913
+
914
+  (13.3ms)  select * from information_schema.columns where table_name='superthings';
915
+ 
916
+  (12.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
917
+  (0.3ms) BEGIN
918
+  (2.0ms) DROP TABLE "containers"
919
+  (4.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
920
+  (2.0ms) DROP TABLE "subthing_twos"
921
+  (2.3ms) DROP TABLE "subthing_ones"
922
+  (2.2ms) DROP TABLE "superthings"
923
+  (4.4ms) COMMIT
924
+  (0.2ms) BEGIN
925
+  (10.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
926
+  (7.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
927
+  (7.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
928
+  (12.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
929
+  (7.0ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
930
+  (4.9ms) COMMIT
931
+  (0.9ms) BEGIN
932
+  (2.7ms) DROP TABLE "containers"
933
+  (5.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
934
+  (2.1ms) DROP TABLE "subthing_twos"
935
+  (2.6ms) DROP TABLE "subthing_ones"
936
+  (2.3ms) DROP TABLE "superthings"
937
+  (4.2ms) COMMIT
938
+  (1.2ms) BEGIN
939
+  (7.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
940
+  (9.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
941
+  (6.4ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
942
+  (11.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
943
+  (7.5ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
944
+  (3.1ms) COMMIT
945
+  (8.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
946
+  (13.9ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
947
+ 
948
+  (25.2ms) select * from information_schema.columns where table_name='superthings';
949
+
950
+  (13.5ms)  select * from information_schema.columns where table_name='superthings';
951
+ 
952
+  (12.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
953
+  (17.0ms)  select * from information_schema.columns where table_name='superthings';
954
+ 
955
+  (14.9ms) select * from information_schema.columns where table_name='superthings';
956
+
957
+  (0.3ms) BEGIN
958
+  (3.1ms) DROP TABLE "containers"
959
+  (4.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
960
+  (2.0ms) DROP TABLE "subthing_twos"
961
+  (2.1ms) DROP TABLE "subthing_ones"
962
+  (2.1ms) DROP TABLE "superthings"
963
+  (4.1ms) COMMIT
964
+  (0.4ms) BEGIN
965
+  (13.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
966
+  (7.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
967
+  (12.1ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
968
+  (22.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
969
+  (11.6ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
970
+  (9.9ms) COMMIT
971
+  (1.7ms) BEGIN
972
+  (3.9ms) DROP TABLE "containers"
973
+  (13.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
974
+  (4.3ms) DROP TABLE "subthing_twos"
975
+  (3.1ms) DROP TABLE "subthing_ones"
976
+  (3.0ms) DROP TABLE "superthings"
977
+  (5.0ms) COMMIT
978
+  (1.0ms) BEGIN
979
+  (11.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
980
+  (8.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
981
+  (7.4ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
982
+  (13.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
983
+  (7.4ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
984
+  (4.4ms) COMMIT
985
+  (7.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
986
+  (37.9ms)  select * from information_schema.columns where table_name='superthings';
987
+ 
988
+  (14.8ms) select * from information_schema.columns where table_name='superthings';
989
+
990
+  (9.9ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
991
+ 
992
+  (14.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
993
+  (16.2ms)  select * from information_schema.columns where table_name='superthings';
994
+ 
995
+  (32.8ms) select * from information_schema.columns where table_name='superthings';
996
+
997
+  (0.4ms) BEGIN
998
+  (4.0ms) DROP TABLE "containers"
999
+  (7.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1000
+  (2.7ms) DROP TABLE "subthing_twos"
1001
+  (3.9ms) DROP TABLE "subthing_ones"
1002
+  (3.3ms) DROP TABLE "superthings"
1003
+  (9.2ms) COMMIT
1004
+  (0.2ms) BEGIN
1005
+  (11.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1006
+  (6.5ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1007
+  (7.4ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1008
+  (27.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1009
+  (21.5ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1010
+  (4.1ms) COMMIT
1011
+  (1.4ms) BEGIN
1012
+  (2.9ms) DROP TABLE "containers"
1013
+  (6.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1014
+  (2.5ms) DROP TABLE "subthing_twos"
1015
+  (2.5ms) DROP TABLE "subthing_ones"
1016
+  (2.4ms) DROP TABLE "superthings"
1017
+  (10.4ms) COMMIT
1018
+  (0.5ms) BEGIN
1019
+  (8.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1020
+  (12.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1021
+  (7.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1022
+  (17.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1023
+  (8.4ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1024
+  (10.6ms) COMMIT
1025
+  (14.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1026
+  (31.3ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1027
+ 
1028
+  (36.1ms) select * from information_schema.columns where table_name='superthings';
1029
+
1030
+  (14.5ms)  select * from information_schema.columns where table_name='superthings';
1031
+ 
1032
+  (24.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1033
+  (16.4ms)  select * from information_schema.columns where table_name='superthings';
1034
+ 
1035
+  (23.1ms) select * from information_schema.columns where table_name='superthings';
1036
+
1037
+  (0.4ms) BEGIN
1038
+  (2.6ms) DROP TABLE "containers"
1039
+  (5.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1040
+  (2.2ms) DROP TABLE "subthing_twos"
1041
+  (2.2ms) DROP TABLE "subthing_ones"
1042
+  (2.8ms) DROP TABLE "superthings"
1043
+  (24.3ms) COMMIT
1044
+  (0.2ms) BEGIN
1045
+  (13.1ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1046
+  (6.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1047
+  (7.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1048
+  (19.2ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1049
+  (7.6ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1050
+  (5.3ms) COMMIT
1051
+  (31.5ms) select * from information_schema.columns where table_name='superthings';
1052
+
1053
+  (14.0ms)  select * from information_schema.columns where table_name='superthings';
1054
+ 
1055
+  (7.0ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1056
+  (9.3ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1057
+ 
1058
+  (14.6ms) select * from information_schema.columns where table_name='superthings';
1059
+
1060
+  (13.1ms)  select * from information_schema.columns where table_name='superthings';
1061
+ 
1062
+  (12.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1063
+  (0.3ms) BEGIN
1064
+  (3.4ms) DROP TABLE "containers"
1065
+  (6.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1066
+  (2.3ms) DROP TABLE "subthing_twos"
1067
+  (2.1ms) DROP TABLE "subthing_ones"
1068
+  (2.0ms) DROP TABLE "superthings"
1069
+  (4.2ms) COMMIT
1070
+  (1.0ms) BEGIN
1071
+  (6.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1072
+  (8.0ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1073
+  (14.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1074
+  (13.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1075
+  (7.5ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1076
+  (3.8ms) COMMIT
1077
+  (1.1ms) BEGIN
1078
+  (2.4ms) DROP TABLE "containers"
1079
+  (5.7ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1080
+  (2.5ms) DROP TABLE "subthing_twos"
1081
+  (2.4ms) DROP TABLE "subthing_ones"
1082
+  (2.5ms) DROP TABLE "superthings"
1083
+  (4.1ms) COMMIT
1084
+  (0.2ms) BEGIN
1085
+  (10.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1086
+  (8.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1087
+  (8.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1088
+  (14.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1089
+  (8.1ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1090
+  (3.1ms) COMMIT
1091
+  (1.7ms) BEGIN
1092
+  (3.0ms) DROP TABLE "containers"
1093
+  (5.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1094
+  (2.1ms) DROP TABLE "subthing_twos"
1095
+  (2.1ms) DROP TABLE "subthing_ones"
1096
+  (2.0ms) DROP TABLE "superthings"
1097
+  (4.6ms) COMMIT
1098
+  (0.8ms) BEGIN
1099
+  (6.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1100
+  (9.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1101
+  (7.5ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1102
+  (12.2ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1103
+  (8.0ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1104
+  (3.3ms) COMMIT
1105
+  (7.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1106
+  (40.5ms)  select * from information_schema.columns where table_name='superthings';
1107
+ 
1108
+  (14.2ms) select * from information_schema.columns where table_name='superthings';
1109
+
1110
+  (9.7ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1111
+ 
1112
+  (13.3ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1113
+  (17.5ms)  select * from information_schema.columns where table_name='superthings';
1114
+ 
1115
+  (13.8ms) select * from information_schema.columns where table_name='superthings';
1116
+
1117
+  (0.2ms) BEGIN
1118
+  (2.1ms) DROP TABLE "containers"
1119
+  (6.0ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1120
+  (2.6ms) DROP TABLE "subthing_twos"
1121
+  (2.2ms) DROP TABLE "subthing_ones"
1122
+  (2.1ms) DROP TABLE "superthings"
1123
+  (4.2ms) COMMIT
1124
+  (0.2ms) BEGIN
1125
+  (13.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1126
+  (8.2ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1127
+  (6.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1128
+  (14.2ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1129
+  (8.4ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1130
+  (5.4ms) COMMIT
1131
+  (0.9ms) BEGIN
1132
+  (3.0ms) DROP TABLE "containers"
1133
+  (6.0ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1134
+  (2.3ms) DROP TABLE "subthing_twos"
1135
+  (2.2ms) DROP TABLE "subthing_ones"
1136
+  (2.0ms) DROP TABLE "superthings"
1137
+  (4.6ms) COMMIT
1138
+  (0.5ms) BEGIN
1139
+  (6.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1140
+  (7.2ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1141
+  (7.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1142
+  (12.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1143
+  (7.1ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1144
+  (4.9ms) COMMIT
1145
+  (16.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1146
+  (28.8ms)  select * from information_schema.columns where table_name='superthings';
1147
+ 
1148
+  (15.9ms) select * from information_schema.columns where table_name='superthings';
1149
+
1150
+  (9.4ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1151
+ 
1152
+  (11.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1153
+  (16.2ms)  select * from information_schema.columns where table_name='superthings';
1154
+ 
1155
+  (13.9ms) select * from information_schema.columns where table_name='superthings';
1156
+
1157
+  (0.2ms) BEGIN
1158
+  (2.1ms) DROP TABLE "containers"
1159
+  (5.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1160
+  (2.2ms) DROP TABLE "subthing_twos"
1161
+  (2.3ms) DROP TABLE "subthing_ones"
1162
+  (2.7ms) DROP TABLE "superthings"
1163
+  (13.8ms) COMMIT
1164
+  (0.2ms) BEGIN
1165
+  (10.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1166
+  (6.5ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1167
+  (10.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1168
+  (18.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1169
+  (11.1ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1170
+  (3.9ms) COMMIT
1171
+  (32.1ms) select * from information_schema.columns where table_name='superthings';
1172
+
1173
+  (15.4ms)  select * from information_schema.columns where table_name='superthings';
1174
+ 
1175
+  (6.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1176
+  (9.9ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1177
+ 
1178
+  (13.9ms) select * from information_schema.columns where table_name='superthings';
1179
+
1180
+  (15.1ms)  select * from information_schema.columns where table_name='superthings';
1181
+ 
1182
+  (12.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1183
+  (0.3ms) BEGIN
1184
+  (2.5ms) DROP TABLE "containers"
1185
+  (4.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1186
+  (2.1ms) DROP TABLE "subthing_twos"
1187
+  (2.1ms) DROP TABLE "subthing_ones"
1188
+  (2.0ms) DROP TABLE "superthings"
1189
+  (4.0ms) COMMIT
1190
+  (0.9ms) BEGIN
1191
+  (8.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1192
+  (9.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1193
+  (9.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1194
+  (12.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1195
+  (49.7ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1196
+  (2.9ms) COMMIT
1197
+  (2.0ms) BEGIN
1198
+  (2.4ms) DROP TABLE "containers"
1199
+  (5.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1200
+  (2.4ms) DROP TABLE "subthing_twos"
1201
+  (2.3ms) DROP TABLE "subthing_ones"
1202
+  (2.2ms) DROP TABLE "superthings"
1203
+  (4.6ms) COMMIT
1204
+  (0.2ms) BEGIN
1205
+  (10.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1206
+  (7.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1207
+  (10.6ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1208
+  (23.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1209
+  (9.0ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1210
+  (3.3ms) COMMIT
1211
+  (1.3ms) BEGIN
1212
+  (2.9ms) DROP TABLE "containers"
1213
+  (5.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1214
+  (2.3ms) DROP TABLE "subthing_twos"
1215
+  (3.2ms) DROP TABLE "subthing_ones"
1216
+  (2.3ms) DROP TABLE "superthings"
1217
+  (6.8ms) COMMIT
1218
+  (0.7ms) BEGIN
1219
+  (9.2ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1220
+  (8.0ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1221
+  (6.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1222
+  (15.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1223
+  (7.1ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1224
+  (3.2ms) COMMIT
1225
+  (8.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1226
+  (22.9ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1227
+ 
1228
+  (24.1ms) select * from information_schema.columns where table_name='superthings';
1229
+
1230
+  (15.0ms)  select * from information_schema.columns where table_name='superthings';
1231
+ 
1232
+  (15.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1233
+  (14.0ms)  select * from information_schema.columns where table_name='superthings';
1234
+ 
1235
+  (15.4ms) select * from information_schema.columns where table_name='superthings';
1236
+
1237
+  (0.2ms) BEGIN
1238
+  (2.1ms) DROP TABLE "containers"
1239
+  (6.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1240
+  (2.2ms) DROP TABLE "subthing_twos"
1241
+  (2.0ms) DROP TABLE "subthing_ones"
1242
+  (2.0ms) DROP TABLE "superthings"
1243
+  (4.0ms) COMMIT
1244
+  (0.2ms) BEGIN
1245
+  (11.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1246
+  (6.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1247
+  (6.9ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1248
+  (25.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1249
+  (7.6ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1250
+  (3.2ms) COMMIT
1251
+  (1.2ms) BEGIN
1252
+  (2.9ms) DROP TABLE "containers"
1253
+  (5.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1254
+  (2.6ms) DROP TABLE "subthing_twos"
1255
+  (2.1ms) DROP TABLE "subthing_ones"
1256
+  (2.3ms) DROP TABLE "superthings"
1257
+  (4.7ms) COMMIT
1258
+  (0.5ms) BEGIN
1259
+  (6.7ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1260
+  (6.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1261
+  (6.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1262
+  (12.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1263
+  (7.6ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1264
+  (3.0ms) COMMIT
1265
+  (9.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1266
+  (29.1ms)  select * from information_schema.columns where table_name='superthings';
1267
+ 
1268
+  (13.4ms) select * from information_schema.columns where table_name='superthings';
1269
+
1270
+  (9.0ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1271
+ 
1272
+  (14.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1273
+  (19.8ms)  select * from information_schema.columns where table_name='superthings';
1274
+ 
1275
+  (15.0ms) select * from information_schema.columns where table_name='superthings';
1276
+
1277
+  (0.5ms) BEGIN
1278
+  (5.3ms) DROP TABLE "containers"
1279
+  (6.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1280
+  (2.5ms) DROP TABLE "subthing_twos"
1281
+  (2.2ms) DROP TABLE "subthing_ones"
1282
+  (2.6ms) DROP TABLE "superthings"
1283
+  (4.7ms) COMMIT
1284
+  (0.1ms) BEGIN
1285
+  (14.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1286
+  (7.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1287
+  (7.9ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1288
+  (21.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1289
+  (8.1ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1290
+  (5.3ms) COMMIT
1291
+  (2.9ms) BEGIN
1292
+  (3.3ms) DROP TABLE "containers"
1293
+  (5.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1294
+  (2.2ms) DROP TABLE "subthing_twos"
1295
+  (2.2ms) DROP TABLE "subthing_ones"
1296
+  (3.0ms) DROP TABLE "superthings"
1297
+  (4.6ms) COMMIT
1298
+  (0.6ms) BEGIN
1299
+  (8.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1300
+  (9.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1301
+  (7.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1302
+  (11.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1303
+  (6.9ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1304
+  (4.2ms) COMMIT
1305
+  (7.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1306
+  (19.7ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1307
+ 
1308
+  (24.3ms) select * from information_schema.columns where table_name='superthings';
1309
+
1310
+  (14.6ms)  select * from information_schema.columns where table_name='superthings';
1311
+ 
1312
+  (13.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1313
+  (14.2ms)  select * from information_schema.columns where table_name='superthings';
1314
+ 
1315
+  (15.4ms) select * from information_schema.columns where table_name='superthings';
1316
+
1317
+  (0.2ms) BEGIN
1318
+  (9.3ms) DROP TABLE "containers"
1319
+  (6.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1320
+  (3.4ms) DROP TABLE "subthing_twos"
1321
+  (2.3ms) DROP TABLE "subthing_ones"
1322
+  (2.4ms) DROP TABLE "superthings"
1323
+  (60.5ms) COMMIT
1324
+  (0.2ms) BEGIN
1325
+  (10.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1326
+  (18.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1327
+  (13.2ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1328
+  (13.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1329
+  (8.3ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1330
+  (3.9ms) COMMIT
1331
+  (2.0ms) BEGIN
1332
+  (2.8ms) DROP TABLE "containers"
1333
+  (5.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1334
+  (2.4ms) DROP TABLE "subthing_twos"
1335
+  (3.2ms) DROP TABLE "subthing_ones"
1336
+  (2.4ms) DROP TABLE "superthings"
1337
+  (4.4ms) COMMIT
1338
+  (0.6ms) BEGIN
1339
+  (11.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1340
+  (12.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1341
+  (7.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1342
+  (13.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1343
+  (7.2ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1344
+  (2.9ms) COMMIT
1345
+  (7.7ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1346
+  (40.6ms)  select * from information_schema.columns where table_name='superthings';
1347
+ 
1348
+  (14.7ms) select * from information_schema.columns where table_name='superthings';
1349
+
1350
+  (8.8ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1351
+ 
1352
+  (11.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1353
+  (17.1ms)  select * from information_schema.columns where table_name='superthings';
1354
+ 
1355
+  (13.8ms) select * from information_schema.columns where table_name='superthings';
1356
+
1357
+  (0.2ms) BEGIN
1358
+  (2.4ms) DROP TABLE "containers"
1359
+  (4.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1360
+  (2.0ms) DROP TABLE "subthing_twos"
1361
+  (2.0ms) DROP TABLE "subthing_ones"
1362
+  (3.0ms) DROP TABLE "superthings"
1363
+  (14.6ms) COMMIT
1364
+  (0.2ms) BEGIN
1365
+  (13.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1366
+  (8.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1367
+  (6.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1368
+  (13.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1369
+  (9.6ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1370
+  (4.1ms) COMMIT
1371
+  (31.6ms) select * from information_schema.columns where table_name='superthings';
1372
+
1373
+  (16.6ms)  select * from information_schema.columns where table_name='superthings';
1374
+ 
1375
+  (7.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1376
+  (14.0ms)  select * from information_schema.columns where table_name='superthings';
1377
+ 
1378
+  (9.4ms) select * from information_schema.constraint_column_usage where table_name='superthings';
1379
+
1380
+  (13.1ms)  select * from information_schema.columns where table_name='superthings';
1381
+ 
1382
+  (12.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1383
+  (0.4ms) BEGIN
1384
+  (2.8ms) DROP TABLE "containers"
1385
+  (4.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1386
+  (2.1ms) DROP TABLE "subthing_twos"
1387
+  (2.0ms) DROP TABLE "subthing_ones"
1388
+  (2.1ms) DROP TABLE "superthings"
1389
+  (3.9ms) COMMIT
1390
+  (0.8ms) BEGIN
1391
+  (8.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1392
+  (9.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1393
+  (6.7ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1394
+  (14.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1395
+  (7.3ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1396
+  (3.6ms) COMMIT
1397
+  (2.3ms) BEGIN
1398
+  (2.5ms) DROP TABLE "containers"
1399
+  (5.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1400
+  (2.4ms) DROP TABLE "subthing_twos"
1401
+  (2.8ms) DROP TABLE "subthing_ones"
1402
+  (2.6ms) DROP TABLE "superthings"
1403
+  (3.9ms) COMMIT
1404
+  (0.2ms) BEGIN
1405
+  (12.3ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1406
+  (11.5ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1407
+  (6.9ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1408
+  (14.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1409
+  (9.0ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1410
+  (5.3ms) COMMIT
1411
+  (3.3ms) BEGIN
1412
+  (3.2ms) DROP TABLE "containers"
1413
+  (6.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1414
+  (2.4ms) DROP TABLE "subthing_twos"
1415
+  (2.3ms) DROP TABLE "subthing_ones"
1416
+  (2.3ms) DROP TABLE "superthings"
1417
+  (4.7ms) COMMIT
1418
+  (0.6ms) BEGIN
1419
+  (9.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1420
+  (18.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1421
+  (9.4ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1422
+  (20.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1423
+  (12.0ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1424
+  (3.8ms) COMMIT
1425
+  (8.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1426
+  (17.8ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1427
+ 
1428
+  (25.7ms) select * from information_schema.columns where table_name='superthings';
1429
+
1430
+  (15.1ms)  select * from information_schema.columns where table_name='superthings';
1431
+ 
1432
+  (58.6ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1433
+  (18.5ms)  select * from information_schema.columns where table_name='superthings';
1434
+ 
1435
+  (14.7ms) select * from information_schema.columns where table_name='superthings';
1436
+
1437
+  (1.6ms) BEGIN
1438
+  (2.2ms) DROP TABLE "containers"
1439
+  (5.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1440
+  (2.8ms) DROP TABLE "subthing_twos"
1441
+  (2.9ms) DROP TABLE "subthing_ones"
1442
+  (2.3ms) DROP TABLE "superthings"
1443
+  (4.1ms) COMMIT
1444
+  (0.2ms) BEGIN
1445
+  (13.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1446
+  (19.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1447
+  (9.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1448
+  (17.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1449
+  (9.9ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1450
+  (3.9ms) COMMIT
1451
+  (1.3ms) BEGIN
1452
+  (2.9ms) DROP TABLE "containers"
1453
+  (5.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1454
+  (3.0ms) DROP TABLE "subthing_twos"
1455
+  (2.2ms) DROP TABLE "subthing_ones"
1456
+  (4.1ms) DROP TABLE "superthings"
1457
+  (4.8ms) COMMIT
1458
+  (2.5ms) BEGIN
1459
+  (8.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1460
+  (9.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1461
+  (9.9ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1462
+  (13.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1463
+  (7.8ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1464
+  (5.6ms) COMMIT
1465
+  (9.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1466
+  (29.0ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1467
+ 
1468
+  (22.7ms) select * from information_schema.columns where table_name='superthings';
1469
+
1470
+  (15.9ms)  select * from information_schema.columns where table_name='superthings';
1471
+ 
1472
+  (16.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1473
+  (15.5ms)  select * from information_schema.columns where table_name='superthings';
1474
+ 
1475
+  (22.6ms) select * from information_schema.columns where table_name='superthings';
1476
+
1477
+  (0.2ms) BEGIN
1478
+  (2.2ms) DROP TABLE "containers"
1479
+  (4.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1480
+  (2.0ms) DROP TABLE "subthing_twos"
1481
+  (3.4ms) DROP TABLE "subthing_ones"
1482
+  (3.0ms) DROP TABLE "superthings"
1483
+  (4.8ms) COMMIT
1484
+  (0.2ms) BEGIN
1485
+  (13.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1486
+  (8.6ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1487
+  (6.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1488
+  (14.4ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1489
+  (12.2ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1490
+  (6.1ms) COMMIT
1491
+  (1.7ms) BEGIN
1492
+  (3.1ms) DROP TABLE "containers"
1493
+  (5.0ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1494
+  (2.1ms) DROP TABLE "subthing_twos"
1495
+  (2.0ms) DROP TABLE "subthing_ones"
1496
+  (2.3ms) DROP TABLE "superthings"
1497
+  (5.1ms) COMMIT
1498
+  (0.7ms) BEGIN
1499
+  (7.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1500
+  (9.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1501
+  (7.1ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1502
+  (13.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1503
+  (7.3ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1504
+  (3.7ms) COMMIT
1505
+  (9.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1506
+  (20.0ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1507
+ 
1508
+  (26.0ms) select * from information_schema.columns where table_name='superthings';
1509
+
1510
+  (14.9ms)  select * from information_schema.columns where table_name='superthings';
1511
+ 
1512
+  (13.1ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1513
+  (16.9ms)  select * from information_schema.columns where table_name='superthings';
1514
+ 
1515
+  (16.0ms) select * from information_schema.columns where table_name='superthings';
1516
+
1517
+  (0.5ms) BEGIN
1518
+  (2.4ms) DROP TABLE "containers"
1519
+  (4.8ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1520
+  (2.0ms) DROP TABLE "subthing_twos"
1521
+  (2.0ms) DROP TABLE "subthing_ones"
1522
+  (2.1ms) DROP TABLE "superthings"
1523
+  (6.6ms) COMMIT
1524
+  (0.2ms) BEGIN
1525
+  (14.1ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1526
+  (6.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1527
+  (10.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1528
+  (14.9ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1529
+  (18.2ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1530
+  (3.1ms) COMMIT
1531
+  (1.2ms) BEGIN
1532
+  (3.1ms) DROP TABLE "containers"
1533
+  (6.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1534
+  (5.8ms) DROP TABLE "subthing_twos"
1535
+  (2.7ms) DROP TABLE "subthing_ones"
1536
+  (2.3ms) DROP TABLE "superthings"
1537
+  (4.5ms) COMMIT
1538
+  (0.7ms) BEGIN
1539
+  (13.5ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1540
+  (8.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1541
+  (11.0ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1542
+  (13.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1543
+  (10.1ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1544
+  (3.8ms) COMMIT
1545
+  (6.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1546
+  (31.6ms)  select * from information_schema.columns where table_name='superthings';
1547
+ 
1548
+  (17.8ms) select * from information_schema.columns where table_name='superthings';
1549
+
1550
+  (11.1ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1551
+ 
1552
+  (15.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1553
+  (17.7ms)  select * from information_schema.columns where table_name='superthings';
1554
+ 
1555
+  (16.2ms) select * from information_schema.columns where table_name='superthings';
1556
+
1557
+  (2.7ms) BEGIN
1558
+  (3.3ms) DROP TABLE "containers"
1559
+  (6.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1560
+  (2.3ms) DROP TABLE "subthing_twos"
1561
+  (2.1ms) DROP TABLE "subthing_ones"
1562
+  (2.1ms) DROP TABLE "superthings"
1563
+  (4.5ms) COMMIT
1564
+  (0.2ms) BEGIN
1565
+  (9.9ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1566
+  (8.9ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1567
+  (7.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1568
+  (17.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1569
+  (9.2ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1570
+  (4.2ms) COMMIT
1571
+  (0.4ms) BEGIN
1572
+  (2.6ms) DROP TABLE "containers"
1573
+  (4.9ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1574
+  (2.1ms) DROP TABLE "subthing_twos"
1575
+  (2.3ms) DROP TABLE "subthing_ones"
1576
+  (2.1ms) DROP TABLE "superthings"
1577
+  (4.7ms) COMMIT
1578
+  (0.7ms) BEGIN
1579
+  (10.4ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1580
+  (9.7ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1581
+  (7.1ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1582
+  (14.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1583
+  (8.3ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1584
+  (4.0ms) COMMIT
1585
+  (9.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1586
+  (26.7ms)  select * from information_schema.columns where table_name='superthings';
1587
+ 
1588
+  (14.7ms) select * from information_schema.constraint_column_usage where table_name='superthings';
1589
+
1590
+  (17.8ms)  select * from information_schema.columns where table_name='superthings';
1591
+ 
1592
+  (14.0ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1593
+  (14.9ms)  select * from information_schema.columns where table_name='superthings';
1594
+ 
1595
+  (14.6ms) select * from information_schema.columns where table_name='superthings';
1596
+
1597
+  (0.2ms) BEGIN
1598
+  (2.1ms) DROP TABLE "containers"
1599
+  (5.1ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1600
+  (2.1ms) DROP TABLE "subthing_twos"
1601
+  (3.3ms) DROP TABLE "subthing_ones"
1602
+  (2.3ms) DROP TABLE "superthings"
1603
+  (3.9ms) COMMIT
1604
+  (0.2ms) BEGIN
1605
+  (26.6ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1606
+  (6.4ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1607
+  (9.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1608
+  (21.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1609
+  (17.8ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1610
+  (3.6ms) COMMIT
1611
+  (37.1ms) select * from information_schema.columns where table_name='superthings';
1612
+
1613
+  (15.0ms)  select * from information_schema.columns where table_name='superthings';
1614
+ 
1615
+  (7.3ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1616
+  (16.1ms)  select * from information_schema.columns where table_name='superthings';
1617
+ 
1618
+  (14.5ms) select * from information_schema.columns where table_name='superthings';
1619
+
1620
+  (9.0ms)  select * from information_schema.constraint_column_usage where table_name='superthings';
1621
+ 
1622
+  (17.5ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1623
+  (0.4ms) BEGIN
1624
+  (2.5ms) DROP TABLE "containers"
1625
+  (5.2ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1626
+  (2.1ms) DROP TABLE "subthing_twos"
1627
+  (2.1ms) DROP TABLE "subthing_ones"
1628
+  (2.0ms) DROP TABLE "superthings"
1629
+  (4.1ms) COMMIT
1630
+  (0.8ms) BEGIN
1631
+  (7.1ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1632
+  (10.8ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1633
+  (32.3ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1634
+  (14.7ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1635
+  (10.9ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1636
+  (26.5ms) COMMIT
1637
+  (12.8ms) BEGIN
1638
+  (2.3ms) DROP TABLE "containers"
1639
+  (5.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1640
+  (2.7ms) DROP TABLE "subthing_twos"
1641
+  (2.3ms) DROP TABLE "subthing_ones"
1642
+  (2.4ms) DROP TABLE "superthings"
1643
+  (4.0ms) COMMIT
1644
+  (0.2ms) BEGIN
1645
+  (25.0ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1646
+  (20.1ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1647
+  (12.8ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1648
+  (38.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1649
+  (12.4ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1650
+  (9.4ms) COMMIT
1651
+  (0.3ms) BEGIN
1652
+  (4.2ms) DROP TABLE "containers"
1653
+  (10.5ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1654
+  (3.1ms) DROP TABLE "subthing_twos"
1655
+  (2.5ms) DROP TABLE "subthing_ones"
1656
+  (3.6ms) DROP TABLE "superthings"
1657
+  (17.9ms) COMMIT
1658
+  (0.8ms) BEGIN
1659
+  (10.8ms) CREATE TABLE "superthings" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1660
+  (10.3ms) CREATE TABLE "subthing_ones" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp) 
1661
+  (15.9ms) CREATE TABLE "subthing_twos" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1662
+  (13.8ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1663
+  (9.3ms) CREATE TABLE "containers" ("id" serial primary key, "content" text, "created_at" timestamp, "updated_at" timestamp)
1664
+  (3.3ms) COMMIT
1665
+  (12.6ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1666
+  (31.8ms)  select * from information_schema.columns where table_name='superthings';
1667
+ 
1668
+  (19.7ms) select * from information_schema.constraint_column_usage where table_name='superthings';
1669
+
1670
+  (26.9ms)  select * from information_schema.columns where table_name='superthings';
1671
+ 
1672
+  (36.3ms) ALTER TABLE superthings ADD COLUMN subthing_ones_id BIGINT NOT NULL UNIQUE REFERENCES subthing_ones(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD COLUMN subthing_twos_id BIGINT NOT NULL UNIQUE REFERENCES subthing_twos(id) DEFERRABLE INITIALLY DEFERRED;ALTER TABLE superthings ADD CONSTRAINT superthings_xor CHECK ( (subthing_ones_id IS NOT NULL)::INTEGER + (subthing_twos_id IS NOT NULL)::INTEGER = 1 );ALTER TABLE subthing_ones ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_ones_id) DEFERRABLE INITIALLY DEFERRED ;ALTER TABLE subthing_twos ADD CONSTRAINT id_fkey FOREIGN KEY(id) REFERENCES superthings(subthing_twos_id) DEFERRABLE INITIALLY DEFERRED ;
1673
+  (42.5ms)  select * from information_schema.columns where table_name='superthings';
1674
+ 
1675
+  (55.6ms) select * from information_schema.columns where table_name='superthings';
1676
+
1677
+  (0.2ms) BEGIN
1678
+  (2.4ms) DROP TABLE "containers"
1679
+  (11.4ms) ALTER TABLE subthing_ones DROP CONSTRAINT id_fkey;ALTER TABLE subthing_twos DROP CONSTRAINT id_fkey;ALTER TABLE superthings DROP CONSTRAINT superthings_xor;ALTER TABLE superthings DROP COLUMN subthing_ones_id;ALTER TABLE superthings DROP COLUMN subthing_twos_id;
1680
+  (15.2ms) DROP TABLE "subthing_twos"
1681
+  (5.8ms) DROP TABLE "subthing_ones"
1682
+  (5.3ms) DROP TABLE "superthings"
1683
+  (16.9ms) COMMIT