activerecord-postgres_pub_sub 0.4.0.rc0 → 0.4.0.rc1
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61cac986438dfe806cac64a98e94deb5d07bae436651e4257d682162568ff5f1
|
|
4
|
+
data.tar.gz: ba98481c1a0e886add3d691093d73a130cb7944201f5b5125fafb2b3975a0edc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '05818e6889a123c133c7a76b213d81a6b669e7a56937e8473e8e4e9138cd4b3a4b60cdf3b51e19122a02f53c13b96492344bf030e5796776063868b7b7bed735'
|
|
7
|
+
data.tar.gz: 4adcf2f9264e2812d9b1c13ccd1e2c14a29135eb7284bb8fdd8d8c8344f6ac5f068558627f087a6a4453c67acc88eeb2fcda9a998cb6b2c60bce1f219640b3e1
|
data/lib/generators/active_record/postgres_pub_sub/templates/create_notify_on_insert_trigger.rb.erb
CHANGED
|
@@ -4,7 +4,7 @@ class CreateNotifyOn<%= model_title %>InsertTrigger < ActiveRecord::Migration[5.
|
|
|
4
4
|
TABLE_MODULE = "<%= table_module %>".freeze
|
|
5
5
|
|
|
6
6
|
def up
|
|
7
|
-
<% if strong_migrations
|
|
7
|
+
<% if strong_migrations %>@safe = true<% end %>
|
|
8
8
|
execute <<-SQL
|
|
9
9
|
CREATE OR REPLACE FUNCTION notify_#{TABLE_MODULE}_listeners() RETURNS TRIGGER AS $$
|
|
10
10
|
DECLARE
|
|
@@ -25,7 +25,7 @@ class CreateNotifyOn<%= model_title %>InsertTrigger < ActiveRecord::Migration[5.
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def down
|
|
28
|
-
<% if strong_migrations
|
|
28
|
+
<% if strong_migrations %>@safe = true<% end %>
|
|
29
29
|
execute <<-SQL
|
|
30
30
|
DROP FUNCTION notify_#{TABLE_MODULE}_listeners() CASCADE
|
|
31
31
|
SQL
|