makers 0.2.0 → 4.0.0.0

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -29
  3. data/lib/generators/makers/{install_generator.rb → install/install_generator.rb} +1 -1
  4. data/lib/generators/makers/{templates → install/templates}/definitions.rb +0 -0
  5. data/lib/makers.rb +0 -1
  6. data/lib/makers/dsl/maker.rb +2 -2
  7. data/lib/makers/extensions/active_support/test_case.rb +1 -0
  8. data/lib/makers/proxy.rb +1 -1
  9. data/lib/makers/railtie.rb +10 -2
  10. data/lib/makers/version.rb +1 -1
  11. data/test/dummy/app/assets/javascripts/application.js +2 -2
  12. data/test/dummy/app/assets/stylesheets/application.css +1 -1
  13. data/test/dummy/app/models/post.rb +2 -0
  14. data/test/dummy/app/models/user.rb +2 -0
  15. data/test/dummy/bin/bundle +0 -0
  16. data/test/dummy/bin/rails +1 -1
  17. data/test/dummy/bin/rake +0 -0
  18. data/test/dummy/bin/setup +1 -1
  19. data/test/dummy/config.ru +1 -1
  20. data/test/dummy/config/initializers/cookies_serializer.rb +1 -1
  21. data/test/dummy/config/initializers/mime_types.rb +1 -1
  22. data/test/dummy/config/initializers/session_store.rb +1 -1
  23. data/test/dummy/config/secrets.yml +2 -2
  24. data/test/dummy/db/migrate/20140613221835_create_users.rb +2 -0
  25. data/test/dummy/db/migrate/20140615180954_create_posts.rb +2 -0
  26. data/test/dummy/public/404.html +57 -63
  27. data/test/dummy/public/422.html +57 -63
  28. data/test/dummy/public/500.html +56 -62
  29. data/test/generator_test.rb +1 -1
  30. data/test/{makers_test.rb → maker_test.rb} +1 -1
  31. metadata +6 -14
  32. data/test/dummy/app/models/group.rb +0 -2
  33. data/test/dummy/db/schema.rb +0 -57
  34. data/test/dummy/log/development.log +0 -176
  35. data/test/dummy/log/test.log +0 -1529
@@ -1,67 +1,61 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+ div.dialog {
15
+ width: 95%;
16
+ max-width: 33em;
17
+ margin: 4em auto 0;
18
+ }
19
+ div.dialog > div {
20
+ border: 1px solid #CCC;
21
+ border-right-color: #999;
22
+ border-left-color: #999;
23
+ border-bottom-color: #BBB;
24
+ border-top: #B00100 solid 4px;
25
+ border-top-left-radius: 9px;
26
+ border-top-right-radius: 9px;
27
+ background-color: white;
28
+ padding: 7px 12% 0;
29
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
30
+ }
31
+ h1 {
32
+ font-size: 100%;
33
+ color: #730E15;
34
+ line-height: 1.5em;
35
+ }
36
+ div.dialog > p {
37
+ margin: 0 0 1em;
38
+ padding: 1em;
39
+ background-color: #F7F7F7;
40
+ border: 1px solid #CCC;
41
+ border-right-color: #999;
42
+ border-left-color: #999;
43
+ border-bottom-color: #999;
44
+ border-bottom-left-radius: 4px;
45
+ border-bottom-right-radius: 4px;
46
+ border-top-color: #DADADA;
47
+ color: #666;
48
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
49
+ }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <div class="dialog">
54
+ <div>
55
+ <h1>The change you wanted was rejected.</h1>
56
+ <p>Maybe you tried to change something you didn't have access to.</p>
57
+ </div>
58
+ <p>If you are the application owner check the logs for more information.</p>
63
59
  </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
60
+ </body>
67
61
  </html>
@@ -1,66 +1,60 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+ div.dialog {
15
+ width: 95%;
16
+ max-width: 33em;
17
+ margin: 4em auto 0;
18
+ }
19
+ div.dialog > div {
20
+ border: 1px solid #CCC;
21
+ border-right-color: #999;
22
+ border-left-color: #999;
23
+ border-bottom-color: #BBB;
24
+ border-top: #B00100 solid 4px;
25
+ border-top-left-radius: 9px;
26
+ border-top-right-radius: 9px;
27
+ background-color: white;
28
+ padding: 7px 12% 0;
29
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
30
+ }
31
+ h1 {
32
+ font-size: 100%;
33
+ color: #730E15;
34
+ line-height: 1.5em;
35
+ }
36
+ div.dialog > p {
37
+ margin: 0 0 1em;
38
+ padding: 1em;
39
+ background-color: #F7F7F7;
40
+ border: 1px solid #CCC;
41
+ border-right-color: #999;
42
+ border-left-color: #999;
43
+ border-bottom-color: #999;
44
+ border-bottom-left-radius: 4px;
45
+ border-bottom-right-radius: 4px;
46
+ border-top-color: #DADADA;
47
+ color: #666;
48
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
49
+ }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <div class="dialog">
54
+ <div>
55
+ <h1>We're sorry, but something went wrong.</h1>
56
+ </div>
57
+ <p>If you are the application owner check the logs for more information.</p>
62
58
  </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
59
+ </body>
66
60
  </html>
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
  require 'rails/generators'
3
- require 'generators/makers/install_generator'
3
+ require 'generators/makers/install/install_generator'
4
4
 
5
5
  class GeneratorTest < Rails::Generators::TestCase
6
6
  destination Rails.root.join('tmp')
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class MakersTest < ActiveSupport::TestCase
3
+ class MakerTest < ActiveSupport::TestCase
4
4
 
5
5
  test 'overrides' do
6
6
  assert_equal 'other', build(:user, name: 'other').name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 4.0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -54,8 +54,8 @@ files:
54
54
  - MIT-LICENSE
55
55
  - README.md
56
56
  - Rakefile
57
- - lib/generators/makers/install_generator.rb
58
- - lib/generators/makers/templates/definitions.rb
57
+ - lib/generators/makers/install/install_generator.rb
58
+ - lib/generators/makers/install/templates/definitions.rb
59
59
  - lib/makers.rb
60
60
  - lib/makers/definitions.rb
61
61
  - lib/makers/dsl/maker.rb
@@ -69,7 +69,6 @@ files:
69
69
  - test/dummy/app/assets/stylesheets/application.css
70
70
  - test/dummy/app/controllers/application_controller.rb
71
71
  - test/dummy/app/helpers/application_helper.rb
72
- - test/dummy/app/models/group.rb
73
72
  - test/dummy/app/models/post.rb
74
73
  - test/dummy/app/models/user.rb
75
74
  - test/dummy/app/views/layouts/application.html.erb
@@ -99,16 +98,13 @@ files:
99
98
  - test/dummy/config/secrets.yml
100
99
  - test/dummy/db/migrate/20140613221835_create_users.rb
101
100
  - test/dummy/db/migrate/20140615180954_create_posts.rb
102
- - test/dummy/db/schema.rb
103
- - test/dummy/log/development.log
104
- - test/dummy/log/test.log
105
101
  - test/dummy/public/404.html
106
102
  - test/dummy/public/422.html
107
103
  - test/dummy/public/500.html
108
104
  - test/dummy/public/favicon.ico
109
105
  - test/dummy/test/makers.rb
110
106
  - test/generator_test.rb
111
- - test/makers_test.rb
107
+ - test/maker_test.rb
112
108
  - test/test_helper.rb
113
109
  homepage: https://github.com/mmontossi/makers
114
110
  licenses:
@@ -139,7 +135,6 @@ test_files:
139
135
  - test/dummy/app/assets/stylesheets/application.css
140
136
  - test/dummy/app/controllers/application_controller.rb
141
137
  - test/dummy/app/helpers/application_helper.rb
142
- - test/dummy/app/models/group.rb
143
138
  - test/dummy/app/models/post.rb
144
139
  - test/dummy/app/models/user.rb
145
140
  - test/dummy/app/views/layouts/application.html.erb
@@ -169,9 +164,6 @@ test_files:
169
164
  - test/dummy/config.ru
170
165
  - test/dummy/db/migrate/20140613221835_create_users.rb
171
166
  - test/dummy/db/migrate/20140615180954_create_posts.rb
172
- - test/dummy/db/schema.rb
173
- - test/dummy/log/development.log
174
- - test/dummy/log/test.log
175
167
  - test/dummy/public/404.html
176
168
  - test/dummy/public/422.html
177
169
  - test/dummy/public/500.html
@@ -179,5 +171,5 @@ test_files:
179
171
  - test/dummy/Rakefile
180
172
  - test/dummy/test/makers.rb
181
173
  - test/generator_test.rb
182
- - test/makers_test.rb
174
+ - test/maker_test.rb
183
175
  - test/test_helper.rb
@@ -1,2 +0,0 @@
1
- class Group < ActiveRecord::Base
2
- end
@@ -1,57 +0,0 @@
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: 20161115150024) do
15
-
16
- # These are extensions that must be enabled in order to support this database
17
- enable_extension "plpgsql"
18
-
19
- create_table "exchanges", force: :cascade do |t|
20
- t.string "service", limit: 30
21
- t.string "from", limit: 3
22
- t.string "to", limit: 3
23
- t.decimal "rate", precision: 24, scale: 12
24
- t.datetime "created_at", null: false
25
- t.datetime "updated_at", null: false
26
- end
27
-
28
- add_index "exchanges", ["from", "to"], name: "index_exchanges_on_from_and_to", using: :btree
29
-
30
- create_table "plans", force: :cascade do |t|
31
- t.decimal "monthly_price", precision: 24, scale: 6
32
- t.decimal "annually_price", precision: 24, scale: 6
33
- t.string "currency", limit: 3
34
- t.datetime "created_at", null: false
35
- t.datetime "updated_at", null: false
36
- end
37
-
38
- create_table "posts", force: :cascade do |t|
39
- t.integer "user_id"
40
- end
41
-
42
- create_table "products", force: :cascade do |t|
43
- t.decimal "price", precision: 24, scale: 6
44
- t.string "price_currency", limit: 3
45
- t.datetime "created_at", null: false
46
- t.datetime "updated_at", null: false
47
- end
48
-
49
- create_table "users", force: :cascade do |t|
50
- t.string "username"
51
- t.string "name"
52
- t.string "email"
53
- t.integer "age"
54
- t.integer "phone"
55
- end
56
-
57
- end
@@ -1,176 +0,0 @@
1
-  (26.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateUsers (20140613221835)
5
-  (0.2ms) BEGIN
6
- DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/Matt/Documents/Github/Makers/test/dummy/db/migrate/20140613221835_create_users.rb:10)
7
-  (20.8ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying, "name" character varying, "email" character varying, "age" integer, "phone" integer, "created_at" timestamp, "updated_at" timestamp) 
8
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
9
-  (6.3ms) COMMIT
10
- Migrating to CreatePosts (20140615180954)
11
-  (6.0ms) BEGIN
12
- DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/Matt/Documents/Github/Makers/test/dummy/db/migrate/20140615180954_create_posts.rb:7)
13
-  (12.8ms) CREATE TABLE "posts" ("id" serial primary key, "content" character varying, "user_id" integer, "created_at" timestamp, "updated_at" timestamp) 
14
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
15
-  (0.5ms) COMMIT
16
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
-  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
18
- FROM pg_constraint c
19
- JOIN pg_class t1 ON c.conrelid = t1.oid
20
- JOIN pg_class t2 ON c.confrelid = t2.oid
21
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
22
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
23
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
24
- WHERE c.contype = 'f'
25
- AND t1.relname = 'posts'
26
- AND t3.nspname = ANY (current_schemas(false))
27
- ORDER BY c.conname
28
- 
29
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
30
- FROM pg_constraint c
31
- JOIN pg_class t1 ON c.conrelid = t1.oid
32
- JOIN pg_class t2 ON c.confrelid = t2.oid
33
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
34
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
35
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
36
- WHERE c.contype = 'f'
37
- AND t1.relname = 'users'
38
- AND t3.nspname = ANY (current_schemas(false))
39
- ORDER BY c.conname
40
-
41
-  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
42
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
43
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
- Migrating to CreateUsers (20140613221835)
45
-  (0.2ms) BEGIN
46
-  (2.5ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying, "name" character varying, "email" character varying, "age" integer, "phone" integer) 
47
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
48
-  (0.5ms) COMMIT
49
- Migrating to CreatePosts (20140615180954)
50
-  (0.2ms) BEGIN
51
-  (1.9ms) CREATE TABLE "posts" ("id" serial primary key, "content" character varying, "user_id" integer) 
52
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
53
-  (0.4ms) COMMIT
54
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
55
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
56
- FROM pg_constraint c
57
- JOIN pg_class t1 ON c.conrelid = t1.oid
58
- JOIN pg_class t2 ON c.confrelid = t2.oid
59
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
60
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
61
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
62
- WHERE c.contype = 'f'
63
- AND t1.relname = 'posts'
64
- AND t3.nspname = ANY (current_schemas(false))
65
- ORDER BY c.conname
66
- 
67
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
68
- FROM pg_constraint c
69
- JOIN pg_class t1 ON c.conrelid = t1.oid
70
- JOIN pg_class t2 ON c.confrelid = t2.oid
71
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
72
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
73
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
74
- WHERE c.contype = 'f'
75
- AND t1.relname = 'users'
76
- AND t3.nspname = ANY (current_schemas(false))
77
- ORDER BY c.conname
78
-
79
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
81
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
82
- FROM pg_constraint c
83
- JOIN pg_class t1 ON c.conrelid = t1.oid
84
- JOIN pg_class t2 ON c.confrelid = t2.oid
85
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
86
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
87
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
88
- WHERE c.contype = 'f'
89
- AND t1.relname = 'posts'
90
- AND t3.nspname = ANY (current_schemas(false))
91
- ORDER BY c.conname
92
- 
93
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
94
- FROM pg_constraint c
95
- JOIN pg_class t1 ON c.conrelid = t1.oid
96
- JOIN pg_class t2 ON c.confrelid = t2.oid
97
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
98
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
99
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
100
- WHERE c.contype = 'f'
101
- AND t1.relname = 'users'
102
- AND t3.nspname = ANY (current_schemas(false))
103
- ORDER BY c.conname
104
-
105
- ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
106
- Migrating to CreateUsers (20140613221835)
107
-  (0.2ms) BEGIN
108
-  (25.3ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying, "name" character varying, "email" character varying, "age" integer, "phone" integer) 
109
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
110
-  (12.7ms) COMMIT
111
- Migrating to CreatePosts (20140615180954)
112
-  (6.0ms) BEGIN
113
-  (7.1ms) CREATE TABLE "posts" ("id" serial primary key, "user_id" integer) 
114
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
115
-  (6.1ms) COMMIT
116
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
117
-  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
118
- FROM pg_constraint c
119
- JOIN pg_class t1 ON c.conrelid = t1.oid
120
- JOIN pg_class t2 ON c.confrelid = t2.oid
121
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
122
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
123
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
124
- WHERE c.contype = 'f'
125
- AND t1.relname = 'exchanges'
126
- AND t3.nspname = ANY (current_schemas(false))
127
- ORDER BY c.conname
128
- 
129
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
130
- FROM pg_constraint c
131
- JOIN pg_class t1 ON c.conrelid = t1.oid
132
- JOIN pg_class t2 ON c.confrelid = t2.oid
133
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
134
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
135
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
136
- WHERE c.contype = 'f'
137
- AND t1.relname = 'plans'
138
- AND t3.nspname = ANY (current_schemas(false))
139
- ORDER BY c.conname
140
-
141
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
142
- FROM pg_constraint c
143
- JOIN pg_class t1 ON c.conrelid = t1.oid
144
- JOIN pg_class t2 ON c.confrelid = t2.oid
145
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
146
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
147
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
148
- WHERE c.contype = 'f'
149
- AND t1.relname = 'posts'
150
- AND t3.nspname = ANY (current_schemas(false))
151
- ORDER BY c.conname
152
- 
153
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
154
- FROM pg_constraint c
155
- JOIN pg_class t1 ON c.conrelid = t1.oid
156
- JOIN pg_class t2 ON c.confrelid = t2.oid
157
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
158
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
159
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
160
- WHERE c.contype = 'f'
161
- AND t1.relname = 'products'
162
- AND t3.nspname = ANY (current_schemas(false))
163
- ORDER BY c.conname
164
-
165
-  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
166
- FROM pg_constraint c
167
- JOIN pg_class t1 ON c.conrelid = t1.oid
168
- JOIN pg_class t2 ON c.confrelid = t2.oid
169
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
170
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
171
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
172
- WHERE c.contype = 'f'
173
- AND t1.relname = 'users'
174
- AND t3.nspname = ANY (current_schemas(false))
175
- ORDER BY c.conname
176
-