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 +4 -4
- data/lib/rus_bank_rails/acts_as_bank.rb +15 -3
- data/lib/rus_bank_rails/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +135 -0
- data/test/dummy/log/test.log +3664 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbb4e2cdd50d2628b1d1f26f03ad07beb70df56d
|
4
|
+
data.tar.gz: 2934c8aba79f28fa91de0b5ff772a3162b5a51d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
142
|
-
|
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[:
|
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
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1572,3 +1572,138 @@ Migrating to AddFieldsToBanks (20140126171627)
|
|
1572
1572
|
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
|
1573
1573
|
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1[0m
|
1574
1574
|
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
1575
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks"[0m
|
1576
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
|
1577
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1[0m
|
1578
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1579
|
+
[1m[36mSQL (2.1ms)[0m [1mUPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21[0m [["updated_at", Thu, 06 Feb 2014 14:59:54 UTC +00:00]]
|
1580
|
+
[1m[35m (0.4ms)[0m commit transaction
|
1581
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1582
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1583
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1584
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1585
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1586
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1587
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1588
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1589
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 0 LIMIT 1[0m
|
1590
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 999 LIMIT 1
|
1591
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" IS NULL LIMIT 1[0m
|
1592
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 0 LIMIT 1
|
1593
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1594
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1595
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1596
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1597
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1598
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1599
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1600
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1601
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1602
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1603
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1604
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1605
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1606
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1607
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1608
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1609
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1610
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1611
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1612
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1613
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1614
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1615
|
+
[1m[36mBank Load (0.3ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1616
|
+
[1m[35mBank Load (0.3ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1617
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1618
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1619
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1620
|
+
[1m[35mSQL (2.0ms)[0m UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:09:14 UTC +00:00]]
|
1621
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1622
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
|
1623
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1[0m
|
1624
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
|
1625
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1[0m
|
1626
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
|
1627
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1[0m
|
1628
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1629
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1630
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1631
|
+
[1m[35mSQL (2.0ms)[0m UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:17:16 UTC +00:00]]
|
1632
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1633
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
|
1634
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1[0m
|
1635
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
|
1636
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1[0m
|
1637
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1638
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1639
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1640
|
+
[1m[35mSQL (2.0ms)[0m UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:18:41 UTC +00:00]]
|
1641
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1642
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
|
1643
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1[0m
|
1644
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
|
1645
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1[0m
|
1646
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1647
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1648
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1649
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1650
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1651
|
+
[1m[35mSQL (2.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1653
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1654
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1655
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1656
|
+
[1m[35mSQL (2.1ms)[0m UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 21 [["updated_at", Thu, 06 Feb 2014 15:22:20 UTC +00:00]]
|
1657
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1658
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
|
1659
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1[0m
|
1660
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
|
1661
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1[0m
|
1662
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1663
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "banks" SET "l_code" = ?, "lt" = ?, "l_date" = ?, "updated_at" = ? WHERE "banks"."id" = 22[0m [["l_code", 3], ["lt", "Лицензия на привлечение во вклады и размещение драгоценных металлов"], ["l_date", Thu, 20 Dec 2007], ["updated_at", Thu, 06 Feb 2014 15:22:24 UTC +00:00]]
|
1664
|
+
[1m[35m (0.4ms)[0m commit transaction
|
1665
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1[0m
|
1666
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1
|
1667
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1668
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
1670
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 2 LIMIT 1
|
1671
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044030869' LIMIT 1[0m
|
1672
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1673
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.5ms)[0m commit transaction
|
1675
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1[0m
|
1676
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
|
1677
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1[0m
|
1678
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
|
1679
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1[0m
|
1680
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1
|
1681
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1682
|
+
[1m[35mSQL (2.2ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1684
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 316 LIMIT 1
|
1685
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044585216' LIMIT 1[0m
|
1686
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 1 LIMIT 1
|
1687
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525545' LIMIT 1[0m
|
1688
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1689
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 23[0m [["updated_at", Thu, 06 Feb 2014 15:32:25 UTC +00:00]]
|
1690
|
+
[1m[35m (0.5ms)[0m commit transaction
|
1691
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 2 LIMIT 1[0m
|
1692
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044030869' LIMIT 1
|
1693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1694
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 24 [["updated_at", Thu, 06 Feb 2014 15:32:52 UTC +00:00]]
|
1695
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1696
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
|
1697
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1[0m
|
1698
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1699
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.4ms)[0m commit transaction
|
1701
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1[0m
|
1702
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1
|
1703
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1704
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "updated_at" = ? WHERE "banks"."id" = 26 [["updated_at", Thu, 06 Feb 2014 15:35:45 UTC +00:00]]
|
1705
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
1706
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
|
1707
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1[0m
|
1708
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."reg_number" = 3 LIMIT 1
|
1709
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."bic" = '044525859' LIMIT 1[0m
|