addresses 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d7154181ed373a82fcfcc78a21023d55397a105
|
4
|
+
data.tar.gz: d5632da7e1d99386b7e4fd3f9090d7eedde0e804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16aa66c596f719e5360d18adea079556e2c840750ad21e72c89e47d92e5720105dfc214ac4ec6255236e0a5ba90ab59d270e61e91018ceb7a450df6fb8e446fe
|
7
|
+
data.tar.gz: 5f709bfa7cec85865116c6da142667cb9f21295dc1237d10c6e84eb5131f534656c8c9385215363d706c2ef223da13093f662a1541e7a94f691edf0bee9a8ffc
|
@@ -6,6 +6,8 @@ module Addresses
|
|
6
6
|
validates :zipcode_id, :number, presence: true
|
7
7
|
delegate :street, :neighborhood, :city, to: :zipcode
|
8
8
|
|
9
|
+
accepts_nested_attributes_for :zipcode, allow_destroy: false
|
10
|
+
|
9
11
|
def to_s
|
10
12
|
"#{self.street}, #{self.number}, #{self.neighborhood.name}. #{self.city.name} - #{self.city.state.acronym}"
|
11
13
|
end
|
@@ -315719,3 +315719,12 @@ rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
|
|
315719
315719
|
Rendering /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
|
315720
315720
|
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (21.9ms)
|
315721
315721
|
Rendered /Users/joice/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (128.4ms)
|
315722
|
+
Started GET "/addresses/zipcodes/05012010.json" for ::1 at 2016-09-21 14:40:54 -0300
|
315723
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
315724
|
+
Parameters: {"zipcode"=>"05012010"}
|
315725
|
+
[1m[36mAddresses::Zipcode Load (0.2ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
315726
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 10917], ["LIMIT", 1]]
|
315727
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 53], ["LIMIT", 1]]
|
315728
|
+
Completed 200 OK in 101ms (Views: 0.8ms | ActiveRecord: 3.3ms)
|
315729
|
+
|
315730
|
+
|
data/spec/dummy/log/test.log
CHANGED
@@ -12543,3 +12543,801 @@ Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
|
|
12543
12543
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_addresses" ("number", "created_at", "updated_at", "zipcode_id") VALUES (?, ?, ?, ?)[0m [["number", "Number"], ["created_at", 2016-09-21 17:26:32 UTC], ["updated_at", 2016-09-21 17:26:32 UTC], ["zipcode_id", 1]]
|
12544
12544
|
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12545
12545
|
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
12546
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
12547
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12548
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:49 UTC], ["updated_at", 2016-09-22 21:06:49 UTC]]
|
12549
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12550
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12551
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12552
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12553
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12554
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12555
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12556
|
+
Processing by Addresses::CitiesController#index as JSON
|
12557
|
+
Parameters: {"state_id"=>"1"}
|
12558
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12559
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
12560
|
+
Completed 200 OK in 19ms (Views: 3.4ms | ActiveRecord: 0.3ms)
|
12561
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
12562
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12563
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12564
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12565
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12566
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12567
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12568
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12569
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12570
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12571
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12572
|
+
Processing by Addresses::CitiesController#index as JSON
|
12573
|
+
Parameters: {"state_id"=>"1"}
|
12574
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12575
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
12576
|
+
Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.2ms)
|
12577
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
12578
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12579
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12580
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12581
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12582
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12583
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12584
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12585
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12586
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12587
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12588
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12589
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12590
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12591
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12592
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12593
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12594
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12595
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12596
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12597
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12598
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12599
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 2], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12600
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12601
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12602
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12603
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12604
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12605
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12606
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12607
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12608
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_addresses" ("number", "created_at", "updated_at", "zipcode_id") VALUES (?, ?, ?, ?)[0m [["number", "Number"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC], ["zipcode_id", 1]]
|
12609
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12610
|
+
[1m[35m (1.4ms)[0m [1m[31mrollback transaction[0m
|
12611
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12612
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12613
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12614
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12615
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12616
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12617
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12618
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12619
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12620
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12621
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12622
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12623
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12624
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12625
|
+
Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2016-09-22 18:06:50 -0300
|
12626
|
+
Processing by Addresses::CitiesController#index as JSON
|
12627
|
+
Parameters: {"state_id"=>"1"}
|
12628
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12629
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
12630
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
12631
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
12632
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12633
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12634
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12635
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12636
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12637
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12638
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12639
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12640
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12641
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12642
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12643
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12644
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12645
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12646
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12647
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12648
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12649
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12650
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12651
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12652
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12653
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12654
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12655
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12656
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12657
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12658
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12659
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12660
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12661
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12662
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12663
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12664
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12665
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12666
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12667
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12668
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12669
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12670
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12671
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12672
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12673
|
+
Processing by Addresses::NeighborhoodsController#index as JSON
|
12674
|
+
Parameters: {"city_id"=>"1"}
|
12675
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12676
|
+
[1m[36mAddresses::Neighborhood Load (0.1ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc[0m [["city_id", 1]]
|
12677
|
+
Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
12678
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
12679
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12680
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12681
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12682
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12683
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12684
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12685
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12686
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12687
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12688
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12689
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12690
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12691
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12692
|
+
Processing by Addresses::NeighborhoodsController#index as JSON
|
12693
|
+
Parameters: {"city_id"=>"1"}
|
12694
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12695
|
+
[1m[36mAddresses::Neighborhood Load (0.1ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc[0m [["city_id", 1]]
|
12696
|
+
Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.2ms)
|
12697
|
+
[1m[35m (8.1ms)[0m [1m[31mrollback transaction[0m
|
12698
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12699
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12700
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12701
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12702
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12703
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12704
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12705
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12706
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12707
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12708
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12709
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12710
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12711
|
+
Started GET "/addresses/neighborhoods?city_id=1&format=json" for 127.0.0.1 at 2016-09-22 18:06:50 -0300
|
12712
|
+
Processing by Addresses::NeighborhoodsController#index as JSON
|
12713
|
+
Parameters: {"city_id"=>"1"}
|
12714
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12715
|
+
[1m[36mAddresses::Neighborhood Load (0.2ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc[0m [["city_id", 1]]
|
12716
|
+
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
|
12717
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
12718
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12719
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12720
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12721
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12722
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12723
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12724
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12725
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12726
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12727
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12728
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12729
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12730
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12731
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12732
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12733
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12734
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12735
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 2], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12736
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12737
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12738
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12739
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12740
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12741
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12742
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12743
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "12345678"], ["LIMIT", 1]]
|
12744
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12745
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12746
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
12747
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12748
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "99999999"], ["LIMIT", 1]]
|
12749
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12750
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12751
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
12752
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ?[0m [["acronym", "SP"], ["LIMIT", 1]]
|
12753
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12754
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["acronym", "SP"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12755
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12756
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ?[0m [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
|
12757
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12758
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "São Paulo"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12759
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12760
|
+
[1m[36mAddresses::Neighborhood Load (0.1ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ?[0m [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
|
12761
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12762
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12763
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12764
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12765
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12766
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12767
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12768
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
12769
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12770
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
12771
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ?[0m [["acronym", "SP"], ["LIMIT", 1]]
|
12772
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12773
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["acronym", "SP"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12774
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12775
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ?[0m [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
|
12776
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12777
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "São Paulo"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12778
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12779
|
+
[1m[36mAddresses::Neighborhood Load (0.0ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ?[0m [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
|
12780
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12781
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12782
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12783
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12784
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12785
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12786
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12787
|
+
[1m[35m (1.4ms)[0m [1m[31mrollback transaction[0m
|
12788
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12789
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
12790
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ?[0m [["acronym", "SP"], ["LIMIT", 1]]
|
12791
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12792
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["acronym", "SP"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12793
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12794
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ?[0m [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
|
12795
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12796
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "São Paulo"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12797
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12798
|
+
[1m[36mAddresses::Neighborhood Load (0.0ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ?[0m [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
|
12799
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12800
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12801
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12802
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12803
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12804
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12805
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12806
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
12807
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12808
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12809
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12810
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12811
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12812
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12813
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12814
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12815
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12816
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12817
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12818
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12819
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12820
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12821
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12822
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12823
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12824
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12825
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12826
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12827
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12828
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12829
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12830
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 2], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12831
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12832
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12833
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12834
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12835
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12836
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12837
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12838
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
12839
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12840
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12841
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12842
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12843
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12844
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12845
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12846
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12847
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12848
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12849
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12850
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12851
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12852
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12853
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12854
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12855
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12856
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12857
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12858
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12859
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12860
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12861
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12862
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12863
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
12864
|
+
Parameters: {"zipcode"=>"05012010"}
|
12865
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
12866
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12867
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12868
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)
|
12869
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
12870
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12871
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12872
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12873
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12874
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12875
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12876
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12877
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12878
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12879
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12880
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12881
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12882
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12883
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12884
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12885
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12886
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
12887
|
+
Parameters: {"zipcode"=>"05012010"}
|
12888
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
12889
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12890
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12891
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
12892
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
12893
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12894
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12895
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12896
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12897
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12898
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12899
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12900
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12901
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12902
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12903
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12904
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12905
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12906
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12907
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12908
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12909
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
12910
|
+
Parameters: {"zipcode"=>"99999999"}
|
12911
|
+
[1m[36mAddresses::Zipcode Load (0.0ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "99999999"], ["LIMIT", 1]]
|
12912
|
+
Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
12913
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
12914
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12915
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12916
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12917
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12918
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12919
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12920
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12921
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12922
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12923
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12924
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12925
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12926
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12927
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12928
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12929
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12930
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12931
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12932
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12933
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12934
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:06:50 UTC], ["updated_at", 2016-09-22 21:06:50 UTC]]
|
12935
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12936
|
+
Started GET "/addresses/zipcodes/05012010?format=json" for 127.0.0.1 at 2016-09-22 18:06:50 -0300
|
12937
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
12938
|
+
Parameters: {"zipcode"=>"05012010"}
|
12939
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
12940
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12941
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12942
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)
|
12943
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
12944
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
12945
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12946
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12947
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12948
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12949
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12950
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12951
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12952
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12953
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12954
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12955
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12956
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12957
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12958
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12959
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12960
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12961
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12962
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12963
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12964
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12965
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12966
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12967
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12968
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12969
|
+
Processing by Addresses::NeighborhoodsController#index as JSON
|
12970
|
+
Parameters: {"city_id"=>"1"}
|
12971
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12972
|
+
[1m[36mAddresses::Neighborhood Load (0.1ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc[0m [["city_id", 1]]
|
12973
|
+
Completed 200 OK in 15ms (Views: 2.5ms | ActiveRecord: 0.3ms)
|
12974
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
12975
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12976
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12977
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12978
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12979
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12980
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12981
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12982
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12983
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12984
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12985
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
12986
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
12987
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
12988
|
+
Processing by Addresses::NeighborhoodsController#index as JSON
|
12989
|
+
Parameters: {"city_id"=>"1"}
|
12990
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
12991
|
+
[1m[36mAddresses::Neighborhood Load (0.1ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc[0m [["city_id", 1]]
|
12992
|
+
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)
|
12993
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
12994
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12995
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12996
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
12997
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
12998
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12999
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13000
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13001
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13002
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13003
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13004
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13005
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13006
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13007
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13008
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13009
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13010
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13011
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13012
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13013
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13014
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13015
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13016
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13017
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 2], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13018
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13019
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13020
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13021
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13022
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13023
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13024
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13025
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
13026
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13027
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13028
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13029
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13030
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13031
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13032
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13033
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13034
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13035
|
+
[1m[36mAddresses::Zipcode Load (0.2ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
13036
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ?[0m [["acronym", "SP"], ["LIMIT", 1]]
|
13037
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13038
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["acronym", "SP"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13039
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13040
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ?[0m [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
|
13041
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13042
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "São Paulo"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13043
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13044
|
+
[1m[36mAddresses::Neighborhood Load (0.1ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ?[0m [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
|
13045
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13046
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13047
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13048
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13049
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13050
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13051
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13052
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
13053
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13054
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
13055
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ?[0m [["acronym", "SP"], ["LIMIT", 1]]
|
13056
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13057
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["acronym", "SP"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13058
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13059
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ?[0m [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
|
13060
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13061
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "São Paulo"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13062
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13063
|
+
[1m[36mAddresses::Neighborhood Load (0.0ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ?[0m [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
|
13064
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13065
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13066
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13067
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13068
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13069
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13070
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13071
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
13072
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13073
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
13074
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ?[0m [["acronym", "SP"], ["LIMIT", 1]]
|
13075
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13076
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["acronym", "SP"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13077
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13078
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ?[0m [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
|
13079
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13080
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "São Paulo"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13081
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13082
|
+
[1m[36mAddresses::Neighborhood Load (0.0ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ?[0m [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
|
13083
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13084
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13085
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13086
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13087
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13088
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13089
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13090
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
13091
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13092
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "99999999"], ["LIMIT", 1]]
|
13093
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13094
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13095
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13096
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13097
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13098
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13099
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13100
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13101
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13102
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13103
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13104
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13105
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13106
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13107
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13108
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13109
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13110
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13111
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 2], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13112
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13113
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13114
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13115
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13116
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13117
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13118
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13119
|
+
[1m[36mAddresses::Zipcode Load (0.0ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "12345678"], ["LIMIT", 1]]
|
13120
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13121
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13122
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
13123
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13124
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13125
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13126
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13127
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13128
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13129
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13130
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13131
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13132
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13133
|
+
Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2016-09-22 18:21:31 -0300
|
13134
|
+
Processing by Addresses::CitiesController#index as JSON
|
13135
|
+
Parameters: {"state_id"=>"1"}
|
13136
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13137
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13138
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
13139
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
13140
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13141
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
13142
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13143
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13144
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13145
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13146
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13147
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
13148
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13149
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13150
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13151
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13152
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13153
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13154
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13155
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13156
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13157
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13158
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13159
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13160
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13161
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13162
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13163
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13164
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13165
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13166
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13167
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13168
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13169
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13170
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13171
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13172
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13173
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13174
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13175
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13176
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
13177
|
+
Parameters: {"zipcode"=>"99999999"}
|
13178
|
+
[1m[36mAddresses::Zipcode Load (0.0ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "99999999"], ["LIMIT", 1]]
|
13179
|
+
Completed 422 Unprocessable Entity in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
13180
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
13181
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13182
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13183
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13184
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13185
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13186
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13187
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13188
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13189
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13190
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13191
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13192
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13193
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13194
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13195
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13196
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13197
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
13198
|
+
Parameters: {"zipcode"=>"05012010"}
|
13199
|
+
[1m[36mAddresses::Zipcode Load (0.1ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
13200
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13201
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13202
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
13203
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
13204
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13205
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13206
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13207
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13208
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13209
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13210
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13211
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13212
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13213
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13214
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13215
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13216
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13217
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13218
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13219
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13220
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
13221
|
+
Parameters: {"zipcode"=>"05012010"}
|
13222
|
+
[1m[36mAddresses::Zipcode Load (0.0ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
13223
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13224
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13225
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
13226
|
+
[1m[35m (1.9ms)[0m [1m[31mrollback transaction[0m
|
13227
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13228
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13229
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13230
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13231
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13232
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13233
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13234
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13235
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13236
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13237
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13238
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13239
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13240
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13241
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13242
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13243
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13244
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13245
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13246
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13247
|
+
Started GET "/addresses/zipcodes/05012010?format=json" for 127.0.0.1 at 2016-09-22 18:21:31 -0300
|
13248
|
+
Processing by Addresses::ZipcodesController#show as JSON
|
13249
|
+
Parameters: {"zipcode"=>"05012010"}
|
13250
|
+
[1m[36mAddresses::Zipcode Load (0.0ms)[0m [1m[34mSELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ?[0m [["number", "05012010"], ["LIMIT", 1]]
|
13251
|
+
[1m[36mAddresses::City Load (0.0ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13252
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13253
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
13254
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
13255
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13256
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13257
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13258
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13259
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13260
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13261
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13262
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13263
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13264
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13265
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13266
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13267
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13268
|
+
Started GET "/addresses/neighborhoods?city_id=1&format=json" for 127.0.0.1 at 2016-09-22 18:21:31 -0300
|
13269
|
+
Processing by Addresses::NeighborhoodsController#index as JSON
|
13270
|
+
Parameters: {"city_id"=>"1"}
|
13271
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13272
|
+
[1m[36mAddresses::Neighborhood Load (0.1ms)[0m [1m[34mSELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc[0m [["city_id", 1]]
|
13273
|
+
Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.2ms)
|
13274
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
13275
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13276
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13277
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13278
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13279
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13280
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13281
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13282
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13283
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13284
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13285
|
+
Processing by Addresses::CitiesController#index as JSON
|
13286
|
+
Parameters: {"state_id"=>"1"}
|
13287
|
+
[1m[36mAddresses::State Load (0.1ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13288
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13289
|
+
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
13290
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
13291
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13292
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13293
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13294
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13295
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13296
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13297
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13298
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13299
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:31 UTC], ["updated_at", 2016-09-22 21:21:31 UTC]]
|
13300
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13301
|
+
Processing by Addresses::CitiesController#index as JSON
|
13302
|
+
Parameters: {"state_id"=>"1"}
|
13303
|
+
[1m[36mAddresses::State Load (0.0ms)[0m [1m[34mSELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
13304
|
+
[1m[36mAddresses::City Load (0.1ms)[0m [1m[34mSELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc[0m [["state_id", 1]]
|
13305
|
+
Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.2ms)
|
13306
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
13307
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13308
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13309
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13310
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13311
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13312
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13313
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
13314
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
13315
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
13316
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13317
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13318
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13319
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13320
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13321
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13322
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13323
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 1], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13324
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13325
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13326
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13327
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13328
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13329
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13330
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13331
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13332
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "City name"], ["state_id", 2], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13333
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13334
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13335
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13336
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13337
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13338
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC]]
|
13339
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13340
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
13341
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "addresses_addresses" ("number", "created_at", "updated_at", "zipcode_id") VALUES (?, ?, ?, ?)[0m [["number", "Number"], ["created_at", 2016-09-22 21:21:32 UTC], ["updated_at", 2016-09-22 21:21:32 UTC], ["zipcode_id", 1]]
|
13342
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
13343
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
@@ -5,6 +5,7 @@ RSpec.describe Addresses::Zipcode, type: :model do
|
|
5
5
|
it { is_expected.to validate_presence_of(:number) }
|
6
6
|
it { is_expected.to validate_presence_of(:city_id) }
|
7
7
|
it { is_expected.to validate_presence_of(:state_id) }
|
8
|
+
it { is_expected.to validate_presence_of(:street) }
|
8
9
|
end
|
9
10
|
|
10
11
|
describe 'association' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: addresses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilbert Ribeiro
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-09-
|
12
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -152,7 +152,6 @@ files:
|
|
152
152
|
- spec/dummy/public/422.html
|
153
153
|
- spec/dummy/public/500.html
|
154
154
|
- spec/dummy/public/favicon.ico
|
155
|
-
- spec/dummy/tmp/pids/server.pid
|
156
155
|
- spec/factories/addresses.rb
|
157
156
|
- spec/factories/cities.rb
|
158
157
|
- spec/factories/countries.rb
|
@@ -255,7 +254,6 @@ test_files:
|
|
255
254
|
- spec/dummy/public/favicon.ico
|
256
255
|
- spec/dummy/Rakefile
|
257
256
|
- spec/dummy/README.rdoc
|
258
|
-
- spec/dummy/tmp/pids/server.pid
|
259
257
|
- spec/factories/addresses.rb
|
260
258
|
- spec/factories/cities.rb
|
261
259
|
- spec/factories/countries.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
4931
|