couch_tomato 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/couch_tomato/migration.rb +6 -4
- metadata +1 -1
@@ -11,10 +11,12 @@ module CouchTomato
|
|
11
11
|
end
|
12
12
|
|
13
13
|
time = Benchmark.measure do
|
14
|
-
|
15
|
-
docs
|
16
|
-
|
17
|
-
|
14
|
+
rows = db.get('_all_docs', :include_docs => true)['rows']
|
15
|
+
docs = []
|
16
|
+
rows.each do |row|
|
17
|
+
next if row['id'] =~ /^_design/
|
18
|
+
send(direction, row['doc'])
|
19
|
+
docs << row['doc']
|
18
20
|
end
|
19
21
|
db.bulk_save(docs)
|
20
22
|
end
|