economy 4.0.2.0 → 4.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -12
- data/lib/economy/railtie.rb +1 -1
- data/lib/economy/version.rb +1 -1
- data/lib/generators/economy/install/install_generator.rb +1 -1
- data/test/dummy/db/migrate/20161115135521_create_exchanges.rb +3 -3
- data/test/dummy/db/migrate/20161115145905_create_products.rb +1 -1
- data/test/dummy/db/migrate/20161115150024_create_plans.rb +1 -1
- data/test/dummy/db/schema.rb +15 -15
- data/test/dummy/log/development.log +168 -0
- data/test/dummy/log/test.log +668 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13d10a77b47402a2a07309995a8ff50e0ae557b8
|
4
|
+
data.tar.gz: a64781d6c6609cc1dc4d65bfbfa27b80bc71351f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8509d0e01126a6fd1e615fc236d92001d73583543072ee4033965e08b34b5f067923931b18896f9b91dd718f3abc6beec484e41adda54ad406d90ab1f9018650
|
7
|
+
data.tar.gz: e99d82b0127de9e80ec18212f2b755def17db253c5ebe1cc06ac490a56d01e3193a18953d0de63ec82ab0d760e3ccf30f3775f1324796d8de15f1c8f9052aa4f
|
data/README.md
CHANGED
@@ -70,22 +70,24 @@ NOTE: You may want to personalize the generated config/redis.yml.
|
|
70
70
|
|
71
71
|
### Definitions
|
72
72
|
|
73
|
+
Define the money field in your models:
|
74
|
+
```ruby
|
75
|
+
class Product < ActiveRecord::Base
|
76
|
+
monetize :price
|
77
|
+
end
|
78
|
+
```
|
79
|
+
|
73
80
|
Add the money columns to your tables:
|
74
81
|
```ruby
|
75
82
|
class AddPriceToProducts < ActiveRecord::Migration
|
76
83
|
def change
|
77
84
|
add_column :products, :price, :decimal, precision: 24, scale: 6
|
78
|
-
add_column :products, :currency, :string
|
85
|
+
add_column :products, :currency, :string
|
79
86
|
end
|
80
87
|
end
|
81
88
|
```
|
82
89
|
|
83
|
-
|
84
|
-
```ruby
|
85
|
-
class Product < ActiveRecord::Base
|
86
|
-
monetize :price
|
87
|
-
end
|
88
|
-
```
|
90
|
+
NOTE: You can use a gobal "currency" column o a prefixed "price_currency" column.
|
89
91
|
|
90
92
|
### Attributes
|
91
93
|
|
@@ -97,11 +99,17 @@ product.currency = 'USD'
|
|
97
99
|
|
98
100
|
Arithmetics are intuitive:
|
99
101
|
```ruby
|
100
|
-
product.price * 2
|
101
|
-
|
102
|
+
product.price * 2
|
103
|
+
# => U$S 40
|
104
|
+
|
105
|
+
product.price / 2
|
106
|
+
# => U$S 10
|
102
107
|
|
103
|
-
product.price + Economy::Money.new(10, 'USD')
|
104
|
-
|
108
|
+
product.price + Economy::Money.new(10, 'USD')
|
109
|
+
# => U$S 30
|
110
|
+
|
111
|
+
product.price - Economy::Money.new(10, 'USD')
|
112
|
+
# => U$S 10
|
105
113
|
```
|
106
114
|
|
107
115
|
To exchange to another currency:
|
@@ -116,7 +124,7 @@ The formatting method is to_s, it uses active support, so there is no need to ca
|
|
116
124
|
|
117
125
|
### Rates
|
118
126
|
|
119
|
-
|
127
|
+
To update rates:
|
120
128
|
```
|
121
129
|
$ bundle exec rake economy:update_rates
|
122
130
|
```
|
@@ -128,6 +136,12 @@ Economy.update_rates
|
|
128
136
|
|
129
137
|
NOTE: You probably want to put the rake task into a cronjob.
|
130
138
|
|
139
|
+
## Contributing
|
140
|
+
|
141
|
+
Any issue, pull request, comment of any kind is more than welcome!
|
142
|
+
|
143
|
+
I will mainly ensure compatibility to PostgreSQL, AWS, Redis, Elasticsearch, FreeBSD and Memcached.
|
144
|
+
|
131
145
|
## Credits
|
132
146
|
|
133
147
|
This gem is maintained and funded by [mmontossi](https://github.com/mmontossi).
|
data/lib/economy/railtie.rb
CHANGED
@@ -2,8 +2,8 @@ module Economy
|
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
|
4
4
|
initializer 'economy.active_record' do
|
5
|
+
require 'economy/exchange'
|
5
6
|
ActiveSupport.on_load :active_record do
|
6
|
-
require 'economy/exchange'
|
7
7
|
::ActiveRecord::Base.include(
|
8
8
|
Economy::Extensions::ActiveRecord::Base
|
9
9
|
)
|
data/lib/economy/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
class CreateExchanges < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :exchanges do |t|
|
4
|
-
t.string :service
|
5
|
-
t.string :from
|
6
|
-
t.string :to
|
4
|
+
t.string :service
|
5
|
+
t.string :from
|
6
|
+
t.string :to
|
7
7
|
t.decimal :rate, precision: 24, scale: 12
|
8
8
|
|
9
9
|
t.timestamps null: false
|
data/test/dummy/db/schema.rb
CHANGED
@@ -17,29 +17,29 @@ ActiveRecord::Schema.define(version: 20161115150024) do
|
|
17
17
|
enable_extension "plpgsql"
|
18
18
|
|
19
19
|
create_table "exchanges", force: :cascade do |t|
|
20
|
-
t.string "service"
|
21
|
-
t.string "from"
|
22
|
-
t.string "to"
|
23
|
-
t.decimal "rate",
|
24
|
-
t.datetime "created_at",
|
25
|
-
t.datetime "updated_at",
|
20
|
+
t.string "service"
|
21
|
+
t.string "from"
|
22
|
+
t.string "to"
|
23
|
+
t.decimal "rate", precision: 24, scale: 12
|
24
|
+
t.datetime "created_at", null: false
|
25
|
+
t.datetime "updated_at", null: false
|
26
26
|
end
|
27
27
|
|
28
28
|
add_index "exchanges", ["from", "to"], name: "index_exchanges_on_from_and_to", using: :btree
|
29
29
|
|
30
30
|
create_table "plans", force: :cascade do |t|
|
31
|
-
t.decimal "monthly_price",
|
32
|
-
t.decimal "annually_price",
|
33
|
-
t.string "currency"
|
34
|
-
t.datetime "created_at",
|
35
|
-
t.datetime "updated_at",
|
31
|
+
t.decimal "monthly_price", precision: 24, scale: 6
|
32
|
+
t.decimal "annually_price", precision: 24, scale: 6
|
33
|
+
t.string "currency"
|
34
|
+
t.datetime "created_at", null: false
|
35
|
+
t.datetime "updated_at", null: false
|
36
36
|
end
|
37
37
|
|
38
38
|
create_table "products", force: :cascade do |t|
|
39
|
-
t.decimal "price",
|
40
|
-
t.string "price_currency"
|
41
|
-
t.datetime "created_at",
|
42
|
-
t.datetime "updated_at",
|
39
|
+
t.decimal "price", precision: 24, scale: 6
|
40
|
+
t.string "price_currency"
|
41
|
+
t.datetime "created_at", null: false
|
42
|
+
t.datetime "updated_at", null: false
|
43
43
|
end
|
44
44
|
|
45
45
|
end
|
@@ -49,6 +49,174 @@ JOIN pg_class t2 ON c.confrelid = t2.oid
|
|
49
49
|
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
50
50
|
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
51
51
|
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
52
|
+
WHERE c.contype = 'f'
|
53
|
+
AND t1.relname = 'products'
|
54
|
+
AND t3.nspname = ANY (current_schemas(false))
|
55
|
+
ORDER BY c.conname
|
56
|
+
|
57
|
+
[1m[36m (5.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
58
|
+
[1m[35m (22.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
Migrating to CreateExchanges (20161115135521)
|
61
|
+
[1m[35m (0.1ms)[0m BEGIN
|
62
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "exchanges" ("id" serial primary key, "service" character varying(30), "from" character varying(3), "to" character varying(3), "rate" decimal(24,12), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
63
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_exchanges_on_from_and_to" ON "exchanges" ("from", "to")
|
64
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115135521"]]
|
65
|
+
[1m[35m (0.4ms)[0m COMMIT
|
66
|
+
Migrating to CreateProducts (20161115145905)
|
67
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
68
|
+
[1m[35m (2.9ms)[0m CREATE TABLE "products" ("id" serial primary key, "price" decimal(24,6), "price_currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
69
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115145905"]]
|
70
|
+
[1m[35m (0.4ms)[0m COMMIT
|
71
|
+
Migrating to CreatePlans (20161115150024)
|
72
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
73
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "plans" ("id" serial primary key, "monthly_price" decimal(24,6), "annually_price" decimal(24,6), "currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
74
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115150024"]]
|
75
|
+
[1m[35m (0.4ms)[0m COMMIT
|
76
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
77
|
+
[1m[35m (3.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
78
|
+
FROM pg_constraint c
|
79
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
80
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
81
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
82
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
83
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
84
|
+
WHERE c.contype = 'f'
|
85
|
+
AND t1.relname = 'exchanges'
|
86
|
+
AND t3.nspname = ANY (current_schemas(false))
|
87
|
+
ORDER BY c.conname
|
88
|
+
|
89
|
+
[1m[36m (1.5ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
90
|
+
FROM pg_constraint c
|
91
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
92
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
93
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
94
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
95
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
96
|
+
WHERE c.contype = 'f'
|
97
|
+
AND t1.relname = 'plans'
|
98
|
+
AND t3.nspname = ANY (current_schemas(false))
|
99
|
+
ORDER BY c.conname
|
100
|
+
[0m
|
101
|
+
[1m[35m (1.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
102
|
+
FROM pg_constraint c
|
103
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
104
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
105
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
106
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
107
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
108
|
+
WHERE c.contype = 'f'
|
109
|
+
AND t1.relname = 'products'
|
110
|
+
AND t3.nspname = ANY (current_schemas(false))
|
111
|
+
ORDER BY c.conname
|
112
|
+
|
113
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
114
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
115
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
116
|
+
Migrating to CreateExchanges (20161115135521)
|
117
|
+
[1m[35m (0.1ms)[0m BEGIN
|
118
|
+
[1m[36m (4.4ms)[0m [1mCREATE TABLE "exchanges" ("id" serial primary key, "service" character varying(30), "from" character varying(3), "to" character varying(3), "rate" decimal(24,12), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
119
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_exchanges_on_from_and_to" ON "exchanges" ("from", "to")
|
120
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115135521"]]
|
121
|
+
[1m[35m (1.0ms)[0m COMMIT
|
122
|
+
Migrating to CreateProducts (20161115145905)
|
123
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
124
|
+
[1m[35m (2.4ms)[0m CREATE TABLE "products" ("id" serial primary key, "price" decimal(24,6), "price_currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
125
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115145905"]]
|
126
|
+
[1m[35m (0.3ms)[0m COMMIT
|
127
|
+
Migrating to CreatePlans (20161115150024)
|
128
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
129
|
+
[1m[35m (2.9ms)[0m CREATE TABLE "plans" ("id" serial primary key, "monthly_price" decimal(24,6), "annually_price" decimal(24,6), "currency" character varying(3), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
130
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115150024"]]
|
131
|
+
[1m[35m (0.4ms)[0m COMMIT
|
132
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
133
|
+
[1m[35m (1.7ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
134
|
+
FROM pg_constraint c
|
135
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
136
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
137
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
138
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
139
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
140
|
+
WHERE c.contype = 'f'
|
141
|
+
AND t1.relname = 'exchanges'
|
142
|
+
AND t3.nspname = ANY (current_schemas(false))
|
143
|
+
ORDER BY c.conname
|
144
|
+
|
145
|
+
[1m[36m (1.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
146
|
+
FROM pg_constraint c
|
147
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
148
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
149
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
150
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
151
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
152
|
+
WHERE c.contype = 'f'
|
153
|
+
AND t1.relname = 'plans'
|
154
|
+
AND t3.nspname = ANY (current_schemas(false))
|
155
|
+
ORDER BY c.conname
|
156
|
+
[0m
|
157
|
+
[1m[35m (1.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
158
|
+
FROM pg_constraint c
|
159
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
160
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
161
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
162
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
163
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
164
|
+
WHERE c.contype = 'f'
|
165
|
+
AND t1.relname = 'products'
|
166
|
+
AND t3.nspname = ANY (current_schemas(false))
|
167
|
+
ORDER BY c.conname
|
168
|
+
|
169
|
+
[1m[36m (14.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
170
|
+
[1m[35m (22.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
171
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
172
|
+
Migrating to CreateExchanges (20161115135521)
|
173
|
+
[1m[35m (0.2ms)[0m BEGIN
|
174
|
+
[1m[36m (20.7ms)[0m [1mCREATE TABLE "exchanges" ("id" serial primary key, "service" character varying, "from" character varying, "to" character varying, "rate" decimal(24,12), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
175
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_exchanges_on_from_and_to" ON "exchanges" ("from", "to")
|
176
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115135521"]]
|
177
|
+
[1m[35m (11.5ms)[0m COMMIT
|
178
|
+
Migrating to CreateProducts (20161115145905)
|
179
|
+
[1m[36m (6.2ms)[0m [1mBEGIN[0m
|
180
|
+
[1m[35m (6.6ms)[0m CREATE TABLE "products" ("id" serial primary key, "price" decimal(24,6), "price_currency" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
181
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115145905"]]
|
182
|
+
[1m[35m (0.5ms)[0m COMMIT
|
183
|
+
Migrating to CreatePlans (20161115150024)
|
184
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
185
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "plans" ("id" serial primary key, "monthly_price" decimal(24,6), "annually_price" decimal(24,6), "currency" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
186
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115150024"]]
|
187
|
+
[1m[35m (0.5ms)[0m COMMIT
|
188
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
189
|
+
[1m[35m (2.1ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
190
|
+
FROM pg_constraint c
|
191
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
192
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
193
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
194
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
195
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
196
|
+
WHERE c.contype = 'f'
|
197
|
+
AND t1.relname = 'exchanges'
|
198
|
+
AND t3.nspname = ANY (current_schemas(false))
|
199
|
+
ORDER BY c.conname
|
200
|
+
|
201
|
+
[1m[36m (1.6ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
202
|
+
FROM pg_constraint c
|
203
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
204
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
205
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
206
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
207
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
208
|
+
WHERE c.contype = 'f'
|
209
|
+
AND t1.relname = 'plans'
|
210
|
+
AND t3.nspname = ANY (current_schemas(false))
|
211
|
+
ORDER BY c.conname
|
212
|
+
[0m
|
213
|
+
[1m[35m (1.6ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
214
|
+
FROM pg_constraint c
|
215
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
216
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
217
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
218
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
219
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
52
220
|
WHERE c.contype = 'f'
|
53
221
|
AND t1.relname = 'products'
|
54
222
|
AND t3.nspname = ANY (current_schemas(false))
|
data/test/dummy/log/test.log
CHANGED
@@ -4012,3 +4012,671 @@ RateTest: test_retries
|
|
4012
4012
|
RateTest: test_yahoo
|
4013
4013
|
--------------------
|
4014
4014
|
[1m[35m (0.2ms)[0m ROLLBACK
|
4015
|
+
[1m[36mActiveRecord::SchemaMigration Load (25.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4016
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4017
|
+
----------------------
|
4018
|
+
RateTest: test_retries
|
4019
|
+
----------------------
|
4020
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4021
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4022
|
+
--------------------
|
4023
|
+
RateTest: test_yahoo
|
4024
|
+
--------------------
|
4025
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4026
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4027
|
+
-------------------------
|
4028
|
+
MoneyTest: test_/_and_div
|
4029
|
+
-------------------------
|
4030
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4031
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.941115"], ["updated_at", "2016-12-13 17:58:10.941115"]]
|
4032
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4033
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4034
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.946143"], ["updated_at", "2016-12-13 17:58:10.946143"]]
|
4035
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4036
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4037
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4038
|
+
------------------
|
4039
|
+
MoneyTest: test_-@
|
4040
|
+
------------------
|
4041
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4042
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.949180"], ["updated_at", "2016-12-13 17:58:10.949180"]]
|
4043
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4044
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4045
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.950666"], ["updated_at", "2016-12-13 17:58:10.950666"]]
|
4046
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4047
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4048
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4049
|
+
-------------------------
|
4050
|
+
MoneyTest: test_remainder
|
4051
|
+
-------------------------
|
4052
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4053
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.952956"], ["updated_at", "2016-12-13 17:58:10.952956"]]
|
4054
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4055
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4056
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.954555"], ["updated_at", "2016-12-13 17:58:10.954555"]]
|
4057
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4058
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4059
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4060
|
+
-------------------------
|
4061
|
+
MoneyTest: test_negative?
|
4062
|
+
-------------------------
|
4063
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4064
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.957268"], ["updated_at", "2016-12-13 17:58:10.957268"]]
|
4065
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4066
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4067
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.958708"], ["updated_at", "2016-12-13 17:58:10.958708"]]
|
4068
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4069
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4070
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4071
|
+
-----------------
|
4072
|
+
MoneyTest: test_<
|
4073
|
+
-----------------
|
4074
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4075
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.960864"], ["updated_at", "2016-12-13 17:58:10.960864"]]
|
4076
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4077
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4078
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.962183"], ["updated_at", "2016-12-13 17:58:10.962183"]]
|
4079
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4080
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4081
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4082
|
+
---------------------------
|
4083
|
+
MoneyTest: test_exchange_to
|
4084
|
+
---------------------------
|
4085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4086
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.964616"], ["updated_at", "2016-12-13 17:58:10.964616"]]
|
4087
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4088
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4089
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.965854"], ["updated_at", "2016-12-13 17:58:10.965854"]]
|
4090
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4091
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4092
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4093
|
+
----------------------------
|
4094
|
+
MoneyTest: test_%_and_modulo
|
4095
|
+
----------------------------
|
4096
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4097
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.967963"], ["updated_at", "2016-12-13 17:58:10.967963"]]
|
4098
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4099
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4100
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.969235"], ["updated_at", "2016-12-13 17:58:10.969235"]]
|
4101
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4102
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4103
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4104
|
+
----------------------
|
4105
|
+
MoneyTest: test_coerce
|
4106
|
+
----------------------
|
4107
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4108
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.971804"], ["updated_at", "2016-12-13 17:58:10.971804"]]
|
4109
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4110
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4111
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.973091"], ["updated_at", "2016-12-13 17:58:10.973091"]]
|
4112
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4113
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4114
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4115
|
+
-----------------
|
4116
|
+
MoneyTest: test_*
|
4117
|
+
-----------------
|
4118
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4119
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.975000"], ["updated_at", "2016-12-13 17:58:10.975000"]]
|
4120
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4121
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4122
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.976046"], ["updated_at", "2016-12-13 17:58:10.976046"]]
|
4123
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4124
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4125
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4126
|
+
-------------------------
|
4127
|
+
MoneyTest: test_positive?
|
4128
|
+
-------------------------
|
4129
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4130
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.977842"], ["updated_at", "2016-12-13 17:58:10.977842"]]
|
4131
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4132
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4133
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.979131"], ["updated_at", "2016-12-13 17:58:10.979131"]]
|
4134
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4135
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4136
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4137
|
+
-----------------
|
4138
|
+
MoneyTest: test_-
|
4139
|
+
-----------------
|
4140
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4141
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.981050"], ["updated_at", "2016-12-13 17:58:10.981050"]]
|
4142
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4144
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.982195"], ["updated_at", "2016-12-13 17:58:10.982195"]]
|
4145
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4146
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4147
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4148
|
+
---------------------------------
|
4149
|
+
MoneyTest: test_abs_and_magnitude
|
4150
|
+
---------------------------------
|
4151
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4152
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.984610"], ["updated_at", "2016-12-13 17:58:10.984610"]]
|
4153
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4154
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4155
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.986113"], ["updated_at", "2016-12-13 17:58:10.986113"]]
|
4156
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4157
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4158
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4159
|
+
-----------------
|
4160
|
+
MoneyTest: test_+
|
4161
|
+
-----------------
|
4162
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4163
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.988405"], ["updated_at", "2016-12-13 17:58:10.988405"]]
|
4164
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4165
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4166
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.989848"], ["updated_at", "2016-12-13 17:58:10.989848"]]
|
4167
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4168
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4169
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4170
|
+
---------------------
|
4171
|
+
MoneyTest: test_zero?
|
4172
|
+
---------------------
|
4173
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4174
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.991887"], ["updated_at", "2016-12-13 17:58:10.991887"]]
|
4175
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4177
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.993104"], ["updated_at", "2016-12-13 17:58:10.993104"]]
|
4178
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4179
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4180
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4181
|
+
----------------------
|
4182
|
+
MoneyTest: test_divmod
|
4183
|
+
----------------------
|
4184
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4185
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.994960"], ["updated_at", "2016-12-13 17:58:10.994960"]]
|
4186
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4187
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4188
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:10.996247"], ["updated_at", "2016-12-13 17:58:10.996247"]]
|
4189
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4190
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4191
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4192
|
+
--------------------
|
4193
|
+
MoneyTest: test_to_s
|
4194
|
+
--------------------
|
4195
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4196
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:10.998419"], ["updated_at", "2016-12-13 17:58:10.998419"]]
|
4197
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4198
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4199
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.003814"], ["updated_at", "2016-12-13 17:58:11.003814"]]
|
4200
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4201
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4202
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4203
|
+
-------------------
|
4204
|
+
MoneyTest: test_===
|
4205
|
+
-------------------
|
4206
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4207
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.013076"], ["updated_at", "2016-12-13 17:58:11.013076"]]
|
4208
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4209
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4210
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.014799"], ["updated_at", "2016-12-13 17:58:11.014799"]]
|
4211
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4212
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4213
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4214
|
+
-------------------
|
4215
|
+
MoneyTest: test_<=>
|
4216
|
+
-------------------
|
4217
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4218
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.017330"], ["updated_at", "2016-12-13 17:58:11.017330"]]
|
4219
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4220
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4221
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.018819"], ["updated_at", "2016-12-13 17:58:11.018819"]]
|
4222
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4223
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4224
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4225
|
+
------------------------
|
4226
|
+
MoneyTest: test_nonzero?
|
4227
|
+
------------------------
|
4228
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4229
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.021398"], ["updated_at", "2016-12-13 17:58:11.021398"]]
|
4230
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4231
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4232
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.022853"], ["updated_at", "2016-12-13 17:58:11.022853"]]
|
4233
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4234
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4235
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4236
|
+
-----------------------------------
|
4237
|
+
MoneyTest: test_to_json_and_as_json
|
4238
|
+
-----------------------------------
|
4239
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4240
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.024963"], ["updated_at", "2016-12-13 17:58:11.024963"]]
|
4241
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4242
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4243
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.033881"], ["updated_at", "2016-12-13 17:58:11.033881"]]
|
4244
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4245
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4246
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4247
|
+
------------------------
|
4248
|
+
RecordTest: test_helpers
|
4249
|
+
------------------------
|
4250
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4251
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.036860"], ["updated_at", "2016-12-13 17:58:11.036860"]]
|
4252
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4254
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.038403"], ["updated_at", "2016-12-13 17:58:11.038403"]]
|
4255
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4256
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4257
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4258
|
+
---------------------------
|
4259
|
+
RecordTest: test_validators
|
4260
|
+
---------------------------
|
4261
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4262
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.045662"], ["updated_at", "2016-12-13 17:58:11.045662"]]
|
4263
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4264
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4265
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.047227"], ["updated_at", "2016-12-13 17:58:11.047227"]]
|
4266
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4267
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4268
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4269
|
+
---------------------------
|
4270
|
+
RecordTest: test_persistent
|
4271
|
+
---------------------------
|
4272
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4273
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.051165"], ["updated_at", "2016-12-13 17:58:11.051165"]]
|
4274
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4275
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4276
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.052678"], ["updated_at", "2016-12-13 17:58:11.052678"]]
|
4277
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4278
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4279
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-13 17:58:11.058758"], ["updated_at", "2016-12-13 17:58:11.058758"]]
|
4280
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4281
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4282
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3[0m [["monthly_price", "100.0"], ["updated_at", "2016-12-13 17:58:11.060780"], ["id", 12]]
|
4283
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4284
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4285
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("price", "price_currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["price", "15.0"], ["price_currency", "UYU"], ["created_at", "2016-12-13 17:58:11.065324"], ["updated_at", "2016-12-13 17:58:11.065324"]]
|
4286
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4287
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4288
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "products" SET "price" = $1, "price_currency" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["price", "5.0"], ["price_currency", "USD"], ["updated_at", "2016-12-13 17:58:11.066989"], ["id", 9]]
|
4289
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4290
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4291
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4292
|
+
---------------------------------
|
4293
|
+
RecordTest: test_default_currency
|
4294
|
+
---------------------------------
|
4295
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4296
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-13 17:58:11.069583"], ["updated_at", "2016-12-13 17:58:11.069583"]]
|
4297
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4298
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4299
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-13 17:58:11.071187"], ["updated_at", "2016-12-13 17:58:11.071187"]]
|
4300
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4301
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4302
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4303
|
+
---------------------------
|
4304
|
+
TaskTest: test_update_rates
|
4305
|
+
---------------------------
|
4306
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4307
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-13 17:58:11.092394"], ["updated_at", "2016-12-13 17:58:11.092394"]]
|
4308
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4309
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4310
|
+
[1m[36mSQL (5.9ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-13 17:58:11.094060"], ["updated_at", "2016-12-13 17:58:11.094060"]]
|
4311
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4312
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
4313
|
+
[1m[35mEconomy::Exchange Exists (0.4ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
4314
|
+
[1m[36mEconomy::Exchange Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
4315
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4316
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4317
|
+
---------------------------
|
4318
|
+
GeneratorTest: test_install
|
4319
|
+
---------------------------
|
4320
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4321
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
4322
|
+
[1m[35m (18.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4323
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4324
|
+
Migrating to CreateExchanges (20161115135521)
|
4325
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4326
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "exchanges" ("id" serial primary key, "service" character varying, "from" character varying, "to" character varying, "rate" decimal(24,12), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
4327
|
+
[1m[35m (0.6ms)[0m CREATE INDEX "index_exchanges_on_from_and_to" ON "exchanges" ("from", "to")
|
4328
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115135521"]]
|
4329
|
+
[1m[35m (0.5ms)[0m COMMIT
|
4330
|
+
Migrating to CreateProducts (20161115145905)
|
4331
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4332
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "products" ("id" serial primary key, "price" decimal(24,6), "price_currency" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
4333
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115145905"]]
|
4334
|
+
[1m[35m (0.5ms)[0m COMMIT
|
4335
|
+
Migrating to CreatePlans (20161115150024)
|
4336
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4337
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "plans" ("id" serial primary key, "monthly_price" decimal(24,6), "annually_price" decimal(24,6), "currency" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
4338
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161115150024"]]
|
4339
|
+
[1m[35m (0.4ms)[0m COMMIT
|
4340
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4341
|
+
[1m[35m (1.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
4342
|
+
FROM pg_constraint c
|
4343
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
4344
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
4345
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
4346
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
4347
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
4348
|
+
WHERE c.contype = 'f'
|
4349
|
+
AND t1.relname = 'exchanges'
|
4350
|
+
AND t3.nspname = ANY (current_schemas(false))
|
4351
|
+
ORDER BY c.conname
|
4352
|
+
|
4353
|
+
[1m[36m (3.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
4354
|
+
FROM pg_constraint c
|
4355
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
4356
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
4357
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
4358
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
4359
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
4360
|
+
WHERE c.contype = 'f'
|
4361
|
+
AND t1.relname = 'plans'
|
4362
|
+
AND t3.nspname = ANY (current_schemas(false))
|
4363
|
+
ORDER BY c.conname
|
4364
|
+
[0m
|
4365
|
+
[1m[35m (1.6ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
4366
|
+
FROM pg_constraint c
|
4367
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
4368
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
4369
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
4370
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
4371
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
4372
|
+
WHERE c.contype = 'f'
|
4373
|
+
AND t1.relname = 'products'
|
4374
|
+
AND t3.nspname = ANY (current_schemas(false))
|
4375
|
+
ORDER BY c.conname
|
4376
|
+
|
4377
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4378
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4379
|
+
-------------------------
|
4380
|
+
MoneyTest: test_/_and_div
|
4381
|
+
-------------------------
|
4382
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4383
|
+
[1m[35mSQL (19.7ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.863260"], ["updated_at", "2016-12-14 03:03:51.863260"]]
|
4384
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4385
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4386
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.887475"], ["updated_at", "2016-12-14 03:03:51.887475"]]
|
4387
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4388
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4389
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4390
|
+
----------------------------
|
4391
|
+
MoneyTest: test_%_and_modulo
|
4392
|
+
----------------------------
|
4393
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4394
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.890714"], ["updated_at", "2016-12-14 03:03:51.890714"]]
|
4395
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4396
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4397
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.892422"], ["updated_at", "2016-12-14 03:03:51.892422"]]
|
4398
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4399
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4400
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4401
|
+
----------------------
|
4402
|
+
MoneyTest: test_coerce
|
4403
|
+
----------------------
|
4404
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4405
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.895304"], ["updated_at", "2016-12-14 03:03:51.895304"]]
|
4406
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4407
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4408
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.896762"], ["updated_at", "2016-12-14 03:03:51.896762"]]
|
4409
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4410
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4411
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4412
|
+
-----------------
|
4413
|
+
MoneyTest: test_+
|
4414
|
+
-----------------
|
4415
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4416
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.898916"], ["updated_at", "2016-12-14 03:03:51.898916"]]
|
4417
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4418
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4419
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.900259"], ["updated_at", "2016-12-14 03:03:51.900259"]]
|
4420
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4421
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4422
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4423
|
+
-----------------
|
4424
|
+
MoneyTest: test_<
|
4425
|
+
-----------------
|
4426
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4427
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.903172"], ["updated_at", "2016-12-14 03:03:51.903172"]]
|
4428
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4429
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4430
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.904731"], ["updated_at", "2016-12-14 03:03:51.904731"]]
|
4431
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4432
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4433
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4434
|
+
---------------------------------
|
4435
|
+
MoneyTest: test_abs_and_magnitude
|
4436
|
+
---------------------------------
|
4437
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4438
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.907106"], ["updated_at", "2016-12-14 03:03:51.907106"]]
|
4439
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4440
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4441
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.908427"], ["updated_at", "2016-12-14 03:03:51.908427"]]
|
4442
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4443
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4444
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4445
|
+
-------------------
|
4446
|
+
MoneyTest: test_<=>
|
4447
|
+
-------------------
|
4448
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4449
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.910822"], ["updated_at", "2016-12-14 03:03:51.910822"]]
|
4450
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4451
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4452
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.912245"], ["updated_at", "2016-12-14 03:03:51.912245"]]
|
4453
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4454
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4455
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4456
|
+
-----------------
|
4457
|
+
MoneyTest: test_-
|
4458
|
+
-----------------
|
4459
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4460
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.914602"], ["updated_at", "2016-12-14 03:03:51.914602"]]
|
4461
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4462
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4463
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.916005"], ["updated_at", "2016-12-14 03:03:51.916005"]]
|
4464
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4465
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4466
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4467
|
+
-------------------------
|
4468
|
+
MoneyTest: test_remainder
|
4469
|
+
-------------------------
|
4470
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4471
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.918510"], ["updated_at", "2016-12-14 03:03:51.918510"]]
|
4472
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4473
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4474
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.920202"], ["updated_at", "2016-12-14 03:03:51.920202"]]
|
4475
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4476
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4477
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4478
|
+
---------------------------
|
4479
|
+
MoneyTest: test_exchange_to
|
4480
|
+
---------------------------
|
4481
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4482
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.922353"], ["updated_at", "2016-12-14 03:03:51.922353"]]
|
4483
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4484
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4485
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.923587"], ["updated_at", "2016-12-14 03:03:51.923587"]]
|
4486
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4487
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4488
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4489
|
+
---------------------
|
4490
|
+
MoneyTest: test_zero?
|
4491
|
+
---------------------
|
4492
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4493
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.925760"], ["updated_at", "2016-12-14 03:03:51.925760"]]
|
4494
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4495
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4496
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.927390"], ["updated_at", "2016-12-14 03:03:51.927390"]]
|
4497
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4498
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4499
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4500
|
+
-----------------
|
4501
|
+
MoneyTest: test_*
|
4502
|
+
-----------------
|
4503
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4504
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.929379"], ["updated_at", "2016-12-14 03:03:51.929379"]]
|
4505
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4506
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4507
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.930526"], ["updated_at", "2016-12-14 03:03:51.930526"]]
|
4508
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4509
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4510
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4511
|
+
------------------
|
4512
|
+
MoneyTest: test_-@
|
4513
|
+
------------------
|
4514
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4515
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.932618"], ["updated_at", "2016-12-14 03:03:51.932618"]]
|
4516
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4517
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4518
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.933963"], ["updated_at", "2016-12-14 03:03:51.933963"]]
|
4519
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4520
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4521
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4522
|
+
------------------------
|
4523
|
+
MoneyTest: test_nonzero?
|
4524
|
+
------------------------
|
4525
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4526
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.936576"], ["updated_at", "2016-12-14 03:03:51.936576"]]
|
4527
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4528
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4529
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.938111"], ["updated_at", "2016-12-14 03:03:51.938111"]]
|
4530
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4531
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4532
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4533
|
+
--------------------
|
4534
|
+
MoneyTest: test_to_s
|
4535
|
+
--------------------
|
4536
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4537
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.940121"], ["updated_at", "2016-12-14 03:03:51.940121"]]
|
4538
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4539
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4540
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.941339"], ["updated_at", "2016-12-14 03:03:51.941339"]]
|
4541
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4542
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4543
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4544
|
+
-----------------------------------
|
4545
|
+
MoneyTest: test_to_json_and_as_json
|
4546
|
+
-----------------------------------
|
4547
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4548
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.963856"], ["updated_at", "2016-12-14 03:03:51.963856"]]
|
4549
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4550
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4551
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.965634"], ["updated_at", "2016-12-14 03:03:51.965634"]]
|
4552
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4553
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4554
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4555
|
+
-------------------
|
4556
|
+
MoneyTest: test_===
|
4557
|
+
-------------------
|
4558
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4559
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.968330"], ["updated_at", "2016-12-14 03:03:51.968330"]]
|
4560
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4561
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4562
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.970113"], ["updated_at", "2016-12-14 03:03:51.970113"]]
|
4563
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4564
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4565
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4566
|
+
----------------------
|
4567
|
+
MoneyTest: test_divmod
|
4568
|
+
----------------------
|
4569
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4570
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.972873"], ["updated_at", "2016-12-14 03:03:51.972873"]]
|
4571
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4572
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4573
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.974213"], ["updated_at", "2016-12-14 03:03:51.974213"]]
|
4574
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4575
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4576
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4577
|
+
-------------------------
|
4578
|
+
MoneyTest: test_positive?
|
4579
|
+
-------------------------
|
4580
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.976452"], ["updated_at", "2016-12-14 03:03:51.976452"]]
|
4582
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4583
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4584
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.978036"], ["updated_at", "2016-12-14 03:03:51.978036"]]
|
4585
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4586
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4587
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4588
|
+
-------------------------
|
4589
|
+
MoneyTest: test_negative?
|
4590
|
+
-------------------------
|
4591
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4592
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.980273"], ["updated_at", "2016-12-14 03:03:51.980273"]]
|
4593
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4594
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4595
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.981949"], ["updated_at", "2016-12-14 03:03:51.981949"]]
|
4596
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4597
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4598
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4599
|
+
----------------------
|
4600
|
+
RateTest: test_retries
|
4601
|
+
----------------------
|
4602
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4603
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4604
|
+
--------------------
|
4605
|
+
RateTest: test_yahoo
|
4606
|
+
--------------------
|
4607
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4608
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4609
|
+
------------------------
|
4610
|
+
RecordTest: test_helpers
|
4611
|
+
------------------------
|
4612
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4613
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.989725"], ["updated_at", "2016-12-14 03:03:51.989725"]]
|
4614
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4615
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4616
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:51.991218"], ["updated_at", "2016-12-14 03:03:51.991218"]]
|
4617
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4618
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4619
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4620
|
+
---------------------------
|
4621
|
+
RecordTest: test_persistent
|
4622
|
+
---------------------------
|
4623
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4624
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:51.998823"], ["updated_at", "2016-12-14 03:03:51.998823"]]
|
4625
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4626
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4627
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:52.000351"], ["updated_at", "2016-12-14 03:03:52.000351"]]
|
4628
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4629
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4630
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-14 03:03:52.007810"], ["updated_at", "2016-12-14 03:03:52.007810"]]
|
4631
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4632
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4633
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3[0m [["monthly_price", "100.0"], ["updated_at", "2016-12-14 03:03:52.012211"], ["id", 1]]
|
4634
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4635
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4636
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "products" ("price", "price_currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["price", "15.0"], ["price_currency", "UYU"], ["created_at", "2016-12-14 03:03:52.017835"], ["updated_at", "2016-12-14 03:03:52.017835"]]
|
4637
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4638
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4639
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "products" SET "price" = $1, "price_currency" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["price", "5.0"], ["price_currency", "USD"], ["updated_at", "2016-12-14 03:03:52.021513"], ["id", 1]]
|
4640
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4641
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4642
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4643
|
+
---------------------------
|
4644
|
+
RecordTest: test_validators
|
4645
|
+
---------------------------
|
4646
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4647
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:52.024599"], ["updated_at", "2016-12-14 03:03:52.024599"]]
|
4648
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4649
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4650
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:52.026550"], ["updated_at", "2016-12-14 03:03:52.026550"]]
|
4651
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4652
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4653
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4654
|
+
---------------------------------
|
4655
|
+
RecordTest: test_default_currency
|
4656
|
+
---------------------------------
|
4657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4658
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 03:03:52.030778"], ["updated_at", "2016-12-14 03:03:52.030778"]]
|
4659
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4660
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4661
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 03:03:52.032221"], ["updated_at", "2016-12-14 03:03:52.032221"]]
|
4662
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4663
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4664
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4665
|
+
---------------------------
|
4666
|
+
TaskTest: test_update_rates
|
4667
|
+
---------------------------
|
4668
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4669
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-14 03:03:52.060151"], ["updated_at", "2016-12-14 03:03:52.060151"]]
|
4670
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4671
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4672
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-14 03:03:52.062103"], ["updated_at", "2016-12-14 03:03:52.062103"]]
|
4673
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4674
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
4675
|
+
[1m[35mEconomy::Exchange Exists (0.3ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
4676
|
+
[1m[36mEconomy::Exchange Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
4677
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4678
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4679
|
+
---------------------------
|
4680
|
+
GeneratorTest: test_install
|
4681
|
+
---------------------------
|
4682
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: economy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.2.
|
4
|
+
version: 4.0.2.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-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|