-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotes.txt
More file actions
58 lines (48 loc) · 1015 Bytes
/
notes.txt
File metadata and controls
58 lines (48 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
20.times do |i|
f = Foo.create(:name => "foo#{i}")
f.bars.create(:name => "bar#{i}")
end
5.times do
Foo.first.destroy
sleep(rand(3)*0.1)
end
pp Bar.find_with_deleted(:all)
20.times do |i|
x = Xx.create(:name => "xx#{i}")
x.yys.create(:name => "yy#{i}")
end
5.times do
Xx.first.archive
sleep(rand(3)*0.1)
end
pp Yy.all
Foo.paranoid?
Foo.find
Foo.find_without_find_wrapper
Foo.find_with_deleted
Foo.find_only_deleted
Foo.exists?
Foo.exists_only_deleted?
Foo.count_with_deleted
Foo.count_only_deleted
Foo.count
Foo.calculate
Foo.calculate_with_deleted
Foo.delete_all
Foo.delete_all!
Foo.find_every
Foo.find_every_with_deleted
@f.destroy_without_callbacks
@f.destroy_with_callbacks!
@f.destroy
@f.deleted?
Foo.find_with_deleted(:first).recover!
Foo.find_with_deleted(:first).recover_with_associations!(:bars)
Xx.is_archival?
Xx.unarchived
Xx.archived
Xx.archived_from_archive_number(@x.archive_number)
Yy.archived_from_archive_number(@x.archive_number)
@x.is_archival?
@x.archive
@x.unarchive