database_operations 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/database_operations.gemspec +1 -1
- data/lib/database_operations.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/database_operations.gemspec
CHANGED
data/lib/database_operations.rb
CHANGED
@@ -35,7 +35,8 @@ class DatabaseOperations
|
|
35
35
|
|
36
36
|
File.open(Rails.root.join(file), "w") { |f|
|
37
37
|
f.puts "begin;"
|
38
|
-
|
38
|
+
# Dump database but exclude PostGIS artifacts which are created with CREATE EXTENSION:
|
39
|
+
f.write pg(cfg, %{pg_dump -s -T geometry_columns}, :pipe => %{perl -ne 'print unless /COPY.*spatial_ref_sys/ .. /\\x5c\\x2e/'})
|
39
40
|
f.write pg(cfg, %{pg_dump -a -t schema_migrations})
|
40
41
|
f.puts "commit;"
|
41
42
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_operations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Renewable Funding, LLC
|