rus_bank_rails 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cdb728c0aecbbe1dc0ed731d120b2fb58022cc5
4
- data.tar.gz: 83a82ee15ed54141a1ab59b44ce8c28344178bc7
3
+ metadata.gz: dbb4e2cdd50d2628b1d1f26f03ad07beb70df56d
4
+ data.tar.gz: 2934c8aba79f28fa91de0b5ff772a3162b5a51d5
5
5
  SHA512:
6
- metadata.gz: 40de45b5109f10432fca94771ce57996909ccdffaa54a89e632d2d516e65ae2afe14b4ca3c7b496ea18bdae38285f72b18b93fc2e36f2d8cdf6359b40b7ec5ad
7
- data.tar.gz: 47fb38f532655805b818789f560f420ed124ac68f2de46abd7b8996e20b3587b847088c5fd9fb7c0c75f8de9998d64c5b1fc379c82641ee7f3bfc770e26252ab
6
+ metadata.gz: 8b09aa689f123c3f396a8b2579484584cb18591ba0b13a5c64b3bc08535d45551cef07003de610c146608dc6e140883825ea35aeed699e68e0a5f49aab60c932
7
+ data.tar.gz: e172171df1f0c59947241d8edcb40d00ba08c053c625148bce9478d6df1908bfde4ba241ffbf3297cf3e2fa13382a92a5ff2c4d8e989196a1537228452a9884f
@@ -138,8 +138,13 @@ module RusBankRails
138
138
 
139
139
  def update_bank(bank)
140
140
  info = get_info(bank.bic)
141
- bank.update(info.merge(updated_at: Time.now)) unless info.nil?
142
- bank
141
+ if info.nil?
142
+ bank.delete
143
+ nil
144
+ else
145
+ bank.update(info.merge(updated_at: Time.now))
146
+ bank
147
+ end
143
148
  end
144
149
 
145
150
  ##
@@ -157,7 +162,14 @@ module RusBankRails
157
162
  end
158
163
 
159
164
  if internal_code && reg_number && info
160
- info[:co].merge(info[:lic]).merge(internal_code: internal_code, reg_number: reg_number)
165
+ if info[:lic].nil?
166
+ lic = {}
167
+ elsif info[:lic].instance_of?(Array)
168
+ lic = info[:lic].first # TODO: Заглушка. Как оказалось, может быть указано более 1 лицензии.
169
+ else
170
+ lic = info[:lic]
171
+ end
172
+ info[:co].merge(lic).merge(internal_code: internal_code, reg_number: reg_number)
161
173
  else
162
174
  nil
163
175
  end
@@ -1,3 +1,3 @@
1
1
  module RusBankRails
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.2"
3
3
  end
Binary file
Binary file
@@ -1572,3 +1572,138 @@ Migrating to AddFieldsToBanks (20140126171627)
1572
1572
  Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1573
1573
  Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1574
1574
  Bank Load (0.2ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
1575
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks"
1576
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1577
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1578
+  (0.1ms) begin transaction
1579
+ SQL (2.1ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 14:59:54 UTC +00:00]]
1580
+  (0.4ms) commit transaction
1581
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1582
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1583
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1584
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1585
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1586
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1587
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1588
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1589
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 0 LIMIT 1
1590
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 999 LIMIT 1
1591
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" IS NULL LIMIT 1
1592
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 0 LIMIT 1
1593
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1594
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1595
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1596
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1597
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1598
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1599
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1600
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1601
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1602
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1603
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1604
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1605
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1606
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1607
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1608
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1609
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1610
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1611
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1612
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1613
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1614
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1615
+ Bank Load (0.3ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1616
+ Bank Load (0.3ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1617
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1618
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1619
+  (0.1ms) begin transaction
1620
+ SQL (2.0ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:09:14 UTC +00:00]]
1621
+  (0.4ms) commit transaction
1622
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1623
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1624
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1625
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1626
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1627
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1628
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1629
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1630
+  (0.1ms) begin transaction
1631
+ SQL (2.0ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:17:16 UTC +00:00]]
1632
+  (0.4ms) commit transaction
1633
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1634
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1635
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1636
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1637
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1638
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1639
+  (0.1ms) begin transaction
1640
+ SQL (2.0ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:18:41 UTC +00:00]]
1641
+  (0.4ms) commit transaction
1642
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1643
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1644
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1645
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1646
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1647
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1648
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1649
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1650
+  (0.1ms) begin transaction
1651
+ SQL (2.1ms) INSERT INTO "banks" ("bic", "created_at", "date_kgr_registration", "fact_adr", "internal_code", "main_date_reg", "main_reg_number", "org_full_name", "org_name", "org_status", "phones", "reg_code", "reg_number", "ssv_date", "updated_at", "ust_money", "ustav_adr") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bic", "044525545"], ["created_at", Thu, 06 Feb 2014 15:19:43 UTC +00:00], ["date_kgr_registration", Fri, 15 Nov 1991], ["fact_adr", "119034, г. Москва, Пречистенская набережная, д.9"], ["internal_code", 450000005], ["main_date_reg", Mon, 19 Aug 2002], ["main_reg_number", "1027739082106"], ["org_full_name", "Закрытое акционерное общество \"ЮниКредит Банк\""], ["org_name", "ЮНИКРЕДИТ БАНК"], ["org_status", "норм."], ["phones", "(495) 258-72-00, (495) 956-85-75, 258-7258, 258-7272"], ["reg_code", 16], ["reg_number", 1], ["ssv_date", Wed, 15 Dec 2004], ["updated_at", Thu, 06 Feb 2014 15:19:43 UTC +00:00], ["ust_money", 40438324420], ["ustav_adr", "119034, г. Москва, Пречистенская набережная, д.9"]]
1652
+  (0.4ms) commit transaction
1653
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1654
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1655
+  (0.1ms) begin transaction
1656
+ SQL (2.1ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:22:20 UTC +00:00]]
1657
+  (0.4ms) commit transaction
1658
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1659
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1660
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1661
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1662
+  (0.1ms) begin transaction
1663
+ SQL (0.4ms) UPDATE "banks" SET "l_code" = ?, "lt" = ?, "l_date" = ?, "updated_at" = ? WHERE "banks"."id" = 22 [["l_code", 3], ["lt", "Лицензия на привлечение во вклады и размещение драгоценных металлов"], ["l_date", Thu, 20 Dec 2007], ["updated_at", Thu, 06 Feb 2014 15:22:24 UTC +00:00]]
1664
+  (0.4ms) commit transaction
1665
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1666
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1667
+  (0.1ms) begin transaction
1668
+ SQL (0.7ms) INSERT INTO "banks" ("bic", "created_at", "date_kgr_registration", "fact_adr", "internal_code", "l_code", "l_date", "lt", "main_date_reg", "main_reg_number", "org_full_name", "org_name", "org_status", "phones", "reg_code", "reg_number", "ssv_date", "updated_at", "ust_money", "ustav_adr") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bic", "044525545"], ["created_at", Thu, 06 Feb 2014 15:23:05 UTC +00:00], ["date_kgr_registration", Fri, 15 Nov 1991], ["fact_adr", "119034, г. Москва, Пречистенская набережная, д.9"], ["internal_code", 450000005], ["l_code", 3], ["l_date", Thu, 20 Dec 2007], ["lt", "Лицензия на привлечение во вклады и размещение драгоценных металлов"], ["main_date_reg", Mon, 19 Aug 2002], ["main_reg_number", "1027739082106"], ["org_full_name", "Закрытое акционерное общество \"ЮниКредит Банк\""], ["org_name", "ЮНИКРЕДИТ БАНК"], ["org_status", "норм."], ["phones", "(495) 258-72-00, (495) 956-85-75, 258-7258, 258-7272"], ["reg_code", 16], ["reg_number", 1], ["ssv_date", Wed, 15 Dec 2004], ["updated_at", Thu, 06 Feb 2014 15:23:05 UTC +00:00], ["ust_money", 40438324420], ["ustav_adr", "119034, г. Москва, Пречистенская набережная, д.9"]]
1669
+  (3.1ms) commit transaction
1670
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 2 LIMIT 1
1671
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044030869' LIMIT 1
1672
+  (0.1ms) begin transaction
1673
+ SQL (0.4ms) INSERT INTO "banks" ("bic", "created_at", "date_kgr_registration", "fact_adr", "internal_code", "l_code", "l_date", "lt", "main_date_reg", "main_reg_number", "org_full_name", "org_name", "org_status", "phones", "reg_code", "reg_number", "ssv_date", "updated_at", "ust_money", "ustav_adr") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bic", "044030869"], ["created_at", Thu, 06 Feb 2014 15:23:50 UTC +00:00], ["date_kgr_registration", Fri, 27 Dec 1991], ["fact_adr", "191002 Санкт-Петербург, Владимирский пр. дом 17"], ["internal_code", 400000036], ["l_code", 7], ["l_date", Mon, 10 Sep 2012], ["lt", "Генеральная лицензия на осуществление банковских операций"], ["main_date_reg", Fri, 02 Aug 2002], ["main_reg_number", "1027800000250"], ["org_full_name", "Закрытое Акционерное Общество \"Коммерческий Акционерный Банк \"Викинг\""], ["org_name", "ВИКИНГ"], ["org_status", "норм."], ["phones", "320-20-59, 320-33-25"], ["reg_code", 3], ["reg_number", 2], ["ssv_date", Wed, 22 Dec 2004], ["updated_at", Thu, 06 Feb 2014 15:23:50 UTC +00:00], ["ust_money", 71000000], ["ustav_adr", "191002 Санкт-Петербург, Владимирский пр. дом 17"]]
1674
+  (0.5ms) commit transaction
1675
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
1676
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
1677
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
1678
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
1679
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1680
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1681
+  (0.1ms) begin transaction
1682
+ SQL (2.2ms) INSERT INTO "banks" ("bic", "created_at", "date_kgr_registration", "fact_adr", "internal_code", "l_code", "l_date", "lt", "main_date_reg", "main_reg_number", "org_full_name", "org_name", "org_status", "phones", "reg_code", "reg_number", "ssv_date", "updated_at", "ust_money", "ustav_adr") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bic", "044585216"], ["created_at", Thu, 06 Feb 2014 15:32:19 UTC +00:00], ["date_kgr_registration", Tue, 12 May 1992], ["fact_adr", "125040, г. Москва, ул. Правды, д. 8, корпус 1"], ["internal_code", 450000650], ["l_code", 7], ["l_date", Thu, 15 Mar 2012], ["lt", "Генеральная лицензия на осуществление банковских операций"], ["main_date_reg", Fri, 04 Oct 2002], ["main_reg_number", "1027700280937"], ["org_full_name", "Общество с ограниченной ответственностью \"Хоум Кредит энд Финанс Банк\""], ["org_name", "ХКФ БАНК"], ["org_status", "норм."], ["phones", "(495)785-82-25"], ["reg_code", 16], ["reg_number", 316], ["ssv_date", Wed, 10 Nov 2004], ["updated_at", Thu, 06 Feb 2014 15:32:19 UTC +00:00], ["ust_money", 4173000000], ["ustav_adr", "125040, г. Москва, ул. Правды, д. 8, корпус 1"]]
1683
+  (0.4ms) commit transaction
1684
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
1685
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
1686
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
1687
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
1688
+  (0.1ms) begin transaction
1689
+ SQL (0.3ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 23 [["updated_at", Thu, 06 Feb 2014 15:32:25 UTC +00:00]]
1690
+  (0.5ms) commit transaction
1691
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 2 LIMIT 1
1692
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044030869' LIMIT 1
1693
+  (0.1ms) begin transaction
1694
+ SQL (0.3ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 24 [["updated_at", Thu, 06 Feb 2014 15:32:52 UTC +00:00]]
1695
+  (0.4ms) commit transaction
1696
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
1697
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
1698
+  (0.1ms) begin transaction
1699
+ SQL (0.4ms) INSERT INTO "banks" ("bic", "created_at", "date_kgr_registration", "fact_adr", "internal_code", "main_date_reg", "main_reg_number", "org_full_name", "org_name", "org_status", "phones", "reg_code", "reg_number", "ssv_date", "updated_at", "ust_money", "ustav_adr") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bic", "044525859"], ["created_at", Thu, 06 Feb 2014 15:32:57 UTC +00:00], ["date_kgr_registration", Thu, 04 Jun 1992], ["fact_adr", "113114, г. Москва, ул. Дербеневская, д. 1, стр. 1, стр. 6"], ["internal_code", 450000643], ["main_date_reg", Thu, 14 Nov 2002], ["main_reg_number", "1027739550860"], ["org_full_name", "Московский Акционерный Коммерческий Банк \"ПРЕМЬЕР\" Закрытое Акционерное Общество"], ["org_name", "ПРЕМЬЕР"], ["org_status", "лицензия отозвана"], ["phones", "411-84-15, 633-23-47"], ["reg_code", 16], ["reg_number", 3], ["ssv_date", Wed, 19 Jan 2005], ["updated_at", Thu, 06 Feb 2014 15:32:57 UTC +00:00], ["ust_money", 41775000], ["ustav_adr", "113114, г. Москва, ул. Дербеневская, д. 1, стр. 1, стр. 6"]]
1700
+  (0.4ms) commit transaction
1701
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
1702
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
1703
+  (0.1ms) begin transaction
1704
+ SQL (0.3ms) UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 26 [["updated_at", Thu, 06 Feb 2014 15:35:45 UTC +00:00]]
1705
+  (0.4ms) commit transaction
1706
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
1707
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
1708
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
1709
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1