makers 4.0.0.0 → 4.0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e78fc8b34311d64cff23b79b1232d24cf4d230e6
4
- data.tar.gz: 11ade66cbe89b1cf259c6f27e750b2f099ed7d3c
3
+ metadata.gz: 6636e08fd15765ebe870551dd2818dbc413e3c41
4
+ data.tar.gz: 803dc93ec36201f4b3d244c5993a331208a42811
5
5
  SHA512:
6
- metadata.gz: 4482615e34ef62932354bf9d665705705ed5411b84bfe143c23edf724cd98476640906e083ab16327ba6813351e098d69b83ee19f941b237515f6554513d1e70
7
- data.tar.gz: a60586dea2e74e1a30853d5dbb1c3e7982e3c7a60ad178578a5cca1fe8eb91211c1ec86b081d73fd097c251697ad5fec1a25db1fb050d10ba194e30665a3a584
6
+ metadata.gz: 4d3f52a3fe0b13a1a445d485601c2991e043e322047387df65ad5362838e948a64d971a38469d5897cd2b5a9352a4a919df83c1ac678dcac63c23e6cb66f28e6
7
+ data.tar.gz: 2b944cf935595656330ab7f88ae05fdebb74c74c7f16d7855dcdf2b36c487cb71a39249a088467a57385d3644932c1c58178af0b5da40aad892d1bc03c330649
@@ -1,12 +1,8 @@
1
1
  module Makers
2
2
  class Definitions
3
3
 
4
- def contains?(name)
5
- registry.has_key? name
6
- end
7
-
8
4
  def find(name)
9
- if contains?(name)
5
+ if registry.has_key?(name)
10
6
  registry[name]
11
7
  else
12
8
  raise "Definition #{name} not found"
@@ -16,7 +12,7 @@ module Makers
16
12
  def add(names, *args)
17
13
  maker = Maker.new(*args)
18
14
  names.each do |name|
19
- if contains?(name)
15
+ if registry.has_key?(name)
20
16
  raise "Maker #{name} already registered"
21
17
  else
22
18
  registry[name] = maker
@@ -7,17 +7,22 @@ module Makers
7
7
  @options = options.reverse_merge(class_name: name.to_s.classify)
8
8
  @class = @options[:class_name].constantize
9
9
  @assignments = {}
10
+ @associations = {}
11
+ @sequences = {}
10
12
  if block_given?
11
13
  instance_eval &block
12
14
  end
13
15
  Makers.definitions.add(
14
16
  [@name] + Array(@options[:aliases]),
15
- @options,
16
- @assignments
17
+ @assignments,
18
+ @associations,
19
+ @sequences,
20
+ @options
17
21
  )
18
22
  end
19
23
 
20
24
  def maker(name, overrides={}, &block)
25
+ byebug unless @options.is_a?(Hash)
21
26
  options = @options.dup
22
27
  options.delete :aliases
23
28
  options.merge! overrides
@@ -37,26 +42,32 @@ module Makers
37
42
  index += 1
38
43
  }
39
44
  end
45
+ @sequences[name] = index
40
46
  end
41
47
 
42
48
  def association(name, *args)
43
49
  options = args.extract_options!
44
- name = (options[:maker] || name)
45
- strategy = (options[:strategy] || :build)
46
- case @class.reflections[name.to_s].macro
50
+ lookup = (options[:maker] || name)
51
+ action = (options[:strategy] || :build)
52
+ reflection = @class.reflections[name.to_s]
53
+ class_name = @class.name
54
+ case reflection.macro
47
55
  when :belongs_to,:has_one
48
56
  @assignments[name] = -> {
49
- maker = Makers.definitions.find(name)
50
- maker.send strategy
57
+ maker = Makers.definitions.find(lookup).dup
58
+ maker.disabled_association = class_name
59
+ maker.send action
51
60
  }
52
61
  when :has_many
53
62
  @assignments[name] = -> {
54
- maker = Makers.definitions.find(name.to_s.singularize.to_sym)
63
+ maker = Makers.definitions.find(lookup.to_s.singularize.to_sym).dup
64
+ maker.disabled_association = class_name
55
65
  (args.first || 1).times.map do
56
- maker.send strategy
66
+ maker.send action
57
67
  end
58
68
  }
59
69
  end
70
+ @associations[name] = reflection.class_name
60
71
  end
61
72
 
62
73
  def method_missing(name, *args, &block)
@@ -1,12 +1,14 @@
1
1
  module Makers
2
2
  class Maker
3
3
 
4
- attr_reader :options, :assignments, :object
4
+ attr_reader :assignments, :associations, :sequences, :options
5
+ attr_accessor :disabled_association
5
6
 
6
- def initialize(options, assignments)
7
- @options = options
7
+ def initialize(assignments, associations, sequences, options)
8
8
  @assignments = assignments
9
- @object = build_object
9
+ @associations = associations
10
+ @sequences = sequences
11
+ @options = options
10
12
  end
11
13
 
12
14
  %w(build create).each do |name|
@@ -26,11 +28,23 @@ module Makers
26
28
  end
27
29
 
28
30
  def attributes
29
- hash = {}
31
+ all = assignments
30
32
  if options.has_key?(:parent)
31
- hash.merge! Makers.definitions.find(options[:parent]).attributes
33
+ all.reverse_merge! Makers.definitions.find(options[:parent]).assignments
34
+ end
35
+ if disabled_association
36
+ associations.each do |name, class_name|
37
+ if disabled_association == class_name
38
+ all[name] = -> { nil }
39
+ end
40
+ end
32
41
  end
33
- assignments.keys.each do |name|
42
+ object = Object.new
43
+ all.each do |name, block|
44
+ object.define_singleton_method name, &block
45
+ end
46
+ hash = {}
47
+ all.keys.each do |name|
34
48
  hash[name] = object.send(name)
35
49
  end
36
50
  hash
@@ -52,13 +66,5 @@ module Makers
52
66
  instance
53
67
  end
54
68
 
55
- def build_object
56
- klass = Class.new
57
- assignments.each do |name, logic|
58
- klass.send :define_method, name, &logic
59
- end
60
- klass.new
61
- end
62
-
63
69
  end
64
70
  end
@@ -1,5 +1,5 @@
1
1
  module Makers
2
2
 
3
- VERSION = '4.0.0.0'
3
+ VERSION = '4.0.0.1'
4
4
 
5
5
  end
@@ -0,0 +1,37 @@
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: 20140615180954) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
18
+
19
+ create_table "posts", force: :cascade do |t|
20
+ t.integer "user_id"
21
+ t.integer "mentionable_id"
22
+ t.string "mentionable_type"
23
+ t.datetime "created_at", null: false
24
+ t.datetime "updated_at", null: false
25
+ end
26
+
27
+ create_table "users", force: :cascade do |t|
28
+ t.string "username"
29
+ t.string "name"
30
+ t.string "email"
31
+ t.integer "age"
32
+ t.integer "phone"
33
+ t.datetime "created_at", null: false
34
+ t.datetime "updated_at", null: false
35
+ end
36
+
37
+ end
@@ -0,0 +1,38 @@
1
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateUsers (20140613221835)
5
+  (0.1ms) BEGIN
6
+  (2.6ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying, "name" character varying, "email" character varying, "age" integer, "phone" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
7
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
8
+  (6.4ms) COMMIT
9
+ Migrating to CreatePosts (20140615180954)
10
+  (6.2ms) BEGIN
11
+  (12.6ms) CREATE TABLE "posts" ("id" serial primary key, "user_id" integer, "mentionable_id" integer, "mentionable_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
12
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
13
+  (0.5ms) COMMIT
14
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
15
+  (1.8ms) 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
16
+ FROM pg_constraint c
17
+ JOIN pg_class t1 ON c.conrelid = t1.oid
18
+ JOIN pg_class t2 ON c.confrelid = t2.oid
19
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
20
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
21
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
22
+ WHERE c.contype = 'f'
23
+ AND t1.relname = 'posts'
24
+ AND t3.nspname = ANY (current_schemas(false))
25
+ ORDER BY c.conname
26
+ 
27
+  (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
28
+ FROM pg_constraint c
29
+ JOIN pg_class t1 ON c.conrelid = t1.oid
30
+ JOIN pg_class t2 ON c.confrelid = t2.oid
31
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
32
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
33
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
34
+ WHERE c.contype = 'f'
35
+ AND t1.relname = 'users'
36
+ AND t3.nspname = ANY (current_schemas(false))
37
+ ORDER BY c.conname
38
+
@@ -0,0 +1,922 @@
1
+ ActiveRecord::SchemaMigration Load (25.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (0.2ms) BEGIN
3
+ -------------------------
4
+ MakerTest: test_sequences
5
+ -------------------------
6
+  (0.2ms) ROLLBACK
7
+  (0.1ms) BEGIN
8
+ -------------------------
9
+ MakerTest: test_overrides
10
+ -------------------------
11
+  (0.2ms) ROLLBACK
12
+  (0.1ms) BEGIN
13
+ ---------------------------
14
+ MakerTest: test_definitions
15
+ ---------------------------
16
+  (0.2ms) ROLLBACK
17
+  (0.2ms) BEGIN
18
+ -----------------------
19
+ MakerTest: test_aliases
20
+ -----------------------
21
+  (0.1ms) ROLLBACK
22
+  (0.1ms) BEGIN
23
+ -------------------------
24
+ MakerTest: test_dependent
25
+ -------------------------
26
+  (0.2ms) ROLLBACK
27
+  (0.3ms) BEGIN
28
+ ----------------------------
29
+ MakerTest: test_associations
30
+ ----------------------------
31
+  (0.2ms) ROLLBACK
32
+  (0.1ms) BEGIN
33
+ ---------------------------
34
+ MakerTest: test_inheritance
35
+ ---------------------------
36
+  (0.4ms) ROLLBACK
37
+  (0.2ms) BEGIN
38
+ ---------------------------
39
+ GeneratorTest: test_install
40
+ ---------------------------
41
+  (0.3ms) ROLLBACK
42
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
43
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
44
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
45
+ Migrating to CreateUsers (20140613221835)
46
+  (0.1ms) BEGIN
47
+  (2.7ms) CREATE TABLE "users" ("id" serial primary key, "username" character varying, "name" character varying, "email" character varying, "age" integer, "phone" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
48
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140613221835"]]
49
+  (0.6ms) COMMIT
50
+ Migrating to CreatePosts (20140615180954)
51
+  (0.3ms) BEGIN
52
+  (2.2ms) CREATE TABLE "posts" ("id" serial primary key, "user_id" integer, "mentionable_id" integer, "mentionable_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
53
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140615180954"]]
54
+  (0.4ms) COMMIT
55
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
+  (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
57
+ FROM pg_constraint c
58
+ JOIN pg_class t1 ON c.conrelid = t1.oid
59
+ JOIN pg_class t2 ON c.confrelid = t2.oid
60
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
61
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
62
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
63
+ WHERE c.contype = 'f'
64
+ AND t1.relname = 'posts'
65
+ AND t3.nspname = ANY (current_schemas(false))
66
+ ORDER BY c.conname
67
+ 
68
+  (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
69
+ FROM pg_constraint c
70
+ JOIN pg_class t1 ON c.conrelid = t1.oid
71
+ JOIN pg_class t2 ON c.confrelid = t2.oid
72
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
73
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
74
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
75
+ WHERE c.contype = 'f'
76
+ AND t1.relname = 'users'
77
+ AND t3.nspname = ANY (current_schemas(false))
78
+ ORDER BY c.conname
79
+
80
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
81
+  (0.2ms) BEGIN
82
+ -------------------------
83
+ MakerTest: test_dependent
84
+ -------------------------
85
+  (0.4ms) ROLLBACK
86
+  (0.1ms) BEGIN
87
+ -----------------------
88
+ MakerTest: test_aliases
89
+ -----------------------
90
+  (0.2ms) ROLLBACK
91
+  (0.1ms) BEGIN
92
+ ---------------------------
93
+ MakerTest: test_inheritance
94
+ ---------------------------
95
+  (0.2ms) ROLLBACK
96
+  (0.2ms) BEGIN
97
+ -------------------------
98
+ MakerTest: test_overrides
99
+ -------------------------
100
+  (0.2ms) ROLLBACK
101
+  (0.2ms) BEGIN
102
+ -------------------------
103
+ MakerTest: test_sequences
104
+ -------------------------
105
+  (0.2ms) ROLLBACK
106
+  (0.1ms) BEGIN
107
+ ----------------------------
108
+ MakerTest: test_associations
109
+ ----------------------------
110
+  (0.2ms) ROLLBACK
111
+  (0.2ms) BEGIN
112
+ ---------------------------
113
+ MakerTest: test_definitions
114
+ ---------------------------
115
+  (0.1ms) ROLLBACK
116
+  (0.1ms) BEGIN
117
+ ---------------------------
118
+ GeneratorTest: test_install
119
+ ---------------------------
120
+  (0.2ms) ROLLBACK
121
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
122
+  (0.2ms) BEGIN
123
+ ----------------------------
124
+ MakerTest: test_associations
125
+ ----------------------------
126
+  (0.3ms) ROLLBACK
127
+  (0.1ms) BEGIN
128
+ ---------------------------
129
+ MakerTest: test_inheritance
130
+ ---------------------------
131
+  (0.2ms) ROLLBACK
132
+  (0.1ms) BEGIN
133
+ -------------------------
134
+ MakerTest: test_overrides
135
+ -------------------------
136
+  (0.2ms) ROLLBACK
137
+  (0.1ms) BEGIN
138
+ ---------------------------
139
+ MakerTest: test_definitions
140
+ ---------------------------
141
+  (0.1ms) ROLLBACK
142
+  (0.2ms) BEGIN
143
+ -------------------------
144
+ MakerTest: test_dependent
145
+ -------------------------
146
+  (0.2ms) ROLLBACK
147
+  (0.1ms) BEGIN
148
+ -----------------------
149
+ MakerTest: test_aliases
150
+ -----------------------
151
+  (0.1ms) ROLLBACK
152
+  (0.1ms) BEGIN
153
+ -------------------------
154
+ MakerTest: test_sequences
155
+ -------------------------
156
+  (0.2ms) ROLLBACK
157
+  (0.1ms) BEGIN
158
+ ---------------------------
159
+ GeneratorTest: test_install
160
+ ---------------------------
161
+  (0.2ms) ROLLBACK
162
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
163
+  (0.2ms) BEGIN
164
+ -------------------------
165
+ MakerTest: test_sequences
166
+ -------------------------
167
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
168
+  (0.2ms) BEGIN
169
+ ---------------------------
170
+ MakerTest: test_definitions
171
+ ---------------------------
172
+  (0.2ms) ROLLBACK
173
+  (0.1ms) BEGIN
174
+ -------------------------
175
+ MakerTest: test_overrides
176
+ -------------------------
177
+  (0.3ms) ROLLBACK
178
+  (0.1ms) BEGIN
179
+ -------------------------
180
+ MakerTest: test_dependent
181
+ -------------------------
182
+  (0.2ms) ROLLBACK
183
+  (0.1ms) BEGIN
184
+ ----------------------------
185
+ MakerTest: test_associations
186
+ ----------------------------
187
+  (0.2ms) ROLLBACK
188
+  (0.1ms) BEGIN
189
+ -------------------------
190
+ MakerTest: test_sequences
191
+ -------------------------
192
+  (0.2ms) ROLLBACK
193
+  (0.1ms) BEGIN
194
+ ---------------------------
195
+ MakerTest: test_inheritance
196
+ ---------------------------
197
+  (0.2ms) ROLLBACK
198
+  (0.1ms) BEGIN
199
+ -----------------------
200
+ MakerTest: test_aliases
201
+ -----------------------
202
+  (0.1ms) ROLLBACK
203
+  (0.2ms) BEGIN
204
+ ---------------------------
205
+ GeneratorTest: test_install
206
+ ---------------------------
207
+  (0.2ms) ROLLBACK
208
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
209
+  (0.2ms) BEGIN
210
+ -------------------------
211
+ MakerTest: test_sequences
212
+ -------------------------
213
+  (0.1ms) SAVEPOINT active_record_1
214
+ SQL (6.9ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail2@example.com"], ["phone", 2], ["created_at", "2016-12-06 22:01:27.025839"], ["updated_at", "2016-12-06 22:01:27.025839"]]
215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
216
+  (0.1ms) SAVEPOINT active_record_1
217
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail4@example.com"], ["phone", 4], ["created_at", "2016-12-06 22:01:27.036747"], ["updated_at", "2016-12-06 22:01:27.036747"]]
218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
219
+  (0.2ms) ROLLBACK
220
+  (0.1ms) BEGIN
221
+ -------------------------
222
+ MakerTest: test_dependent
223
+ -------------------------
224
+  (0.1ms) SAVEPOINT active_record_1
225
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail6@example.com"], ["phone", 6], ["created_at", "2016-12-06 22:01:27.039033"], ["updated_at", "2016-12-06 22:01:27.039033"]]
226
+  (0.2ms) RELEASE SAVEPOINT active_record_1
227
+  (0.1ms) ROLLBACK
228
+  (0.1ms) BEGIN
229
+ -------------------------
230
+ MakerTest: test_overrides
231
+ -------------------------
232
+  (0.1ms) SAVEPOINT active_record_1
233
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail11@example.com"], ["phone", 11], ["created_at", "2016-12-06 22:01:27.041380"], ["updated_at", "2016-12-06 22:01:27.041380"]]
234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
235
+  (0.1ms) SAVEPOINT active_record_1
236
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail12@example.com"], ["phone", 12], ["created_at", "2016-12-06 22:01:27.042634"], ["updated_at", "2016-12-06 22:01:27.042634"]]
237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
238
+  (0.1ms) SAVEPOINT active_record_1
239
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail13@example.com"], ["phone", 13], ["created_at", "2016-12-06 22:01:27.043876"], ["updated_at", "2016-12-06 22:01:27.043876"]]
240
+  (0.2ms) RELEASE SAVEPOINT active_record_1
241
+  (0.1ms) SAVEPOINT active_record_1
242
+ SQL (0.1ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail14@example.com"], ["phone", 14], ["created_at", "2016-12-06 22:01:27.045161"], ["updated_at", "2016-12-06 22:01:27.045161"]]
243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
244
+  (0.2ms) ROLLBACK
245
+  (0.1ms) BEGIN
246
+ ---------------------------
247
+ MakerTest: test_inheritance
248
+ ---------------------------
249
+  (0.1ms) SAVEPOINT active_record_1
250
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "age", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail16@example.com"], ["phone", 16], ["age", 9], ["created_at", "2016-12-06 22:01:27.047191"], ["updated_at", "2016-12-06 22:01:27.047191"]]
251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
252
+  (0.1ms) ROLLBACK
253
+  (0.1ms) BEGIN
254
+ ----------------------------
255
+ MakerTest: test_associations
256
+ ----------------------------
257
+  (0.1ms) ROLLBACK
258
+  (0.1ms) BEGIN
259
+ -----------------------
260
+ MakerTest: test_aliases
261
+ -----------------------
262
+  (0.1ms) ROLLBACK
263
+  (0.1ms) BEGIN
264
+ ---------------------------
265
+ MakerTest: test_definitions
266
+ ---------------------------
267
+  (0.1ms) ROLLBACK
268
+  (0.1ms) BEGIN
269
+ ---------------------------
270
+ GeneratorTest: test_install
271
+ ---------------------------
272
+  (0.2ms) ROLLBACK
273
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
274
+  (0.2ms) BEGIN
275
+ -------------------------
276
+ MakerTest: test_sequences
277
+ -------------------------
278
+  (0.1ms) ROLLBACK
279
+  (0.1ms) BEGIN
280
+ ---------------------------
281
+ MakerTest: test_inheritance
282
+ ---------------------------
283
+  (0.1ms) ROLLBACK
284
+  (0.2ms) BEGIN
285
+ ----------------------------
286
+ MakerTest: test_associations
287
+ ----------------------------
288
+  (0.1ms) ROLLBACK
289
+  (0.1ms) BEGIN
290
+ ---------------------------
291
+ MakerTest: test_definitions
292
+ ---------------------------
293
+  (0.1ms) ROLLBACK
294
+  (0.2ms) BEGIN
295
+ -----------------------
296
+ MakerTest: test_aliases
297
+ -----------------------
298
+  (0.1ms) ROLLBACK
299
+  (0.1ms) BEGIN
300
+ -------------------------
301
+ MakerTest: test_overrides
302
+ -------------------------
303
+  (0.1ms) ROLLBACK
304
+  (0.1ms) BEGIN
305
+ -------------------------
306
+ MakerTest: test_dependent
307
+ -------------------------
308
+  (0.2ms) ROLLBACK
309
+  (0.1ms) BEGIN
310
+ ---------------------------
311
+ GeneratorTest: test_install
312
+ ---------------------------
313
+  (0.1ms) ROLLBACK
314
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
315
+  (0.2ms) BEGIN
316
+ ----------------------------
317
+ MakerTest: test_associations
318
+ ----------------------------
319
+  (0.2ms) ROLLBACK
320
+  (0.1ms) BEGIN
321
+ -------------------------
322
+ MakerTest: test_sequences
323
+ -------------------------
324
+  (0.1ms) ROLLBACK
325
+  (0.1ms) BEGIN
326
+ -----------------------
327
+ MakerTest: test_aliases
328
+ -----------------------
329
+  (0.1ms) ROLLBACK
330
+  (0.1ms) BEGIN
331
+ -------------------------
332
+ MakerTest: test_dependent
333
+ -------------------------
334
+  (0.1ms) ROLLBACK
335
+  (0.1ms) BEGIN
336
+ ---------------------------
337
+ MakerTest: test_definitions
338
+ ---------------------------
339
+  (0.1ms) ROLLBACK
340
+  (0.1ms) BEGIN
341
+ -------------------------
342
+ MakerTest: test_overrides
343
+ -------------------------
344
+  (0.1ms) ROLLBACK
345
+  (0.1ms) BEGIN
346
+ ---------------------------
347
+ MakerTest: test_inheritance
348
+ ---------------------------
349
+  (0.1ms) ROLLBACK
350
+  (0.1ms) BEGIN
351
+ ---------------------------
352
+ GeneratorTest: test_install
353
+ ---------------------------
354
+  (0.2ms) ROLLBACK
355
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
356
+  (0.2ms) BEGIN
357
+ -------------------------
358
+ MakerTest: test_dependent
359
+ -------------------------
360
+  (0.2ms) ROLLBACK
361
+  (0.1ms) BEGIN
362
+ -------------------------
363
+ MakerTest: test_sequences
364
+ -------------------------
365
+  (0.1ms) ROLLBACK
366
+  (0.2ms) BEGIN
367
+ ---------------------------
368
+ MakerTest: test_definitions
369
+ ---------------------------
370
+  (0.1ms) ROLLBACK
371
+  (0.1ms) BEGIN
372
+ -------------------------
373
+ MakerTest: test_overrides
374
+ -------------------------
375
+  (0.1ms) ROLLBACK
376
+  (0.1ms) BEGIN
377
+ ---------------------------
378
+ MakerTest: test_inheritance
379
+ ---------------------------
380
+  (0.1ms) ROLLBACK
381
+  (0.1ms) BEGIN
382
+ -----------------------
383
+ MakerTest: test_aliases
384
+ -----------------------
385
+  (0.2ms) ROLLBACK
386
+  (0.2ms) BEGIN
387
+ ----------------------------
388
+ MakerTest: test_associations
389
+ ----------------------------
390
+  (0.2ms) ROLLBACK
391
+  (0.1ms) BEGIN
392
+ ---------------------------
393
+ GeneratorTest: test_install
394
+ ---------------------------
395
+  (0.2ms) ROLLBACK
396
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
397
+  (0.2ms) BEGIN
398
+ -------------------------
399
+ MakerTest: test_overrides
400
+ -------------------------
401
+  (0.2ms) ROLLBACK
402
+  (0.2ms) BEGIN
403
+ ----------------------------
404
+ MakerTest: test_associations
405
+ ----------------------------
406
+  (0.2ms) ROLLBACK
407
+  (0.1ms) BEGIN
408
+ -----------------------
409
+ MakerTest: test_aliases
410
+ -----------------------
411
+  (0.2ms) ROLLBACK
412
+  (0.1ms) BEGIN
413
+ ---------------------------
414
+ MakerTest: test_inheritance
415
+ ---------------------------
416
+  (0.2ms) ROLLBACK
417
+  (0.1ms) BEGIN
418
+ -------------------------
419
+ MakerTest: test_sequences
420
+ -------------------------
421
+  (0.2ms) ROLLBACK
422
+  (0.2ms) BEGIN
423
+ -------------------------
424
+ MakerTest: test_dependent
425
+ -------------------------
426
+  (0.1ms) ROLLBACK
427
+  (0.1ms) BEGIN
428
+ ---------------------------
429
+ MakerTest: test_definitions
430
+ ---------------------------
431
+  (0.1ms) ROLLBACK
432
+  (0.1ms) BEGIN
433
+ ---------------------------
434
+ GeneratorTest: test_install
435
+ ---------------------------
436
+  (0.2ms) ROLLBACK
437
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
438
+  (0.2ms) BEGIN
439
+ ---------------------------
440
+ GeneratorTest: test_install
441
+ ---------------------------
442
+  (0.2ms) ROLLBACK
443
+  (0.1ms) BEGIN
444
+ ----------------------------
445
+ MakerTest: test_associations
446
+ ----------------------------
447
+  (0.2ms) ROLLBACK
448
+  (0.1ms) BEGIN
449
+ -------------------------
450
+ MakerTest: test_overrides
451
+ -------------------------
452
+  (0.2ms) ROLLBACK
453
+  (0.1ms) BEGIN
454
+ -------------------------
455
+ MakerTest: test_dependent
456
+ -------------------------
457
+  (0.1ms) ROLLBACK
458
+  (0.1ms) BEGIN
459
+ -----------------------
460
+ MakerTest: test_aliases
461
+ -----------------------
462
+  (0.1ms) ROLLBACK
463
+  (0.1ms) BEGIN
464
+ -------------------------
465
+ MakerTest: test_sequences
466
+ -------------------------
467
+  (0.2ms) ROLLBACK
468
+  (0.1ms) BEGIN
469
+ ---------------------------
470
+ MakerTest: test_definitions
471
+ ---------------------------
472
+  (0.2ms) ROLLBACK
473
+  (0.1ms) BEGIN
474
+ ---------------------------
475
+ MakerTest: test_inheritance
476
+ ---------------------------
477
+  (0.1ms) ROLLBACK
478
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
479
+  (0.2ms) BEGIN
480
+ ---------------------------
481
+ GeneratorTest: test_install
482
+ ---------------------------
483
+  (0.2ms) ROLLBACK
484
+  (0.2ms) BEGIN
485
+ -------------------------
486
+ MakerTest: test_dependent
487
+ -------------------------
488
+  (0.2ms) ROLLBACK
489
+  (0.1ms) BEGIN
490
+ ---------------------------
491
+ MakerTest: test_definitions
492
+ ---------------------------
493
+  (0.1ms) ROLLBACK
494
+  (0.2ms) BEGIN
495
+ ---------------------------
496
+ MakerTest: test_inheritance
497
+ ---------------------------
498
+  (0.1ms) ROLLBACK
499
+  (0.1ms) BEGIN
500
+ -------------------------
501
+ MakerTest: test_overrides
502
+ -------------------------
503
+  (0.1ms) ROLLBACK
504
+  (0.1ms) BEGIN
505
+ -------------------------
506
+ MakerTest: test_sequences
507
+ -------------------------
508
+  (0.2ms) ROLLBACK
509
+  (0.1ms) BEGIN
510
+ -----------------------
511
+ MakerTest: test_aliases
512
+ -----------------------
513
+  (0.1ms) ROLLBACK
514
+  (0.1ms) BEGIN
515
+ ----------------------------
516
+ MakerTest: test_associations
517
+ ----------------------------
518
+  (0.1ms) ROLLBACK
519
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
520
+  (0.2ms) BEGIN
521
+ ---------------------------
522
+ MakerTest: test_definitions
523
+ ---------------------------
524
+  (0.1ms) ROLLBACK
525
+  (0.1ms) BEGIN
526
+ -------------------------
527
+ MakerTest: test_sequences
528
+ -------------------------
529
+  (0.2ms) ROLLBACK
530
+  (0.1ms) BEGIN
531
+ ----------------------------
532
+ MakerTest: test_associations
533
+ ----------------------------
534
+  (0.3ms) ROLLBACK
535
+  (0.1ms) BEGIN
536
+ -------------------------
537
+ MakerTest: test_overrides
538
+ -------------------------
539
+  (0.3ms) ROLLBACK
540
+  (0.1ms) BEGIN
541
+ -------------------------
542
+ MakerTest: test_dependent
543
+ -------------------------
544
+  (0.2ms) ROLLBACK
545
+  (0.1ms) BEGIN
546
+ -----------------------
547
+ MakerTest: test_aliases
548
+ -----------------------
549
+  (0.1ms) ROLLBACK
550
+  (0.1ms) BEGIN
551
+ ---------------------------
552
+ MakerTest: test_inheritance
553
+ ---------------------------
554
+  (0.2ms) ROLLBACK
555
+  (0.1ms) BEGIN
556
+ ---------------------------
557
+ GeneratorTest: test_install
558
+ ---------------------------
559
+  (0.3ms) ROLLBACK
560
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
561
+  (0.3ms) BEGIN
562
+ ---------------------------
563
+ GeneratorTest: test_install
564
+ ---------------------------
565
+  (0.2ms) ROLLBACK
566
+  (0.1ms) BEGIN
567
+ -----------------------
568
+ MakerTest: test_aliases
569
+ -----------------------
570
+  (0.1ms) ROLLBACK
571
+  (0.1ms) BEGIN
572
+ ----------------------------
573
+ MakerTest: test_associations
574
+ ----------------------------
575
+  (0.2ms) ROLLBACK
576
+  (0.2ms) BEGIN
577
+ -------------------------
578
+ MakerTest: test_sequences
579
+ -------------------------
580
+  (0.2ms) ROLLBACK
581
+  (0.1ms) BEGIN
582
+ ---------------------------
583
+ MakerTest: test_definitions
584
+ ---------------------------
585
+  (0.1ms) ROLLBACK
586
+  (0.1ms) BEGIN
587
+ ---------------------------
588
+ MakerTest: test_inheritance
589
+ ---------------------------
590
+  (0.2ms) ROLLBACK
591
+  (0.1ms) BEGIN
592
+ -------------------------
593
+ MakerTest: test_dependent
594
+ -------------------------
595
+  (0.2ms) ROLLBACK
596
+  (0.1ms) BEGIN
597
+ -------------------------
598
+ MakerTest: test_overrides
599
+ -------------------------
600
+  (0.2ms) ROLLBACK
601
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
602
+  (0.2ms) BEGIN
603
+ ---------------------------
604
+ GeneratorTest: test_install
605
+ ---------------------------
606
+  (0.2ms) ROLLBACK
607
+  (0.1ms) BEGIN
608
+ -----------------------
609
+ MakerTest: test_aliases
610
+ -----------------------
611
+  (0.2ms) ROLLBACK
612
+  (0.1ms) BEGIN
613
+ -------------------------
614
+ MakerTest: test_dependent
615
+ -------------------------
616
+  (0.2ms) ROLLBACK
617
+  (0.1ms) BEGIN
618
+ ---------------------------
619
+ MakerTest: test_inheritance
620
+ ---------------------------
621
+  (0.1ms) ROLLBACK
622
+  (0.1ms) BEGIN
623
+ ---------------------------
624
+ MakerTest: test_definitions
625
+ ---------------------------
626
+  (0.1ms) ROLLBACK
627
+  (0.1ms) BEGIN
628
+ -------------------------
629
+ MakerTest: test_sequences
630
+ -------------------------
631
+  (0.1ms) ROLLBACK
632
+  (0.1ms) BEGIN
633
+ ----------------------------
634
+ MakerTest: test_associations
635
+ ----------------------------
636
+  (0.1ms) ROLLBACK
637
+  (0.1ms) BEGIN
638
+ -------------------------
639
+ MakerTest: test_overrides
640
+ -------------------------
641
+  (0.1ms) ROLLBACK
642
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
643
+  (0.2ms) BEGIN
644
+ ---------------------------
645
+ GeneratorTest: test_install
646
+ ---------------------------
647
+  (0.1ms) ROLLBACK
648
+  (0.2ms) BEGIN
649
+ ---------------------------
650
+ MakerTest: test_definitions
651
+ ---------------------------
652
+  (0.1ms) ROLLBACK
653
+  (0.1ms) BEGIN
654
+ ----------------------------
655
+ MakerTest: test_associations
656
+ ----------------------------
657
+  (0.2ms) ROLLBACK
658
+  (0.2ms) BEGIN
659
+ -------------------------
660
+ MakerTest: test_dependent
661
+ -------------------------
662
+  (0.2ms) ROLLBACK
663
+  (0.2ms) BEGIN
664
+ -----------------------
665
+ MakerTest: test_aliases
666
+ -----------------------
667
+  (0.1ms) ROLLBACK
668
+  (0.1ms) BEGIN
669
+ ---------------------------
670
+ MakerTest: test_inheritance
671
+ ---------------------------
672
+  (0.1ms) ROLLBACK
673
+  (0.1ms) BEGIN
674
+ -------------------------
675
+ MakerTest: test_overrides
676
+ -------------------------
677
+  (0.1ms) ROLLBACK
678
+  (0.1ms) BEGIN
679
+ -------------------------
680
+ MakerTest: test_sequences
681
+ -------------------------
682
+  (0.2ms) ROLLBACK
683
+ ActiveRecord::SchemaMigration Load (6.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
684
+  (0.2ms) BEGIN
685
+ ---------------------------
686
+ GeneratorTest: test_install
687
+ ---------------------------
688
+  (0.2ms) ROLLBACK
689
+  (0.1ms) BEGIN
690
+ -----------------------
691
+ MakerTest: test_aliases
692
+ -----------------------
693
+  (0.1ms) ROLLBACK
694
+  (0.1ms) BEGIN
695
+ ----------------------------
696
+ MakerTest: test_associations
697
+ ----------------------------
698
+  (0.1ms) ROLLBACK
699
+  (0.1ms) BEGIN
700
+ -------------------------
701
+ MakerTest: test_dependent
702
+ -------------------------
703
+  (0.1ms) ROLLBACK
704
+  (0.1ms) BEGIN
705
+ -------------------------
706
+ MakerTest: test_sequences
707
+ -------------------------
708
+  (0.1ms) ROLLBACK
709
+  (0.1ms) BEGIN
710
+ -------------------------
711
+ MakerTest: test_overrides
712
+ -------------------------
713
+  (0.1ms) ROLLBACK
714
+  (0.1ms) BEGIN
715
+ ---------------------------
716
+ MakerTest: test_inheritance
717
+ ---------------------------
718
+  (0.1ms) ROLLBACK
719
+  (0.1ms) BEGIN
720
+ ---------------------------
721
+ MakerTest: test_definitions
722
+ ---------------------------
723
+  (0.2ms) ROLLBACK
724
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
725
+  (0.2ms) BEGIN
726
+ ----------------------------
727
+ MakerTest: test_associations
728
+ ----------------------------
729
+  (0.1ms) ROLLBACK
730
+  (0.1ms) BEGIN
731
+ -----------------------
732
+ MakerTest: test_aliases
733
+ -----------------------
734
+  (0.1ms) ROLLBACK
735
+  (0.1ms) BEGIN
736
+ -------------------------
737
+ MakerTest: test_sequences
738
+ -------------------------
739
+  (0.1ms) ROLLBACK
740
+  (0.2ms) BEGIN
741
+ ---------------------------
742
+ MakerTest: test_definitions
743
+ ---------------------------
744
+  (0.1ms) ROLLBACK
745
+  (0.1ms) BEGIN
746
+ ---------------------------
747
+ MakerTest: test_inheritance
748
+ ---------------------------
749
+  (0.1ms) ROLLBACK
750
+  (0.1ms) BEGIN
751
+ -------------------------
752
+ MakerTest: test_overrides
753
+ -------------------------
754
+  (0.1ms) ROLLBACK
755
+  (0.1ms) BEGIN
756
+ -------------------------
757
+ MakerTest: test_dependent
758
+ -------------------------
759
+  (0.1ms) ROLLBACK
760
+  (0.1ms) BEGIN
761
+ ---------------------------
762
+ GeneratorTest: test_install
763
+ ---------------------------
764
+  (0.1ms) ROLLBACK
765
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
766
+  (0.2ms) BEGIN
767
+ ---------------------------
768
+ GeneratorTest: test_install
769
+ ---------------------------
770
+  (0.2ms) ROLLBACK
771
+  (0.1ms) BEGIN
772
+ -------------------------
773
+ MakerTest: test_dependent
774
+ -------------------------
775
+  (0.2ms) SAVEPOINT active_record_1
776
+ SQL (0.6ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail2@example.com"], ["phone", 2], ["created_at", "2016-12-07 04:05:43.102936"], ["updated_at", "2016-12-07 04:05:43.102936"]]
777
+ SQL (1.9ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 9], ["created_at", "2016-12-07 04:05:43.107429"], ["updated_at", "2016-12-07 04:05:43.107429"]]
778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
779
+  (0.2ms) ROLLBACK
780
+  (0.1ms) BEGIN
781
+ -----------------------
782
+ MakerTest: test_aliases
783
+ -----------------------
784
+  (0.2ms) ROLLBACK
785
+  (0.1ms) BEGIN
786
+ -------------------------
787
+ MakerTest: test_sequences
788
+ -------------------------
789
+  (0.2ms) SAVEPOINT active_record_1
790
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail4@example.com"], ["phone", 4], ["created_at", "2016-12-07 04:05:43.114287"], ["updated_at", "2016-12-07 04:05:43.114287"]]
791
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 10], ["created_at", "2016-12-07 04:05:43.115287"], ["updated_at", "2016-12-07 04:05:43.115287"]]
792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
793
+  (0.1ms) SAVEPOINT active_record_1
794
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail6@example.com"], ["phone", 6], ["created_at", "2016-12-07 04:05:43.117066"], ["updated_at", "2016-12-07 04:05:43.117066"]]
795
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 11], ["created_at", "2016-12-07 04:05:43.117784"], ["updated_at", "2016-12-07 04:05:43.117784"]]
796
+  (0.2ms) RELEASE SAVEPOINT active_record_1
797
+  (0.1ms) ROLLBACK
798
+  (0.1ms) BEGIN
799
+ ---------------------------
800
+ MakerTest: test_inheritance
801
+ ---------------------------
802
+  (0.1ms) SAVEPOINT active_record_1
803
+ SQL (0.2ms) INSERT INTO "users" ("age", "name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["age", 9], ["name", "name"], ["username", "name"], ["email", "mail8@example.com"], ["phone", 8], ["created_at", "2016-12-07 04:05:43.120445"], ["updated_at", "2016-12-07 04:05:43.120445"]]
804
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 12], ["created_at", "2016-12-07 04:05:43.121503"], ["updated_at", "2016-12-07 04:05:43.121503"]]
805
+  (0.2ms) RELEASE SAVEPOINT active_record_1
806
+  (0.2ms) ROLLBACK
807
+  (0.1ms) BEGIN
808
+ ---------------------------
809
+ MakerTest: test_definitions
810
+ ---------------------------
811
+  (0.1ms) ROLLBACK
812
+  (0.1ms) BEGIN
813
+ ----------------------------
814
+ MakerTest: test_associations
815
+ ----------------------------
816
+  (0.1ms) SAVEPOINT active_record_1
817
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-07 04:05:43.124957"], ["updated_at", "2016-12-07 04:05:43.124957"]]
818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
819
+  (0.1ms) SAVEPOINT active_record_1
820
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-07 04:05:43.126274"], ["updated_at", "2016-12-07 04:05:43.126274"]]
821
+  (0.2ms) RELEASE SAVEPOINT active_record_1
822
+  (0.1ms) ROLLBACK
823
+  (0.2ms) BEGIN
824
+ -------------------------
825
+ MakerTest: test_overrides
826
+ -------------------------
827
+  (0.1ms) SAVEPOINT active_record_1
828
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail15@example.com"], ["phone", 15], ["created_at", "2016-12-07 04:05:43.129678"], ["updated_at", "2016-12-07 04:05:43.129678"]]
829
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 13], ["created_at", "2016-12-07 04:05:43.130399"], ["updated_at", "2016-12-07 04:05:43.130399"]]
830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
831
+  (0.1ms) SAVEPOINT active_record_1
832
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail16@example.com"], ["phone", 16], ["created_at", "2016-12-07 04:05:43.131886"], ["updated_at", "2016-12-07 04:05:43.131886"]]
833
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 14], ["created_at", "2016-12-07 04:05:43.132591"], ["updated_at", "2016-12-07 04:05:43.132591"]]
834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
835
+  (0.1ms) SAVEPOINT active_record_1
836
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail17@example.com"], ["phone", 17], ["created_at", "2016-12-07 04:05:43.134080"], ["updated_at", "2016-12-07 04:05:43.134080"]]
837
+ SQL (0.1ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 15], ["created_at", "2016-12-07 04:05:43.134786"], ["updated_at", "2016-12-07 04:05:43.134786"]]
838
+  (0.1ms) RELEASE SAVEPOINT active_record_1
839
+  (0.1ms) SAVEPOINT active_record_1
840
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail18@example.com"], ["phone", 18], ["created_at", "2016-12-07 04:05:43.136213"], ["updated_at", "2016-12-07 04:05:43.136213"]]
841
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 16], ["created_at", "2016-12-07 04:05:43.136904"], ["updated_at", "2016-12-07 04:05:43.136904"]]
842
+  (0.2ms) RELEASE SAVEPOINT active_record_1
843
+  (0.2ms) ROLLBACK
844
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
845
+  (0.2ms) BEGIN
846
+ -------------------------
847
+ MakerTest: test_sequences
848
+ -------------------------
849
+  (0.2ms) SAVEPOINT active_record_1
850
+ SQL (6.7ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail2@example.com"], ["phone", 2], ["created_at", "2016-12-07 12:49:09.542239"], ["updated_at", "2016-12-07 12:49:09.542239"]]
851
+ SQL (0.3ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 17], ["created_at", "2016-12-07 12:49:09.553180"], ["updated_at", "2016-12-07 12:49:09.553180"]]
852
+  (0.2ms) RELEASE SAVEPOINT active_record_1
853
+  (0.1ms) SAVEPOINT active_record_1
854
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail4@example.com"], ["phone", 4], ["created_at", "2016-12-07 12:49:09.555813"], ["updated_at", "2016-12-07 12:49:09.555813"]]
855
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 18], ["created_at", "2016-12-07 12:49:09.556552"], ["updated_at", "2016-12-07 12:49:09.556552"]]
856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
857
+  (0.2ms) ROLLBACK
858
+  (0.1ms) BEGIN
859
+ ---------------------------
860
+ MakerTest: test_definitions
861
+ ---------------------------
862
+  (0.1ms) ROLLBACK
863
+  (0.1ms) BEGIN
864
+ ----------------------------
865
+ MakerTest: test_associations
866
+ ----------------------------
867
+  (0.1ms) SAVEPOINT active_record_1
868
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-07 12:49:09.559995"], ["updated_at", "2016-12-07 12:49:09.559995"]]
869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
870
+  (0.1ms) SAVEPOINT active_record_1
871
+ SQL (0.2ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-07 12:49:09.561316"], ["updated_at", "2016-12-07 12:49:09.561316"]]
872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
873
+  (0.2ms) ROLLBACK
874
+  (0.1ms) BEGIN
875
+ -------------------------
876
+ MakerTest: test_overrides
877
+ -------------------------
878
+  (0.1ms) SAVEPOINT active_record_1
879
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail11@example.com"], ["phone", 11], ["created_at", "2016-12-07 12:49:09.564977"], ["updated_at", "2016-12-07 12:49:09.564977"]]
880
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 19], ["created_at", "2016-12-07 12:49:09.565758"], ["updated_at", "2016-12-07 12:49:09.565758"]]
881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
882
+  (0.1ms) SAVEPOINT active_record_1
883
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail12@example.com"], ["phone", 12], ["created_at", "2016-12-07 12:49:09.567259"], ["updated_at", "2016-12-07 12:49:09.567259"]]
884
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 20], ["created_at", "2016-12-07 12:49:09.567964"], ["updated_at", "2016-12-07 12:49:09.567964"]]
885
+  (0.2ms) RELEASE SAVEPOINT active_record_1
886
+  (0.2ms) SAVEPOINT active_record_1
887
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail13@example.com"], ["phone", 13], ["created_at", "2016-12-07 12:49:09.569537"], ["updated_at", "2016-12-07 12:49:09.569537"]]
888
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 21], ["created_at", "2016-12-07 12:49:09.570222"], ["updated_at", "2016-12-07 12:49:09.570222"]]
889
+  (0.2ms) RELEASE SAVEPOINT active_record_1
890
+  (0.2ms) SAVEPOINT active_record_1
891
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "other"], ["username", "name"], ["email", "mail14@example.com"], ["phone", 14], ["created_at", "2016-12-07 12:49:09.571985"], ["updated_at", "2016-12-07 12:49:09.571985"]]
892
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 22], ["created_at", "2016-12-07 12:49:09.572743"], ["updated_at", "2016-12-07 12:49:09.572743"]]
893
+  (0.2ms) RELEASE SAVEPOINT active_record_1
894
+  (0.2ms) ROLLBACK
895
+  (0.1ms) BEGIN
896
+ -------------------------
897
+ MakerTest: test_dependent
898
+ -------------------------
899
+  (0.1ms) SAVEPOINT active_record_1
900
+ SQL (0.2ms) INSERT INTO "users" ("name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["name", "name"], ["username", "name"], ["email", "mail16@example.com"], ["phone", 16], ["created_at", "2016-12-07 12:49:09.575381"], ["updated_at", "2016-12-07 12:49:09.575381"]]
901
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 23], ["created_at", "2016-12-07 12:49:09.576170"], ["updated_at", "2016-12-07 12:49:09.576170"]]
902
+  (0.2ms) RELEASE SAVEPOINT active_record_1
903
+  (0.2ms) ROLLBACK
904
+  (0.1ms) BEGIN
905
+ -----------------------
906
+ MakerTest: test_aliases
907
+ -----------------------
908
+  (0.1ms) ROLLBACK
909
+  (0.1ms) BEGIN
910
+ ---------------------------
911
+ MakerTest: test_inheritance
912
+ ---------------------------
913
+  (0.1ms) SAVEPOINT active_record_1
914
+ SQL (0.2ms) INSERT INTO "users" ("age", "name", "username", "email", "phone", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["age", 9], ["name", "name"], ["username", "name"], ["email", "mail18@example.com"], ["phone", 18], ["created_at", "2016-12-07 12:49:09.579373"], ["updated_at", "2016-12-07 12:49:09.579373"]]
915
+ SQL (0.2ms) INSERT INTO "posts" ("user_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["user_id", 24], ["created_at", "2016-12-07 12:49:09.580303"], ["updated_at", "2016-12-07 12:49:09.580303"]]
916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
917
+  (0.2ms) ROLLBACK
918
+  (0.1ms) BEGIN
919
+ ---------------------------
920
+ GeneratorTest: test_install
921
+ ---------------------------
922
+  (0.2ms) ROLLBACK
@@ -15,6 +15,8 @@ Makers.define do
15
15
  end
16
16
  end
17
17
 
18
- maker :post
18
+ maker :post do
19
+ association :user, maker: :owner
20
+ end
19
21
 
20
22
  end
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: 4.0.0.0
4
+ version: 4.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-06 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -98,6 +98,9 @@ files:
98
98
  - test/dummy/config/secrets.yml
99
99
  - test/dummy/db/migrate/20140613221835_create_users.rb
100
100
  - test/dummy/db/migrate/20140615180954_create_posts.rb
101
+ - test/dummy/db/schema.rb
102
+ - test/dummy/log/development.log
103
+ - test/dummy/log/test.log
101
104
  - test/dummy/public/404.html
102
105
  - test/dummy/public/422.html
103
106
  - test/dummy/public/500.html
@@ -164,6 +167,9 @@ test_files:
164
167
  - test/dummy/config.ru
165
168
  - test/dummy/db/migrate/20140613221835_create_users.rb
166
169
  - test/dummy/db/migrate/20140615180954_create_posts.rb
170
+ - test/dummy/db/schema.rb
171
+ - test/dummy/log/development.log
172
+ - test/dummy/log/test.log
167
173
  - test/dummy/public/404.html
168
174
  - test/dummy/public/422.html
169
175
  - test/dummy/public/500.html