enju_circulation 0.1.0.pre7 → 0.1.0.pre8

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.
Files changed (73) hide show
  1. data/app/models/basket.rb +4 -4
  2. data/app/models/carrier_type_has_checkout_type.rb +5 -5
  3. data/app/models/checked_item.rb +6 -6
  4. data/app/models/checkin.rb +5 -4
  5. data/app/models/checkout.rb +7 -6
  6. data/app/models/checkout_stat_has_manifestation.rb +5 -5
  7. data/app/models/checkout_stat_has_user.rb +6 -6
  8. data/app/models/checkout_type.rb +4 -4
  9. data/app/models/circulation_status.rb +4 -4
  10. data/app/models/item_has_use_restriction.rb +5 -5
  11. data/app/models/lending_policy.rb +8 -8
  12. data/app/models/manifestation_checkout_stat.rb +3 -3
  13. data/app/models/manifestation_reserve_stat.rb +3 -3
  14. data/app/models/reserve.rb +9 -8
  15. data/app/models/reserve_stat_has_manifestation.rb +5 -5
  16. data/app/models/reserve_stat_has_user.rb +5 -5
  17. data/app/models/use_restriction.rb +4 -4
  18. data/app/models/user_checkout_stat.rb +4 -3
  19. data/app/models/user_group_has_checkout_type.rb +11 -11
  20. data/app/models/user_reserve_stat.rb +4 -3
  21. data/lib/enju_circulation/item.rb +3 -3
  22. data/lib/enju_circulation/version.rb +1 -1
  23. data/spec/dummy/db/development.sqlite3 +0 -0
  24. data/spec/dummy/db/test.sqlite3 +0 -0
  25. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  26. data/spec/dummy/solr/data/test/index/{segments_qn → segments_rr} +0 -0
  27. data/spec/fixtures/baskets.yml +4 -5
  28. data/spec/fixtures/carrier_type_has_checkout_types.yml +5 -5
  29. data/spec/fixtures/checked_items.yml +6 -6
  30. data/spec/fixtures/checkins.yml +5 -4
  31. data/spec/fixtures/checkout_stat_has_manifestations.yml +5 -5
  32. data/spec/fixtures/checkout_stat_has_users.yml +6 -6
  33. data/spec/fixtures/checkout_types.yml +4 -4
  34. data/spec/fixtures/checkouts.yml +7 -6
  35. data/spec/fixtures/circulation_statuses.yml +4 -4
  36. data/spec/fixtures/item_has_use_restrictions.yml +5 -5
  37. data/spec/fixtures/lending_policies.yml +8 -8
  38. data/spec/fixtures/manifestation_checkout_stats.yml +3 -3
  39. data/spec/fixtures/manifestation_reserve_stats.yml +3 -3
  40. data/spec/fixtures/reserve_stat_has_manifestations.yml +5 -5
  41. data/spec/fixtures/reserve_stat_has_users.yml +5 -5
  42. data/spec/fixtures/reserves.yml +9 -8
  43. data/spec/fixtures/use_restrictions.yml +4 -4
  44. data/spec/fixtures/user_checkout_stats.yml +4 -3
  45. data/spec/fixtures/user_group_has_checkout_types.yml +12 -12
  46. data/spec/fixtures/user_reserve_stats.yml +4 -3
  47. data/spec/models/basket_spec.rb +4 -5
  48. data/spec/models/carrier_type_has_checkout_type_spec.rb +5 -5
  49. data/spec/models/checked_item_spec.rb +6 -6
  50. data/spec/models/checkin_spec.rb +5 -4
  51. data/spec/models/checkout_spec.rb +7 -6
  52. data/spec/models/checkout_stat_has_manifestation_spec.rb +5 -5
  53. data/spec/models/checkout_stat_has_user_spec.rb +6 -6
  54. data/spec/models/checkout_type_spec.rb +4 -4
  55. data/spec/models/circulation_status_spec.rb +4 -4
  56. data/spec/models/lending_policy_spec.rb +8 -8
  57. data/spec/models/manifestation_checkout_stat_spec.rb +3 -3
  58. data/spec/models/manifestation_reserve_stat_spec.rb +3 -3
  59. data/spec/models/reserve_spec.rb +9 -8
  60. data/spec/models/reserve_stat_has_manifestation_spec.rb +5 -5
  61. data/spec/models/reserve_stat_has_user_spec.rb +5 -5
  62. data/spec/models/user_checkout_stat_spec.rb +4 -3
  63. data/spec/models/user_group_has_checkout_type_spec.rb +11 -11
  64. data/spec/models/user_reserve_stat_spec.rb +4 -3
  65. metadata +21 -19
  66. /data/spec/dummy/solr/data/test/index/{_cr.fdt → _db.fdt} +0 -0
  67. /data/spec/dummy/solr/data/test/index/{_cr.fdx → _db.fdx} +0 -0
  68. /data/spec/dummy/solr/data/test/index/{_cr.fnm → _db.fnm} +0 -0
  69. /data/spec/dummy/solr/data/test/index/{_cr.frq → _db.frq} +0 -0
  70. /data/spec/dummy/solr/data/test/index/{_cr.nrm → _db.nrm} +0 -0
  71. /data/spec/dummy/solr/data/test/index/{_cr.prx → _db.prx} +0 -0
  72. /data/spec/dummy/solr/data/test/index/{_cr.tii → _db.tii} +0 -0
  73. /data/spec/dummy/solr/data/test/index/{_cr.tis → _db.tis} +0 -0
@@ -46,10 +46,10 @@ item_has_use_restriction_00007:
46
46
  #
47
47
  # Table name: item_has_use_restrictions
48
48
  #
49
- # id :integer not null, primary key
50
- # item_id :integer not null
51
- # use_restriction_id :integer not null
52
- # created_at :datetime
53
- # updated_at :datetime
49
+ # id :integer not null, primary key
50
+ # item_id :integer not null
51
+ # use_restriction_id :integer not null
52
+ # created_at :datetime not null
53
+ # updated_at :datetime not null
54
54
  #
55
55
 
@@ -77,16 +77,16 @@ lending_policy_00008:
77
77
  #
78
78
  # Table name: lending_policies
79
79
  #
80
- # id :integer not null, primary key
81
- # item_id :integer not null
82
- # user_group_id :integer not null
83
- # loan_period :integer default(0), not null
80
+ # id :integer not null, primary key
81
+ # item_id :integer not null
82
+ # user_group_id :integer not null
83
+ # loan_period :integer default(0), not null
84
84
  # fixed_due_date :datetime
85
- # renewal :integer default(0), not null
86
- # fine :decimal(, ) default(0.0), not null
85
+ # renewal :integer default(0), not null
86
+ # fine :decimal(, ) default(0.0), not null
87
87
  # note :text
88
88
  # position :integer
89
- # created_at :datetime not null
90
- # updated_at :datetime not null
89
+ # created_at :datetime not null
90
+ # updated_at :datetime not null
91
91
  #
92
92
 
@@ -18,13 +18,13 @@ two:
18
18
  #
19
19
  # Table name: manifestation_checkout_stats
20
20
  #
21
- # id :integer not null, primary key
21
+ # id :integer not null, primary key
22
22
  # start_date :datetime
23
23
  # end_date :datetime
24
24
  # note :text
25
25
  # state :string(255)
26
- # created_at :datetime
27
- # updated_at :datetime
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
28
  # started_at :datetime
29
29
  # completed_at :datetime
30
30
  #
@@ -18,13 +18,13 @@ two:
18
18
  #
19
19
  # Table name: manifestation_reserve_stats
20
20
  #
21
- # id :integer not null, primary key
21
+ # id :integer not null, primary key
22
22
  # start_date :datetime
23
23
  # end_date :datetime
24
24
  # note :text
25
25
  # state :string(255)
26
- # created_at :datetime
27
- # updated_at :datetime
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
28
28
  # started_at :datetime
29
29
  # completed_at :datetime
30
30
  #
@@ -14,11 +14,11 @@ two:
14
14
  #
15
15
  # Table name: reserve_stat_has_manifestations
16
16
  #
17
- # id :integer not null, primary key
18
- # manifestation_reserve_stat_id :integer not null
19
- # manifestation_id :integer not null
17
+ # id :integer not null, primary key
18
+ # manifestation_reserve_stat_id :integer not null
19
+ # manifestation_id :integer not null
20
20
  # reserves_count :integer
21
- # created_at :datetime
22
- # updated_at :datetime
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
23
  #
24
24
 
@@ -14,11 +14,11 @@ two:
14
14
  #
15
15
  # Table name: reserve_stat_has_users
16
16
  #
17
- # id :integer not null, primary key
18
- # user_reserve_stat_id :integer not null
19
- # user_id :integer not null
17
+ # id :integer not null, primary key
18
+ # user_reserve_stat_id :integer not null
19
+ # user_id :integer not null
20
20
  # reserves_count :integer
21
- # created_at :datetime
22
- # updated_at :datetime
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
23
  #
24
24
 
@@ -136,23 +136,24 @@ reserve_00015:
136
136
  created_at: 2007-09-01 14:20:05.530854 +09:00
137
137
  expired_at: <%= 1.day.from_now %>
138
138
  state: requested
139
+
139
140
  # == Schema Information
140
141
  #
141
142
  # Table name: reserves
142
143
  #
143
- # id :integer not null, primary key
144
- # user_id :integer not null
145
- # manifestation_id :integer not null
144
+ # id :integer not null, primary key
145
+ # user_id :integer not null
146
+ # manifestation_id :integer not null
146
147
  # item_id :integer
147
- # request_status_type_id :integer not null
148
+ # request_status_type_id :integer not null
148
149
  # checked_out_at :datetime
149
- # created_at :datetime not null
150
- # updated_at :datetime not null
150
+ # created_at :datetime not null
151
+ # updated_at :datetime not null
151
152
  # canceled_at :datetime
152
153
  # expired_at :datetime
153
154
  # deleted_at :datetime
154
155
  # state :string(255)
155
- # expiration_notice_to_patron :boolean default(FALSE)
156
- # expiration_notice_to_library :boolean default(FALSE)
156
+ # expiration_notice_to_patron :boolean default(FALSE)
157
+ # expiration_notice_to_library :boolean default(FALSE)
157
158
  #
158
159
 
@@ -82,12 +82,12 @@ use_restriction_00013:
82
82
  #
83
83
  # Table name: use_restrictions
84
84
  #
85
- # id :integer not null, primary key
86
- # name :string(255) not null
85
+ # id :integer not null, primary key
86
+ # name :string(255) not null
87
87
  # display_name :text
88
88
  # note :text
89
89
  # position :integer
90
- # created_at :datetime
91
- # updated_at :datetime
90
+ # created_at :datetime not null
91
+ # updated_at :datetime not null
92
92
  #
93
93
 
@@ -13,17 +13,18 @@ two:
13
13
  end_date: 2008-12-16 18:43:02
14
14
  note: MyText
15
15
  state: pending
16
+
16
17
  # == Schema Information
17
18
  #
18
19
  # Table name: user_checkout_stats
19
20
  #
20
- # id :integer not null, primary key
21
+ # id :integer not null, primary key
21
22
  # start_date :datetime
22
23
  # end_date :datetime
23
24
  # note :text
24
25
  # state :string(255)
25
- # created_at :datetime not null
26
- # updated_at :datetime not null
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
27
28
  # started_at :datetime
28
29
  # completed_at :datetime
29
30
  #
@@ -16,7 +16,7 @@ user_group_has_checkout_type_00002:
16
16
  checkout_limit: 3
17
17
  reservation_limit: 2
18
18
  user_group_id: 1
19
- checkout_period: 0
19
+ checkout_period: 10
20
20
  checkout_renewal_limit: 1
21
21
  id: 2
22
22
  created_at: 2007-12-23 03:13:15.620143 +09:00
@@ -92,20 +92,20 @@ user_group_has_checkout_type_00008:
92
92
  #
93
93
  # Table name: user_group_has_checkout_types
94
94
  #
95
- # id :integer not null, primary key
96
- # user_group_id :integer not null
97
- # checkout_type_id :integer not null
98
- # checkout_limit :integer default(0), not null
99
- # checkout_period :integer default(0), not null
100
- # checkout_renewal_limit :integer default(0), not null
101
- # reservation_limit :integer default(0), not null
102
- # reservation_expired_period :integer default(7), not null
103
- # set_due_date_before_closing_day :boolean default(FALSE), not null
95
+ # id :integer not null, primary key
96
+ # user_group_id :integer not null
97
+ # checkout_type_id :integer not null
98
+ # checkout_limit :integer default(0), not null
99
+ # checkout_period :integer default(0), not null
100
+ # checkout_renewal_limit :integer default(0), not null
101
+ # reservation_limit :integer default(0), not null
102
+ # reservation_expired_period :integer default(7), not null
103
+ # set_due_date_before_closing_day :boolean default(FALSE), not null
104
104
  # fixed_due_date :datetime
105
105
  # note :text
106
106
  # position :integer
107
- # created_at :datetime
108
- # updated_at :datetime
107
+ # created_at :datetime not null
108
+ # updated_at :datetime not null
109
109
  # current_checkout_count :integer
110
110
  #
111
111
 
@@ -13,17 +13,18 @@ two:
13
13
  end_date: 2008-12-21 11:36:28
14
14
  note: MyText
15
15
  state: pending
16
+
16
17
  # == Schema Information
17
18
  #
18
19
  # Table name: user_reserve_stats
19
20
  #
20
- # id :integer not null, primary key
21
+ # id :integer not null, primary key
21
22
  # start_date :datetime
22
23
  # end_date :datetime
23
24
  # note :text
24
25
  # state :string(255)
25
- # created_at :datetime not null
26
- # updated_at :datetime not null
26
+ # created_at :datetime not null
27
+ # updated_at :datetime not null
27
28
  # started_at :datetime
28
29
  # completed_at :datetime
29
30
  #
@@ -32,12 +32,11 @@ end
32
32
  #
33
33
  # Table name: baskets
34
34
  #
35
- # id :integer not null, primary key
35
+ # id :integer not null, primary key
36
36
  # user_id :integer
37
37
  # note :text
38
- # type :string(255)
39
- # lock_version :integer default(0), not null
40
- # created_at :datetime
41
- # updated_at :datetime
38
+ # lock_version :integer default(0), not null
39
+ # created_at :datetime not null
40
+ # updated_at :datetime not null
42
41
  #
43
42
 
@@ -10,12 +10,12 @@ end
10
10
  #
11
11
  # Table name: carrier_type_has_checkout_types
12
12
  #
13
- # id :integer not null, primary key
14
- # carrier_type_id :integer not null
15
- # checkout_type_id :integer not null
13
+ # id :integer not null, primary key
14
+ # carrier_type_id :integer not null
15
+ # checkout_type_id :integer not null
16
16
  # note :text
17
17
  # position :integer
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -13,12 +13,12 @@ end
13
13
  #
14
14
  # Table name: checked_items
15
15
  #
16
- # id :integer not null, primary key
17
- # item_id :integer not null
18
- # basket_id :integer not null
19
- # due_date :datetime not null
20
- # created_at :datetime not null
21
- # updated_at :datetime not null
16
+ # id :integer not null, primary key
17
+ # item_id :integer not null
18
+ # basket_id :integer not null
19
+ # due_date :datetime not null
20
+ # created_at :datetime not null
21
+ # updated_at :datetime not null
22
22
  # librarian_id :integer
23
23
  #
24
24
 
@@ -33,15 +33,16 @@ describe Checkin do
33
33
  user.checkouts.count.should eq checkouts_count - 1
34
34
  end
35
35
  end
36
+
36
37
  # == Schema Information
37
38
  #
38
39
  # Table name: checkins
39
40
  #
40
- # id :integer not null, primary key
41
- # item_id :integer not null
41
+ # id :integer not null, primary key
42
+ # item_id :integer not null
42
43
  # librarian_id :integer
43
44
  # basket_id :integer
44
- # created_at :datetime not null
45
- # updated_at :datetime not null
45
+ # created_at :datetime not null
46
+ # updated_at :datetime not null
46
47
  #
47
48
 
@@ -55,20 +55,21 @@ describe Checkout do
55
55
  Checkout.count.should eq old_count
56
56
  end
57
57
  end
58
+
58
59
  # == Schema Information
59
60
  #
60
61
  # Table name: checkouts
61
62
  #
62
- # id :integer not null, primary key
63
+ # id :integer not null, primary key
63
64
  # user_id :integer
64
- # item_id :integer not null
65
+ # item_id :integer not null
65
66
  # checkin_id :integer
66
67
  # librarian_id :integer
67
68
  # basket_id :integer
68
69
  # due_date :datetime
69
- # checkout_renewal_count :integer default(0), not null
70
- # lock_version :integer default(0), not null
71
- # created_at :datetime not null
72
- # updated_at :datetime not null
70
+ # checkout_renewal_count :integer default(0), not null
71
+ # lock_version :integer default(0), not null
72
+ # created_at :datetime not null
73
+ # updated_at :datetime not null
73
74
  #
74
75
 
@@ -10,11 +10,11 @@ end
10
10
  #
11
11
  # Table name: checkout_stat_has_manifestations
12
12
  #
13
- # id :integer not null, primary key
14
- # manifestation_checkout_stat_id :integer not null
15
- # manifestation_id :integer not null
13
+ # id :integer not null, primary key
14
+ # manifestation_checkout_stat_id :integer not null
15
+ # manifestation_id :integer not null
16
16
  # checkouts_count :integer
17
- # created_at :datetime
18
- # updated_at :datetime
17
+ # created_at :datetime not null
18
+ # updated_at :datetime not null
19
19
  #
20
20
 
@@ -10,11 +10,11 @@ end
10
10
  #
11
11
  # Table name: checkout_stat_has_users
12
12
  #
13
- # id :integer not null, primary key
14
- # user_checkout_stat_id :integer not null
15
- # user_id :integer not null
16
- # checkouts_count :integer default(0), not null
17
- # created_at :datetime
18
- # updated_at :datetime
13
+ # id :integer not null, primary key
14
+ # user_checkout_stat_id :integer not null
15
+ # user_id :integer not null
16
+ # checkouts_count :integer default(0), not null
17
+ # created_at :datetime not null
18
+ # updated_at :datetime not null
19
19
  #
20
20
 
@@ -10,12 +10,12 @@ end
10
10
  #
11
11
  # Table name: checkout_types
12
12
  #
13
- # id :integer not null, primary key
14
- # name :string(255) not null
13
+ # id :integer not null, primary key
14
+ # name :string(255) not null
15
15
  # display_name :text
16
16
  # note :text
17
17
  # position :integer
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -10,12 +10,12 @@ end
10
10
  #
11
11
  # Table name: circulation_statuses
12
12
  #
13
- # id :integer not null, primary key
14
- # name :string(255) not null
13
+ # id :integer not null, primary key
14
+ # name :string(255) not null
15
15
  # display_name :text
16
16
  # note :text
17
17
  # position :integer
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -10,16 +10,16 @@ end
10
10
  #
11
11
  # Table name: lending_policies
12
12
  #
13
- # id :integer not null, primary key
14
- # item_id :integer not null
15
- # user_group_id :integer not null
16
- # loan_period :integer default(0), not null
13
+ # id :integer not null, primary key
14
+ # item_id :integer not null
15
+ # user_group_id :integer not null
16
+ # loan_period :integer default(0), not null
17
17
  # fixed_due_date :datetime
18
- # renewal :integer default(0), not null
19
- # fine :decimal(, ) default(0.0), not null
18
+ # renewal :integer default(0), not null
19
+ # fine :decimal(, ) default(0.0), not null
20
20
  # note :text
21
21
  # position :integer
22
- # created_at :datetime
23
- # updated_at :datetime
22
+ # created_at :datetime not null
23
+ # updated_at :datetime not null
24
24
  #
25
25
 
@@ -13,13 +13,13 @@ end
13
13
  #
14
14
  # Table name: manifestation_checkout_stats
15
15
  #
16
- # id :integer not null, primary key
16
+ # id :integer not null, primary key
17
17
  # start_date :datetime
18
18
  # end_date :datetime
19
19
  # note :text
20
20
  # state :string(255)
21
- # created_at :datetime
22
- # updated_at :datetime
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
23
  # started_at :datetime
24
24
  # completed_at :datetime
25
25
  #
@@ -13,13 +13,13 @@ end
13
13
  #
14
14
  # Table name: manifestation_reserve_stats
15
15
  #
16
- # id :integer not null, primary key
16
+ # id :integer not null, primary key
17
17
  # start_date :datetime
18
18
  # end_date :datetime
19
19
  # note :text
20
20
  # state :string(255)
21
- # created_at :datetime
22
- # updated_at :datetime
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
23
  # started_at :datetime
24
24
  # completed_at :datetime
25
25
  #
@@ -67,23 +67,24 @@ describe Reserve do
67
67
  assert Reserve.expire.should be_true
68
68
  end
69
69
  end
70
+
70
71
  # == Schema Information
71
72
  #
72
73
  # Table name: reserves
73
74
  #
74
- # id :integer not null, primary key
75
- # user_id :integer not null
76
- # manifestation_id :integer not null
75
+ # id :integer not null, primary key
76
+ # user_id :integer not null
77
+ # manifestation_id :integer not null
77
78
  # item_id :integer
78
- # request_status_type_id :integer not null
79
+ # request_status_type_id :integer not null
79
80
  # checked_out_at :datetime
80
- # created_at :datetime not null
81
- # updated_at :datetime not null
81
+ # created_at :datetime not null
82
+ # updated_at :datetime not null
82
83
  # canceled_at :datetime
83
84
  # expired_at :datetime
84
85
  # deleted_at :datetime
85
86
  # state :string(255)
86
- # expiration_notice_to_patron :boolean default(FALSE)
87
- # expiration_notice_to_library :boolean default(FALSE)
87
+ # expiration_notice_to_patron :boolean default(FALSE)
88
+ # expiration_notice_to_library :boolean default(FALSE)
88
89
  #
89
90
 
@@ -10,11 +10,11 @@ end
10
10
  #
11
11
  # Table name: reserve_stat_has_manifestations
12
12
  #
13
- # id :integer not null, primary key
14
- # manifestation_reserve_stat_id :integer not null
15
- # manifestation_id :integer not null
13
+ # id :integer not null, primary key
14
+ # manifestation_reserve_stat_id :integer not null
15
+ # manifestation_id :integer not null
16
16
  # reserves_count :integer
17
- # created_at :datetime
18
- # updated_at :datetime
17
+ # created_at :datetime not null
18
+ # updated_at :datetime not null
19
19
  #
20
20
 
@@ -10,11 +10,11 @@ end
10
10
  #
11
11
  # Table name: reserve_stat_has_users
12
12
  #
13
- # id :integer not null, primary key
14
- # user_reserve_stat_id :integer not null
15
- # user_id :integer not null
13
+ # id :integer not null, primary key
14
+ # user_reserve_stat_id :integer not null
15
+ # user_id :integer not null
16
16
  # reserves_count :integer
17
- # created_at :datetime
18
- # updated_at :datetime
17
+ # created_at :datetime not null
18
+ # updated_at :datetime not null
19
19
  #
20
20
 
@@ -8,17 +8,18 @@ describe UserCheckoutStat do
8
8
  user_checkout_stats(:one).calculate_count.should be_true
9
9
  end
10
10
  end
11
+
11
12
  # == Schema Information
12
13
  #
13
14
  # Table name: user_checkout_stats
14
15
  #
15
- # id :integer not null, primary key
16
+ # id :integer not null, primary key
16
17
  # start_date :datetime
17
18
  # end_date :datetime
18
19
  # note :text
19
20
  # state :string(255)
20
- # created_at :datetime not null
21
- # updated_at :datetime not null
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
22
23
  # started_at :datetime
23
24
  # completed_at :datetime
24
25
  #
@@ -30,20 +30,20 @@ end
30
30
  #
31
31
  # Table name: user_group_has_checkout_types
32
32
  #
33
- # id :integer not null, primary key
34
- # user_group_id :integer not null
35
- # checkout_type_id :integer not null
36
- # checkout_limit :integer default(0), not null
37
- # checkout_period :integer default(0), not null
38
- # checkout_renewal_limit :integer default(0), not null
39
- # reservation_limit :integer default(0), not null
40
- # reservation_expired_period :integer default(7), not null
41
- # set_due_date_before_closing_day :boolean default(FALSE), not null
33
+ # id :integer not null, primary key
34
+ # user_group_id :integer not null
35
+ # checkout_type_id :integer not null
36
+ # checkout_limit :integer default(0), not null
37
+ # checkout_period :integer default(0), not null
38
+ # checkout_renewal_limit :integer default(0), not null
39
+ # reservation_limit :integer default(0), not null
40
+ # reservation_expired_period :integer default(7), not null
41
+ # set_due_date_before_closing_day :boolean default(FALSE), not null
42
42
  # fixed_due_date :datetime
43
43
  # note :text
44
44
  # position :integer
45
- # created_at :datetime
46
- # updated_at :datetime
45
+ # created_at :datetime not null
46
+ # updated_at :datetime not null
47
47
  # current_checkout_count :integer
48
48
  #
49
49
 
@@ -8,17 +8,18 @@ describe UserReserveStat do
8
8
  user_reserve_stats(:one).calculate_count.should be_true
9
9
  end
10
10
  end
11
+
11
12
  # == Schema Information
12
13
  #
13
14
  # Table name: user_reserve_stats
14
15
  #
15
- # id :integer not null, primary key
16
+ # id :integer not null, primary key
16
17
  # start_date :datetime
17
18
  # end_date :datetime
18
19
  # note :text
19
20
  # state :string(255)
20
- # created_at :datetime not null
21
- # updated_at :datetime not null
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
22
23
  # started_at :datetime
23
24
  # completed_at :datetime
24
25
  #