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.
- checksums.yaml +4 -4
- data/README.md +40 -29
- data/lib/generators/makers/{install_generator.rb → install/install_generator.rb} +1 -1
- data/lib/generators/makers/{templates → install/templates}/definitions.rb +0 -0
- data/lib/makers.rb +0 -1
- data/lib/makers/dsl/maker.rb +2 -2
- data/lib/makers/extensions/active_support/test_case.rb +1 -0
- data/lib/makers/proxy.rb +1 -1
- data/lib/makers/railtie.rb +10 -2
- data/lib/makers/version.rb +1 -1
- data/test/dummy/app/assets/javascripts/application.js +2 -2
- data/test/dummy/app/assets/stylesheets/application.css +1 -1
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/bin/bundle +0 -0
- data/test/dummy/bin/rails +1 -1
- data/test/dummy/bin/rake +0 -0
- data/test/dummy/bin/setup +1 -1
- data/test/dummy/config.ru +1 -1
- data/test/dummy/config/initializers/cookies_serializer.rb +1 -1
- data/test/dummy/config/initializers/mime_types.rb +1 -1
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/dummy/config/secrets.yml +2 -2
- data/test/dummy/db/migrate/20140613221835_create_users.rb +2 -0
- data/test/dummy/db/migrate/20140615180954_create_posts.rb +2 -0
- data/test/dummy/public/404.html +57 -63
- data/test/dummy/public/422.html +57 -63
- data/test/dummy/public/500.html +56 -62
- data/test/generator_test.rb +1 -1
- data/test/{makers_test.rb → maker_test.rb} +1 -1
- metadata +6 -14
- data/test/dummy/app/models/group.rb +0 -2
- data/test/dummy/db/schema.rb +0 -57
- data/test/dummy/log/development.log +0 -176
- data/test/dummy/log/test.log +0 -1529
data/test/dummy/public/422.html
CHANGED
@@ -1,67 +1,61 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
-
|
65
|
-
</div>
|
66
|
-
</body>
|
60
|
+
</body>
|
67
61
|
</html>
|
data/test/dummy/public/500.html
CHANGED
@@ -1,66 +1,60 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<
|
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
|
-
|
64
|
-
</div>
|
65
|
-
</body>
|
59
|
+
</body>
|
66
60
|
</html>
|
data/test/generator_test.rb
CHANGED
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.
|
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
|
+
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/
|
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/
|
174
|
+
- test/maker_test.rb
|
183
175
|
- test/test_helper.rb
|
data/test/dummy/db/schema.rb
DELETED
@@ -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
|
-
[1m[36m (26.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
-
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
-
Migrating to CreateUsers (20140613221835)
|
5
|
-
[1m[35m (0.2ms)[0m 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
|
-
[1m[36m (20.8ms)[0m [1mCREATE 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) [0m
|
8
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
|
9
|
-
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
10
|
-
Migrating to CreatePosts (20140615180954)
|
11
|
-
[1m[35m (6.0ms)[0m 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
|
-
[1m[36m (12.8ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "content" character varying, "user_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
|
14
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
|
15
|
-
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
16
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
17
|
-
[1m[36m (1.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[0m
|
29
|
-
[1m[35m (1.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
42
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
43
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
-
Migrating to CreateUsers (20140613221835)
|
45
|
-
[1m[35m (0.2ms)[0m BEGIN
|
46
|
-
[1m[36m (2.5ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "username" character varying, "name" character varying, "email" character varying, "age" integer, "phone" integer) [0m
|
47
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
|
48
|
-
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
49
|
-
Migrating to CreatePosts (20140615180954)
|
50
|
-
[1m[35m (0.2ms)[0m BEGIN
|
51
|
-
[1m[36m (1.9ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "content" character varying, "user_id" integer) [0m
|
52
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
|
53
|
-
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
54
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
55
|
-
[1m[36m (1.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[0m
|
67
|
-
[1m[35m (1.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
80
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
81
|
-
[1m[36m (1.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[0m
|
93
|
-
[1m[35m (1.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
106
|
-
Migrating to CreateUsers (20140613221835)
|
107
|
-
[1m[35m (0.2ms)[0m BEGIN
|
108
|
-
[1m[36m (25.3ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "username" character varying, "name" character varying, "email" character varying, "age" integer, "phone" integer) [0m
|
109
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
|
110
|
-
[1m[36m (12.7ms)[0m [1mCOMMIT[0m
|
111
|
-
Migrating to CreatePosts (20140615180954)
|
112
|
-
[1m[35m (6.0ms)[0m BEGIN
|
113
|
-
[1m[36m (7.1ms)[0m [1mCREATE TABLE "posts" ("id" serial primary key, "user_id" integer) [0m
|
114
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
|
115
|
-
[1m[36m (6.1ms)[0m [1mCOMMIT[0m
|
116
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
117
|
-
[1m[36m (1.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[0m
|
129
|
-
[1m[35m (1.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[1m[36m (1.5ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[0m
|
153
|
-
[1m[35m (1.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[1m[36m (2.5ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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
|
-
[0m
|