database_cleaner 0.4.0 → 0.4.1

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.
data/History.txt CHANGED
@@ -1,5 +1,10 @@
1
1
  0.4.x (In Git)
2
2
 
3
+ == 0.4.1 2010-01-07
4
+
5
+ === Bufixes
6
+ * Postgres tables with FKs now truncate (added TRUNCADE CASCADE) using Datamapper. (Ben Mabey)
7
+
3
8
  == 0.4.0 2009-12-23 (The MongoMapper Edition)
4
9
 
5
10
  === New features
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 4
3
- :patch: 0
3
+ :patch: 1
4
4
  :build:
5
5
  :major: 0
@@ -80,7 +80,7 @@ module DataMapper
80
80
  end
81
81
 
82
82
  def truncate_table(table_name)
83
- execute("TRUNCATE TABLE #{quote_name(table_name)};")
83
+ execute("TRUNCATE TABLE #{quote_name(table_name)} CASCADE;")
84
84
  end
85
85
 
86
86
  # FIXME
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mabey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-23 00:00:00 -07:00
12
+ date: 2010-01-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15