deleted_at 0.6.0.pre.5 → 0.6.0.pre.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deleted_at/legacy.rb +2 -2
- data/lib/deleted_at/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85549536b4fed90822eaf6a04634d91693c0278af4459d26ea7fb3dd2c11e3fb
|
4
|
+
data.tar.gz: 90dd99fde3d598a04da7795018cfc5abd4d5a086f0b66e64acaa7dc110cf2fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d7a34850a79de61d6ddc5c250197964c36dd5ca6ff8029621671748f5ebca4eb9f49c165574be6222f8d6e89f346cc9b8dfb78c92ba281d0fc36018f75df033
|
7
|
+
data.tar.gz: ada7e3dca5866a2c6e395c676ae002bde250252f198193569282d28a0106774f791441ce853369d9096cac9cbcabfbfc2cc6c62c1fbfd61cd1b5b55b37b533a9
|
data/lib/deleted_at/legacy.rb
CHANGED
@@ -24,7 +24,7 @@ module DeletedAt
|
|
24
24
|
model.connection.execute("ALTER TABLE \"#{present_table_name}\" RENAME TO \"#{model.table_name}\"")
|
25
25
|
model.connection.execute <<-SQL
|
26
26
|
CREATE OR REPLACE VIEW "#{present_table_name}"
|
27
|
-
AS #{ model.select('*').where(model.
|
27
|
+
AS #{ model.select('*').where(model.deleted_at[:column] => nil).to_sql }
|
28
28
|
SQL
|
29
29
|
end
|
30
30
|
end
|
@@ -36,7 +36,7 @@ module DeletedAt
|
|
36
36
|
while_spoofing_table_name(model, all_table(model)) do
|
37
37
|
model.connection.execute <<-SQL
|
38
38
|
CREATE OR REPLACE VIEW "#{table_name}"
|
39
|
-
AS #{ model.select('*').where.not(model.
|
39
|
+
AS #{ model.select('*').where.not(model.deleted_at[:column] => nil).to_sql }
|
40
40
|
SQL
|
41
41
|
end
|
42
42
|
end
|
data/lib/deleted_at/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deleted_at
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0.pre.
|
4
|
+
version: 0.6.0.pre.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Stevens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|