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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e3a4268232f560c816ee57952514db02e60105c6ba73132024e46631770ab02
4
- data.tar.gz: e3e8a7083d837d4f28d38643980a25bb438a7146ae16ef4f130d2d2779f8b70c
3
+ metadata.gz: 85549536b4fed90822eaf6a04634d91693c0278af4459d26ea7fb3dd2c11e3fb
4
+ data.tar.gz: 90dd99fde3d598a04da7795018cfc5abd4d5a086f0b66e64acaa7dc110cf2fbb
5
5
  SHA512:
6
- metadata.gz: 93c80edc916bba94f6d5533539f0777bf516431691c6517642309a055d340ea80fbf0e8935bc25474a44ee114b3957016a8a11d87af86b9a9c8043bec2236a02
7
- data.tar.gz: 7e7044371045201a3a1220a7cabf44cdd292762b45d5b14d42c4caf15a5f68a80e89da46ed05402187679e28683382ad62bea8410c6d7232a5e85dda1d471666
6
+ metadata.gz: 2d7a34850a79de61d6ddc5c250197964c36dd5ca6ff8029621671748f5ebca4eb9f49c165574be6222f8d6e89f346cc9b8dfb78c92ba281d0fc36018f75df033
7
+ data.tar.gz: ada7e3dca5866a2c6e395c676ae002bde250252f198193569282d28a0106774f791441ce853369d9096cac9cbcabfbfc2cc6c62c1fbfd61cd1b5b55b37b533a9
@@ -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.deleted_at_column => nil).to_sql }
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.deleted_at_column => nil).to_sql }
39
+ AS #{ model.select('*').where.not(model.deleted_at[:column] => nil).to_sql }
40
40
  SQL
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module DeletedAt
2
- VERSION = "0.6.0-5"
2
+ VERSION = "0.6.0-6"
3
3
  end
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.5
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 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord