human_attribute_values 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e69000f3e3d22f9f8bc1b4edf94a3ca9341827b
4
- data.tar.gz: 09cde2062b4be770daffb7974cecec2383e4683d
3
+ metadata.gz: 20501ce130627ce2e0c62e2daa3ff6d2315a1ccf
4
+ data.tar.gz: a994f3e5afad8c5adeb4c5118ba8d6223425f5c5
5
5
  SHA512:
6
- metadata.gz: 6183783cc53d608a8cc0b75569555e45f11eaa7ad9c36f98927aad781ddca15e623d5c057746c513835fe584b9bfb9b08817e9229b59c0caafce4e0b4e787700
7
- data.tar.gz: 7f7122f00c80c8c40a7be5a76a968b8206280a9f4f01e75a5b84fe1957fe2fd85fabfe61e892a89be448b4f51f96dd0a46f9963594b8b6e746afdbd643e31c7e
6
+ metadata.gz: c675f3214d67e3933ddf35e765d68ea88e01da02e0dcaae8a029d889d43261655a96cbf82fd0ccff116f2be51ac621713d548e9898abef7b0de13f3e98118e5d
7
+ data.tar.gz: 707a03956eeac3e2f1712cb827f580f42031c85f1952c6a321af0d204034ccb6aed6311f5f2e877e51c5c0039e4021ac727c89d567feb85814e2826248b80b1d
data/README.md CHANGED
@@ -1,13 +1,17 @@
1
1
  # human_attribute_values
2
2
  [![Build Status](https://travis-ci.org/RST-J/human_attribute_values.svg?branch=master)](https://travis-ci.org/RST-J/human_attribute_values)
3
+ [![Gem Version](https://badge.fury.io/rb/human_attribute_values.svg)](http://badge.fury.io/rb/human_attribute_values)
3
4
 
4
5
  human_attribute_values is a Rails plugin which provides translation for model attribute values using the Rails I18n API (analogously to [human_attribute_name](http://apidock.com/rails/v4.1.8/ActiveModel/Translation/human_attribute_name)).
5
6
 
6
7
  ## Installation
8
+ ```
9
+ gem install human_attribute_values
10
+ ```
7
11
 
8
12
  ## Supported versions
9
- * Rails: 4.18
10
- * Ruby: tested for MRI 1.9 to 2.2 and Rubinius (JRuby should also work though)
13
+ * Rails: >= 4.1.8
14
+ * Ruby: MRI >= 2.0 and Rubinius (JRuby should also work though)
11
15
 
12
16
  ## Usage
13
17
  The gem defines ``human_attribute_value`` on each model, both as instance and as class method.
@@ -21,7 +25,7 @@ en:
21
25
  schroedinger:
22
26
  cat_status:
23
27
  dead_and_alive: The box is still closed.
24
- alive: You opened the box and kitty purs.
28
+ alive: You opened the box and kitty purrs.
25
29
  ```
26
30
 
27
31
  Translations:
@@ -30,16 +34,16 @@ class Schroedinger < ActiveRecord::Base
30
34
  enum cat_status: {dead_and_alive: 0, alive: 1, dead: 2}
31
35
  end
32
36
 
33
- # Translate by calling human_attribute_value with the attribute to be translated on instances
37
+ # Translation on instances by passing the attribute to be translated
34
38
  Schroedinger.new(cat_status: :dead_and_alive).human_attribute_value(:cat_status)
35
39
  => "The box is still closed."
36
40
 
37
- # Translate a value by passing attribute and value to human_attribute_value on the model class
38
- Schroedinger.new.human_attribute_value(:cat_status, :alive)
41
+ # Translation on the model class by passing attribute and value
42
+ Schroedinger.human_attribute_value(:cat_status, :alive)
39
43
  => "You opened the box and kitty purs."
40
44
 
41
45
  # If there is no translation specified in the locale, the stringified value is returned
42
- Schroedinger.new.human_attribute_value(:cat_status, :dead)
46
+ Schroedinger.human_attribute_value(:cat_status, :dead)
43
47
  => "dead"
44
48
 
45
49
  ```
@@ -1,3 +1,3 @@
1
1
  module HumanAttributeValues
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -13,7 +13,7 @@ Dummy::Application.configure do
13
13
  config.eager_load = false
14
14
 
15
15
  # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
16
+ config.serve_static_files = true
17
17
  config.static_cache_control = "public, max-age=3600"
18
18
 
19
19
  # Show full error reports and disable caching.
@@ -33,4 +33,6 @@ Dummy::Application.configure do
33
33
 
34
34
  # Print deprecation notices to the stderr.
35
35
  config.active_support.deprecation = :stderr
36
+
37
+ config.active_support.test_order = :random
36
38
  end
Binary file
Binary file
@@ -1,303 +1,46 @@
1
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
- Migrating to Parent (20150131153819)
3
-  (0.0ms) begin transaction
4
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
5
-  (65.8ms) commit transaction
6
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
7
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
- Migrating to Parent (20150131153819)
10
-  (0.0ms) begin transaction
11
-  (0.1ms) DROP TABLE "parent"
12
- SQLite3::SQLException: no such table: parent: DROP TABLE "parent"
13
-  (0.0ms) rollback transaction
14
-  (71.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1
+  (130.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
15
2
   (0.1ms) select sqlite_version(*)
16
-  (105.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
17
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
- Migrating to CreateTheAnswers (20150127220502)
19
-  (0.0ms) begin transaction
20
-  (0.2ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
21
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
22
-  (62.1ms) commit transaction
23
- Migrating to Parent (20150131153819)
24
-  (0.0ms) begin transaction
25
-  (0.2ms) CREATE TABLE "parent" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
26
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
27
-  (65.2ms) commit transaction
28
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
-  (96.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
30
-  (0.1ms) select sqlite_version(*)
31
-  (99.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
32
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
- Migrating to CreateTheAnswers (20150127220502)
34
-  (0.0ms) begin transaction
35
-  (0.2ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
36
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
37
-  (106.6ms) commit transaction
38
- Migrating to Parent (20150131153819)
39
-  (0.1ms) begin transaction
40
-  (0.3ms) CREATE TABLE "parent" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
41
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
42
-  (64.3ms) commit transaction
43
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
-  (93.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
45
-  (0.1ms) select sqlite_version(*)
46
-  (99.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
48
- Migrating to CreateTheAnswers (20150127220502)
49
-  (0.0ms) begin transaction
50
-  (0.2ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
51
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
52
-  (106.6ms) commit transaction
53
- Migrating to CreateParents (20150131153819)
54
-  (0.0ms) begin transaction
55
-  (0.2ms) CREATE TABLE "parent" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
56
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
57
-  (65.2ms) commit transaction
58
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
59
-  (90.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
60
-  (0.1ms) select sqlite_version(*)
61
-  (111.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
62
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3
+  (135.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
63
5
  Migrating to CreateTheAnswers (20150127220502)
64
-  (0.0ms) begin transaction
65
-  (0.2ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
66
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
67
-  (106.0ms) commit transaction
68
- Migrating to CreateParents (20150131153819)
69
6
   (0.1ms) begin transaction
70
-  (0.2ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
71
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
72
-  (65.2ms) commit transaction
73
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
74
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
75
- Migrating to CreateBooleanModels (20150131161322)
76
-  (0.0ms) begin transaction
77
-  (0.2ms) CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime) 
78
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
79
-  (43.4ms) commit transaction
80
- Migrating to CreateNumericModels (20150131162551)
81
-  (0.0ms) begin transaction
82
-  (0.2ms) CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime) 
83
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
84
-  (26.3ms) commit transaction
85
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
86
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
87
- Migrating to CreateLexicons (20150131164609)
88
-  (0.0ms) begin transaction
89
-  (0.2ms) CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answers_id" integer, "created_at" datetime, "updated_at" datetime) 
90
-  (0.0ms) select sqlite_version(*)
91
-  (0.1ms) CREATE INDEX "index_lexicons_on_answers_id" ON "lexicons" ("answers_id")
92
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
93
-  (44.0ms) commit transaction
94
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
95
-  (0.1ms)  SELECT sql
96
- FROM sqlite_master
97
- WHERE name='index_lexicons_on_answers_id' AND type='index'
98
- UNION ALL
99
- SELECT sql
100
- FROM sqlite_temp_master
101
- WHERE name='index_lexicons_on_answers_id' AND type='index'
102
- 
103
-  (94.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
104
-  (0.1ms) select sqlite_version(*)
105
-  (120.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
106
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
107
- Migrating to CreateTheAnswers (20150127220502)
108
-  (0.0ms) begin transaction
109
-  (0.2ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
110
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
111
-  (106.5ms) commit transaction
7
+ DEPRECATION WARNING: `#timestamp` 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 /home/jonas/repos/human_attribute_values/test/dummy/db/migrate/20150127220502_create_the_answers.rb:6)
8
+  (0.5ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar, "created_at" datetime, "updated_at" datetime)
9
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
10
+  (175.8ms) commit transaction
112
11
  Migrating to CreateParents (20150131153819)
113
12
   (0.1ms) begin transaction
114
-  (0.3ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
115
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
116
-  (64.0ms) commit transaction
117
- Migrating to CreateBooleanModels (20150131161322)
118
-  (0.1ms) begin transaction
119
-  (0.2ms) CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
120
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
121
-  (269.3ms) commit transaction
122
- Migrating to CreateNumericModels (20150131162551)
123
-  (0.0ms) begin transaction
124
-  (0.2ms) CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
125
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
126
-  (73.4ms) commit transaction
127
- Migrating to CreateLexicons (20150131164609)
128
-  (0.1ms) begin transaction
129
-  (0.3ms) CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer_id" integer, "created_at" datetime, "updated_at" datetime)
130
-  (0.1ms) CREATE INDEX "index_lexicons_on_answer_id" ON "lexicons" ("answer_id")
131
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
132
-  (73.9ms) commit transaction
133
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
134
-  (0.1ms)  SELECT sql
135
- FROM sqlite_master
136
- WHERE name='index_lexicons_on_answer_id' AND type='index'
137
- UNION ALL
138
- SELECT sql
139
- FROM sqlite_temp_master
140
- WHERE name='index_lexicons_on_answer_id' AND type='index'
141
- 
142
-  (103.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
143
-  (0.1ms) select sqlite_version(*)
144
-  (110.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
145
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
146
- Migrating to CreateTheAnswers (20150127220502)
147
-  (0.0ms) begin transaction
148
-  (0.2ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
149
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
150
-  (117.4ms) commit transaction
151
- Migrating to CreateParents (20150131153819)
152
-  (0.0ms) begin transaction
153
-  (0.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
13
+ DEPRECATION WARNING: `#timestamp` 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 /home/jonas/repos/human_attribute_values/test/dummy/db/migrate/20150131153819_create_parents.rb:7)
14
+  (0.3ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "field" varchar, "created_at" datetime, "updated_at" datetime)
154
15
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
155
-  (66.6ms) commit transaction
16
+  (287.9ms) commit transaction
156
17
  Migrating to CreateBooleanModels (20150131161322)
157
18
   (0.1ms) begin transaction
158
-  (0.1ms) CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
159
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
160
-  (283.4ms) commit transaction
19
+ DEPRECATION WARNING: `#timestamp` 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 /home/jonas/repos/human_attribute_values/test/dummy/db/migrate/20150131161322_create_boolean_models.rb:6)
20
+  (0.5ms) CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
21
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
22
+  (186.4ms) commit transaction
161
23
  Migrating to CreateNumericModels (20150131162551)
162
24
   (0.1ms) begin transaction
163
-  (0.2ms) CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
164
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
165
-  (88.9ms) commit transaction
166
- Migrating to CreateLexicons (20150131164609)
167
-  (0.1ms) begin transaction
168
-  (0.3ms) CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
169
-  (0.3ms) CREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")
170
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
171
-  (85.4ms) commit transaction
172
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
173
-  (0.1ms)  SELECT sql
174
- FROM sqlite_master
175
- WHERE name='index_lexicons_on_the_answer_id' AND type='index'
176
- UNION ALL
177
- SELECT sql
178
- FROM sqlite_temp_master
179
- WHERE name='index_lexicons_on_the_answer_id' AND type='index'
180
- 
181
-  (91.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
182
-  (0.1ms) select sqlite_version(*)
183
-  (120.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
184
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
185
- Migrating to CreateTheAnswers (20150127220502)
186
-  (0.1ms) begin transaction
187
-  (0.4ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
188
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
189
-  (101.1ms) commit transaction
190
- Migrating to CreateParents (20150131153819)
191
-  (0.0ms) begin transaction
192
-  (0.2ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
193
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
194
-  (65.4ms) commit transaction
195
- Migrating to CreateBooleanModels (20150131161322)
196
-  (0.0ms) begin transaction
197
-  (0.1ms) CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
198
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
199
-  (232.0ms) commit transaction
200
- Migrating to CreateNumericModels (20150131162551)
201
-  (0.1ms) begin transaction
202
-  (0.2ms) CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
203
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
204
-  (85.5ms) commit transaction
25
+ DEPRECATION WARNING: `#timestamp` 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 /home/jonas/repos/human_attribute_values/test/dummy/db/migrate/20150131162551_create_numeric_models.rb:7)
26
+  (0.6ms) CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
27
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
28
+  (186.6ms) commit transaction
205
29
  Migrating to CreateLexicons (20150131164609)
206
30
   (0.1ms) begin transaction
31
+ DEPRECATION WARNING: `#timestamp` 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 /home/jonas/repos/human_attribute_values/test/dummy/db/migrate/20150131164609_create_lexicons.rb:6)
207
32
   (0.5ms) CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
208
33
   (0.3ms) CREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")
209
34
  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
210
-  (87.0ms) commit transaction
211
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
212
-  (0.1ms)  SELECT sql
213
- FROM sqlite_master
214
- WHERE name='index_lexicons_on_the_answer_id' AND type='index'
215
- UNION ALL
216
- SELECT sql
217
- FROM sqlite_temp_master
218
- WHERE name='index_lexicons_on_the_answer_id' AND type='index'
219
- 
220
-  (78.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
221
-  (0.2ms) select sqlite_version(*)
222
-  (87.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
223
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
224
- Migrating to CreateTheAnswers (20150127220502)
225
-  (0.1ms) begin transaction
226
-  (0.3ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
227
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
228
-  (125.7ms) commit transaction
229
- Migrating to CreateParents (20150131153819)
230
-  (0.0ms) begin transaction
231
-  (0.2ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
232
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
233
-  (98.6ms) commit transaction
234
- Migrating to CreateBooleanModels (20150131161322)
235
-  (0.0ms) begin transaction
236
-  (0.2ms) CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
237
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
238
-  (336.3ms) commit transaction
239
- Migrating to CreateNumericModels (20150131162551)
240
-  (0.0ms) begin transaction
241
-  (0.1ms) CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
242
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
243
-  (152.8ms) commit transaction
244
- Migrating to CreateLexicons (20150131164609)
245
-  (0.1ms) begin transaction
246
-  (0.2ms) CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
247
-  (0.1ms) CREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")
248
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
249
-  (115.1ms) commit transaction
35
+  (106.6ms) commit transaction
250
36
  Migrating to CreateEnumModels (20150131170613)
251
-  (0.0ms) begin transaction
252
-  (0.2ms) CREATE TABLE "enum_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "created_at" datetime, "updated_at" datetime) 
253
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131170613"]]
254
-  (65.4ms) commit transaction
255
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
256
-  (0.3ms)  SELECT sql
257
- FROM sqlite_master
258
- WHERE name='index_lexicons_on_the_answer_id' AND type='index'
259
- UNION ALL
260
- SELECT sql
261
- FROM sqlite_temp_master
262
- WHERE name='index_lexicons_on_the_answer_id' AND type='index'
263
- 
264
-  (97.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
265
-  (0.2ms) select sqlite_version(*)
266
-  (119.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
267
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
268
- Migrating to CreateTheAnswers (20150127220502)
269
-  (0.0ms) begin transaction
270
-  (0.2ms) CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
271
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150127220502"]]
272
-  (106.2ms) commit transaction
273
- Migrating to CreateParents (20150131153819)
274
-  (0.1ms) begin transaction
275
-  (0.2ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
276
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131153819"]]
277
-  (66.0ms) commit transaction
278
- Migrating to CreateBooleanModels (20150131161322)
279
-  (0.1ms) begin transaction
280
-  (0.2ms) CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
281
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
282
-  (249.9ms) commit transaction
283
- Migrating to CreateNumericModels (20150131162551)
284
-  (0.0ms) begin transaction
285
-  (0.2ms) CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
286
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
287
-  (89.1ms) commit transaction
288
- Migrating to CreateLexicons (20150131164609)
289
-  (0.2ms) begin transaction
290
-  (0.6ms) CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
291
-  (0.3ms) CREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")
292
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
293
-  (74.7ms) commit transaction
294
- Migrating to CreateEnumModels (20150131170613)
295
-  (0.3ms) begin transaction
296
-  (0.6ms) CREATE TABLE "enum_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "created_at" datetime, "updated_at" datetime) 
37
+  (0.1ms) begin transaction
38
+ DEPRECATION WARNING: `#timestamp` 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 /home/jonas/repos/human_attribute_values/test/dummy/db/migrate/20150131170613_create_enum_models.rb:6)
39
+  (0.5ms) CREATE TABLE "enum_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "created_at" datetime, "updated_at" datetime) 
297
40
  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131170613"]]
298
-  (106.3ms) commit transaction
41
+  (198.5ms) commit transaction
299
42
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
300
-  (0.1ms)  SELECT sql
43
+  (0.3ms)  SELECT sql
301
44
  FROM sqlite_master
302
45
  WHERE name='index_lexicons_on_the_answer_id' AND type='index'
303
46
  UNION ALL