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 +4 -4
- data/README.md +11 -7
- data/lib/human_attribute_values/version.rb +1 -1
- data/test/dummy/config/environments/test.rb +3 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +25 -282
- data/test/dummy/log/test.log +387 -2164
- metadata +88 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20501ce130627ce2e0c62e2daa3ff6d2315a1ccf
|
4
|
+
data.tar.gz: a994f3e5afad8c5adeb4c5118ba8d6223425f5c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
10
|
-
* Ruby:
|
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
|
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
|
-
#
|
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
|
-
#
|
38
|
-
Schroedinger.
|
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.
|
46
|
+
Schroedinger.human_attribute_value(:cat_status, :dead)
|
43
47
|
=> "dead"
|
44
48
|
|
45
49
|
```
|
@@ -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.
|
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
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,303 +1,46 @@
|
|
1
|
-
[1m[
|
2
|
-
Migrating to Parent (20150131153819)
|
3
|
-
[1m[35m (0.0ms)[0m begin transaction
|
4
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
5
|
-
[1m[35m (65.8ms)[0m commit transaction
|
6
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
9
|
-
Migrating to Parent (20150131153819)
|
10
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11
|
-
[1m[35m (0.1ms)[0m DROP TABLE "parent"
|
12
|
-
SQLite3::SQLException: no such table: parent: DROP TABLE "parent"
|
13
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
14
|
-
[1m[36m (71.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
1
|
+
[1m[36m (130.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
15
2
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
16
|
-
[1m[36m (
|
17
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.
|
18
|
-
Migrating to CreateTheAnswers (20150127220502)
|
19
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
21
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
22
|
-
[1m[35m (62.1ms)[0m commit transaction
|
23
|
-
Migrating to Parent (20150131153819)
|
24
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
25
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "parent" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
|
26
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
27
|
-
[1m[35m (65.2ms)[0m commit transaction
|
28
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
-
[1m[36m (96.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
30
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
31
|
-
[1m[36m (99.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
32
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
33
|
-
Migrating to CreateTheAnswers (20150127220502)
|
34
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
36
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
37
|
-
[1m[35m (106.6ms)[0m commit transaction
|
38
|
-
Migrating to Parent (20150131153819)
|
39
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
40
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "parent" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
|
41
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
42
|
-
[1m[35m (64.3ms)[0m commit transaction
|
43
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
-
[1m[36m (93.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
45
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
46
|
-
[1m[36m (99.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
47
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
48
|
-
Migrating to CreateTheAnswers (20150127220502)
|
49
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
50
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
51
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
52
|
-
[1m[35m (106.6ms)[0m commit transaction
|
53
|
-
Migrating to CreateParents (20150131153819)
|
54
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
55
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "parent" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
|
56
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
57
|
-
[1m[35m (65.2ms)[0m commit transaction
|
58
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59
|
-
[1m[36m (90.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
60
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
61
|
-
[1m[36m (111.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
62
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3
|
+
[1m[36m (135.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
63
5
|
Migrating to CreateTheAnswers (20150127220502)
|
64
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
65
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
66
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
67
|
-
[1m[35m (106.0ms)[0m commit transaction
|
68
|
-
Migrating to CreateParents (20150131153819)
|
69
6
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70
|
-
|
71
|
-
[1m[
|
72
|
-
[1m[
|
73
|
-
[1m[
|
74
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
75
|
-
Migrating to CreateBooleanModels (20150131161322)
|
76
|
-
[1m[35m (0.0ms)[0m begin transaction
|
77
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
78
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131161322"]]
|
79
|
-
[1m[36m (43.4ms)[0m [1mcommit transaction[0m
|
80
|
-
Migrating to CreateNumericModels (20150131162551)
|
81
|
-
[1m[35m (0.0ms)[0m begin transaction
|
82
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime) [0m
|
83
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131162551"]]
|
84
|
-
[1m[36m (26.3ms)[0m [1mcommit transaction[0m
|
85
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
86
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
87
|
-
Migrating to CreateLexicons (20150131164609)
|
88
|
-
[1m[35m (0.0ms)[0m begin transaction
|
89
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answers_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
90
|
-
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
91
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_lexicons_on_answers_id" ON "lexicons" ("answers_id")[0m
|
92
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
|
93
|
-
[1m[36m (44.0ms)[0m [1mcommit transaction[0m
|
94
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
95
|
-
[1m[36m (0.1ms)[0m [1m 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
|
-
[0m
|
103
|
-
[1m[36m (94.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
104
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
105
|
-
[1m[36m (120.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
106
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
107
|
-
Migrating to CreateTheAnswers (20150127220502)
|
108
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
109
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
110
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
111
|
-
[1m[35m (106.5ms)[0m 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
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar, "created_at" datetime, "updated_at" datetime)
|
9
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
10
|
+
[1m[35m (175.8ms)[0m commit transaction
|
112
11
|
Migrating to CreateParents (20150131153819)
|
113
12
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
114
|
-
|
115
|
-
[1m[
|
116
|
-
[1m[35m (64.0ms)[0m commit transaction
|
117
|
-
Migrating to CreateBooleanModels (20150131161322)
|
118
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
119
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
|
120
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131161322"]]
|
121
|
-
[1m[35m (269.3ms)[0m commit transaction
|
122
|
-
Migrating to CreateNumericModels (20150131162551)
|
123
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
124
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
|
125
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131162551"]]
|
126
|
-
[1m[35m (73.4ms)[0m commit transaction
|
127
|
-
Migrating to CreateLexicons (20150131164609)
|
128
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
129
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer_id" integer, "created_at" datetime, "updated_at" datetime)
|
130
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_lexicons_on_answer_id" ON "lexicons" ("answer_id")[0m
|
131
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
|
132
|
-
[1m[36m (73.9ms)[0m [1mcommit transaction[0m
|
133
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
134
|
-
[1m[36m (0.1ms)[0m [1m 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
|
-
[0m
|
142
|
-
[1m[36m (103.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
143
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
144
|
-
[1m[36m (110.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
145
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
146
|
-
Migrating to CreateTheAnswers (20150127220502)
|
147
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
148
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
149
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
150
|
-
[1m[35m (117.4ms)[0m commit transaction
|
151
|
-
Migrating to CreateParents (20150131153819)
|
152
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
153
|
-
[1m[35m (0.1ms)[0m 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
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "field" varchar, "created_at" datetime, "updated_at" datetime)
|
154
15
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
155
|
-
[1m[35m (
|
16
|
+
[1m[35m (287.9ms)[0m commit transaction
|
156
17
|
Migrating to CreateBooleanModels (20150131161322)
|
157
18
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
158
|
-
|
159
|
-
[1m[
|
160
|
-
[1m[
|
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
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
|
21
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131161322"]]
|
22
|
+
[1m[35m (186.4ms)[0m commit transaction
|
161
23
|
Migrating to CreateNumericModels (20150131162551)
|
162
24
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
163
|
-
|
164
|
-
[1m[
|
165
|
-
[1m[
|
166
|
-
|
167
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
168
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
|
169
|
-
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")[0m
|
170
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
|
171
|
-
[1m[36m (85.4ms)[0m [1mcommit transaction[0m
|
172
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
173
|
-
[1m[36m (0.1ms)[0m [1m 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
|
-
[0m
|
181
|
-
[1m[36m (91.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
182
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
183
|
-
[1m[36m (120.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
184
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
185
|
-
Migrating to CreateTheAnswers (20150127220502)
|
186
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
187
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
188
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
189
|
-
[1m[35m (101.1ms)[0m commit transaction
|
190
|
-
Migrating to CreateParents (20150131153819)
|
191
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
192
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
|
193
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
194
|
-
[1m[35m (65.4ms)[0m commit transaction
|
195
|
-
Migrating to CreateBooleanModels (20150131161322)
|
196
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
197
|
-
[1m[35m (0.1ms)[0m CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
|
198
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131161322"]]
|
199
|
-
[1m[35m (232.0ms)[0m commit transaction
|
200
|
-
Migrating to CreateNumericModels (20150131162551)
|
201
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
202
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
|
203
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131162551"]]
|
204
|
-
[1m[35m (85.5ms)[0m 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
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
|
27
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131162551"]]
|
28
|
+
[1m[35m (186.6ms)[0m commit transaction
|
205
29
|
Migrating to CreateLexicons (20150131164609)
|
206
30
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
[1m[35m (0.5ms)[0m CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
|
208
33
|
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")[0m
|
209
34
|
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
|
210
|
-
[1m[36m (
|
211
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
212
|
-
[1m[36m (0.1ms)[0m [1m 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
|
-
[0m
|
220
|
-
[1m[36m (78.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
221
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
222
|
-
[1m[36m (87.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
223
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
224
|
-
Migrating to CreateTheAnswers (20150127220502)
|
225
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
226
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
227
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
228
|
-
[1m[35m (125.7ms)[0m commit transaction
|
229
|
-
Migrating to CreateParents (20150131153819)
|
230
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
|
232
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
233
|
-
[1m[35m (98.6ms)[0m commit transaction
|
234
|
-
Migrating to CreateBooleanModels (20150131161322)
|
235
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
236
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
|
237
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131161322"]]
|
238
|
-
[1m[35m (336.3ms)[0m commit transaction
|
239
|
-
Migrating to CreateNumericModels (20150131162551)
|
240
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
241
|
-
[1m[35m (0.1ms)[0m CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
|
242
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131162551"]]
|
243
|
-
[1m[35m (152.8ms)[0m commit transaction
|
244
|
-
Migrating to CreateLexicons (20150131164609)
|
245
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
246
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
|
247
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")[0m
|
248
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
|
249
|
-
[1m[36m (115.1ms)[0m [1mcommit transaction[0m
|
35
|
+
[1m[36m (106.6ms)[0m [1mcommit transaction[0m
|
250
36
|
Migrating to CreateEnumModels (20150131170613)
|
251
|
-
[1m[35m (0.
|
252
|
-
|
253
|
-
[1m[
|
254
|
-
[1m[36m (65.4ms)[0m [1mcommit transaction[0m
|
255
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
256
|
-
[1m[36m (0.3ms)[0m [1m 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
|
-
[0m
|
264
|
-
[1m[36m (97.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
265
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
266
|
-
[1m[36m (119.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
267
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
268
|
-
Migrating to CreateTheAnswers (20150127220502)
|
269
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
270
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "the_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "ultimate_truth" varchar(255), "created_at" datetime, "updated_at" datetime)
|
271
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150127220502"]]
|
272
|
-
[1m[35m (106.2ms)[0m commit transaction
|
273
|
-
Migrating to CreateParents (20150131153819)
|
274
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
275
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "field" varchar(255), "created_at" datetime, "updated_at" datetime)
|
276
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131153819"]]
|
277
|
-
[1m[35m (66.0ms)[0m commit transaction
|
278
|
-
Migrating to CreateBooleanModels (20150131161322)
|
279
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
280
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "boolean_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "boolean_field" boolean, "created_at" datetime, "updated_at" datetime)
|
281
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131161322"]]
|
282
|
-
[1m[35m (249.9ms)[0m commit transaction
|
283
|
-
Migrating to CreateNumericModels (20150131162551)
|
284
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
285
|
-
[1m[35m (0.2ms)[0m CREATE TABLE "numeric_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "integer_field" integer, "decimal_field" decimal, "created_at" datetime, "updated_at" datetime)
|
286
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150131162551"]]
|
287
|
-
[1m[35m (89.1ms)[0m commit transaction
|
288
|
-
Migrating to CreateLexicons (20150131164609)
|
289
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
290
|
-
[1m[35m (0.6ms)[0m CREATE TABLE "lexicons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "the_answer_id" integer, "created_at" datetime, "updated_at" datetime)
|
291
|
-
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_lexicons_on_the_answer_id" ON "lexicons" ("the_answer_id")[0m
|
292
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131164609"]]
|
293
|
-
[1m[36m (74.7ms)[0m [1mcommit transaction[0m
|
294
|
-
Migrating to CreateEnumModels (20150131170613)
|
295
|
-
[1m[35m (0.3ms)[0m begin transaction
|
296
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "enum_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "created_at" datetime, "updated_at" datetime) [0m
|
37
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "enum_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "created_at" datetime, "updated_at" datetime) [0m
|
297
40
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150131170613"]]
|
298
|
-
[1m[36m (
|
41
|
+
[1m[36m (198.5ms)[0m [1mcommit transaction[0m
|
299
42
|
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
300
|
-
[1m[36m (0.
|
43
|
+
[1m[36m (0.3ms)[0m [1m SELECT sql
|
301
44
|
FROM sqlite_master
|
302
45
|
WHERE name='index_lexicons_on_the_answer_id' AND type='index'
|
303
46
|
UNION ALL
|