bloom_remit 0.3.0 → 0.4.0

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: 531182e14ce01cc26b8d22289c39e93b166e1e86
4
- data.tar.gz: 8d1888fe7681b257dd8db0660241a4dd7cd513ce
3
+ metadata.gz: a13273f2ee664b853f5e6ea870b119a2c583bd5e
4
+ data.tar.gz: ceefa048d1ddc8910e60af9a10c68c0ada2b69bb
5
5
  SHA512:
6
- metadata.gz: f68751ada937788bda344ab7e7ee27f08442b87f056cc2621db0163f4631041c719140ca08bacd5fba2da3f6c989d68e800baa80fc0c97e9c2c6164f2fec4440
7
- data.tar.gz: 375a3ccba4528c9f026377c0aa9ad32abff5b88c46f93b2bd6e4e6f66a81111677f7fb46da2484b3f2daaa1728d787c38e1ad58cb679439975dba09f40c80614
6
+ metadata.gz: d5caf36454e22cae8074bab952e6b578a3efae75071a1dfc9f3f62fd030086ba0ca945ee062918007eda90cde7b4e3528eaaf023969c93bf7adc47a7e7e5fbb5
7
+ data.tar.gz: 65f6b314d36a123add0ad7b4d9488799e5fd50a36e1a2276f544360146348e6657343bd9bc0b8d42d9e05e8e9977050cd06eddab82f633cc4d7928b3e3d4bcaf
@@ -1,4 +1,4 @@
1
- class AddExternalIdToTxns < ActiveRecord::Migration
1
+ class AddExternalIdToBloomRemitTxns < ActiveRecord::Migration
2
2
  def change
3
3
  add_column :bloom_remit_txns, :external_id, :string, null: false
4
4
  add_index :bloom_remit_txns, :external_id
@@ -1,3 +1,3 @@
1
1
  module BloomRemit
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -15,11 +15,22 @@ ActiveRecord::Schema.define(version: 20160808081300) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
18
+ enable_extension "hstore"
18
19
 
19
20
  create_table "billers", force: :cascade do |t|
20
21
  t.string "slug"
21
22
  end
22
23
 
24
+ create_table "bloom_remit_billers", force: :cascade do |t|
25
+ t.string "slug", null: false
26
+ t.text "description"
27
+ t.hstore "fields"
28
+ t.decimal "service_charge", default: 0.0, null: false
29
+ t.datetime "deactivated_at"
30
+ t.datetime "created_at", null: false
31
+ t.datetime "updated_at", null: false
32
+ end
33
+
23
34
  create_table "bloom_remit_responses", force: :cascade do |t|
24
35
  t.integer "txn_id", null: false
25
36
  t.text "body", null: false
@@ -1710,4 +1710,165 @@ WHERE c.contype = 'f'
1710
1710
  AND t1.relname = 'users'
1711
1711
  AND t3.nspname = ANY (current_schemas(false))
1712
1712
  ORDER BY c.conname
1713
+ 
1714
+ ActiveRecord::SchemaMigration Load (3.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1715
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1716
+ Migrating to AddExternalIdToTxns (20160808081300)
1717
+  (0.2ms) BEGIN
1718
+  (7.3ms) DROP INDEX "index_bloom_remit_txns_on_external_id"
1719
+  (8.0ms) ALTER TABLE "bloom_remit_txns" DROP "external_id"
1720
+ SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160808081300"]]
1721
+  (0.7ms) COMMIT
1722
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1723
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1724
+ FROM pg_constraint c
1725
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1726
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1727
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1728
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1729
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1730
+ WHERE c.contype = 'f'
1731
+ AND t1.relname = 'billers'
1732
+ AND t3.nspname = ANY (current_schemas(false))
1733
+ ORDER BY c.conname
1734
+ 
1735
+  (2.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1736
+ FROM pg_constraint c
1737
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1738
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1739
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1740
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1741
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1742
+ WHERE c.contype = 'f'
1743
+ AND t1.relname = 'bloom_remit_billers'
1744
+ AND t3.nspname = ANY (current_schemas(false))
1745
+ ORDER BY c.conname
1746
+
1747
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1748
+ FROM pg_constraint c
1749
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1750
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1751
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1752
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1753
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1754
+ WHERE c.contype = 'f'
1755
+ AND t1.relname = 'bloom_remit_responses'
1756
+ AND t3.nspname = ANY (current_schemas(false))
1757
+ ORDER BY c.conname
1758
+ 
1759
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1760
+ FROM pg_constraint c
1761
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1762
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1763
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1764
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1765
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1766
+ WHERE c.contype = 'f'
1767
+ AND t1.relname = 'bloom_remit_txns'
1768
+ AND t3.nspname = ANY (current_schemas(false))
1769
+ ORDER BY c.conname
1770
+
1771
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1772
+ FROM pg_constraint c
1773
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1774
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1775
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1776
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1777
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1778
+ WHERE c.contype = 'f'
1779
+ AND t1.relname = 'payments'
1780
+ AND t3.nspname = ANY (current_schemas(false))
1781
+ ORDER BY c.conname
1782
+ 
1783
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1784
+ FROM pg_constraint c
1785
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1786
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1787
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1788
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1789
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1790
+ WHERE c.contype = 'f'
1791
+ AND t1.relname = 'users'
1792
+ AND t3.nspname = ANY (current_schemas(false))
1793
+ ORDER BY c.conname
1794
+
1795
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1796
+ Migrating to AddExternalIdToBloomRemitTxns (20160808081300)
1797
+  (0.2ms) BEGIN
1798
+  (2.0ms) ALTER TABLE "bloom_remit_txns" ADD "external_id" character varying NOT NULL
1799
+  (8.1ms) CREATE INDEX "index_bloom_remit_txns_on_external_id" ON "bloom_remit_txns" ("external_id")
1800
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160808081300"]]
1801
+  (0.6ms) COMMIT
1802
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1803
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1804
+ FROM pg_constraint c
1805
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1806
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1807
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1808
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1809
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1810
+ WHERE c.contype = 'f'
1811
+ AND t1.relname = 'billers'
1812
+ AND t3.nspname = ANY (current_schemas(false))
1813
+ ORDER BY c.conname
1814
+
1815
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1816
+ FROM pg_constraint c
1817
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1818
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1819
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1820
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1821
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1822
+ WHERE c.contype = 'f'
1823
+ AND t1.relname = 'bloom_remit_billers'
1824
+ AND t3.nspname = ANY (current_schemas(false))
1825
+ ORDER BY c.conname
1826
+ 
1827
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1828
+ FROM pg_constraint c
1829
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1830
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1831
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1832
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1833
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1834
+ WHERE c.contype = 'f'
1835
+ AND t1.relname = 'bloom_remit_responses'
1836
+ AND t3.nspname = ANY (current_schemas(false))
1837
+ ORDER BY c.conname
1838
+
1839
+  (2.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1840
+ FROM pg_constraint c
1841
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1842
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1843
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1844
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1845
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1846
+ WHERE c.contype = 'f'
1847
+ AND t1.relname = 'bloom_remit_txns'
1848
+ AND t3.nspname = ANY (current_schemas(false))
1849
+ ORDER BY c.conname
1850
+ 
1851
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1852
+ FROM pg_constraint c
1853
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1854
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1855
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1856
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1857
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1858
+ WHERE c.contype = 'f'
1859
+ AND t1.relname = 'payments'
1860
+ AND t3.nspname = ANY (current_schemas(false))
1861
+ ORDER BY c.conname
1862
+
1863
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1864
+ FROM pg_constraint c
1865
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1866
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1867
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1868
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1869
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1870
+ WHERE c.contype = 'f'
1871
+ AND t1.relname = 'users'
1872
+ AND t3.nspname = ANY (current_schemas(false))
1873
+ ORDER BY c.conname
1713
1874
  
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloom_remit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
@@ -382,7 +382,7 @@ files:
382
382
  - db/migrate/20160805040950_add_owner_to_bloom_remit_txns.rb
383
383
  - db/migrate/20160805095308_change_txns_sender_id_to_string.rb
384
384
  - db/migrate/20160806054012_create_bloom_remit_responses.rb
385
- - db/migrate/20160808081300_add_external_id_to_txns.rb
385
+ - db/migrate/20160808081300_add_external_id_to_bloom_remit_txns.rb
386
386
  - lib/bloom_remit.rb
387
387
  - lib/bloom_remit/engine.rb
388
388
  - lib/bloom_remit/factories.rb