schema_plus_views 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/schema_plus/views/middleware.rb +4 -3
- data/lib/schema_plus/views/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 764ef6eec1c0ff4459d83f12c562e0f05c29a3bfb69fd333184e0a7a05591c46
|
4
|
+
data.tar.gz: eb78bcad2c15b3c07a3dbbaee7e90626b914da1fb78d69c6bb478818a7b268e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89a1a4eba2cd2c3f45e831d3525e71430da8a6171891947da8fe73abf1356b12424a94b23e59a7b570e6c5ed3f63062c7c1b6993f1990aba78561753d2b7b9eb
|
7
|
+
data.tar.gz: f569fa1e50557eadefd3c5bbf4975d6d2a6c0cdde63098ca8706f1c8775d83f999a46c7435fe957031040e2d05db0d0bd6ec36c54c05b140d7b22049807cf2e3
|
data/README.md
CHANGED
@@ -189,6 +189,7 @@ options in `env.options`
|
|
189
189
|
|
190
190
|
## History
|
191
191
|
|
192
|
+
* 0.4.1 - Corrected spacing around dumped schema
|
192
193
|
* 0.4.0 - Added support for Rails 5.2 and materialized views in PostgreSQL
|
193
194
|
* 0.3.1 - Upgrade schema_plus_core and schema_dev dependencies
|
194
195
|
* 0.3.0
|
@@ -54,9 +54,9 @@ module SchemaPlus::Views
|
|
54
54
|
extra_options = ", materialized: true" if view_type == :materialized
|
55
55
|
heredelim = "END_VIEW_#{name.upcase}"
|
56
56
|
stream.puts <<~ENDVIEW
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
create_view "#{name}", <<-'#{heredelim}', :force => true#{extra_options}
|
58
|
+
#{definition}
|
59
|
+
#{heredelim}
|
60
60
|
ENDVIEW
|
61
61
|
|
62
62
|
indexes.each do |index|
|
@@ -64,6 +64,7 @@ module SchemaPlus::Views
|
|
64
64
|
index.assemble(stream)
|
65
65
|
stream.puts ""
|
66
66
|
end
|
67
|
+
stream.puts ""
|
67
68
|
end
|
68
69
|
end
|
69
70
|
end
|