enju_message 0.1.14.pre9 → 0.1.14.pre10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/message_request.rb +4 -4
  3. data/lib/enju_message/version.rb +1 -1
  4. data/spec/dummy/app/models/user.rb +4 -37
  5. data/spec/dummy/db/migrate/001_create_patrons.rb +1 -10
  6. data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
  7. data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
  8. data/spec/dummy/db/migrate/{20111201163342_create_user_groups.rb → 077_create_user_groups.rb} +2 -2
  9. data/spec/dummy/db/migrate/080_create_library_groups.rb +2 -9
  10. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  11. data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
  12. data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
  13. data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
  14. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
  15. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
  16. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
  17. data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
  18. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
  19. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  20. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
  21. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +11 -0
  22. data/spec/dummy/db/migrate/20111201155456_devise_create_users.rb +46 -0
  23. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
  24. data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
  25. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  26. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
  27. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +26 -0
  28. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
  29. data/spec/dummy/db/schema.rb +202 -27
  30. data/spec/dummy/db/test.sqlite3 +0 -0
  31. data/spec/dummy/solr/data/test/index/{_6n.fdt → _93.fdt} +0 -0
  32. data/spec/dummy/solr/data/test/index/{_6n.fdx → _93.fdx} +0 -0
  33. data/spec/dummy/solr/data/test/index/{_6n.fnm → _93.fnm} +0 -0
  34. data/spec/dummy/solr/data/test/index/{_6n.frq → _93.frq} +0 -0
  35. data/spec/dummy/solr/data/test/index/{_6n.nrm → _93.nrm} +0 -0
  36. data/spec/dummy/solr/data/test/index/{_6n.prx → _93.prx} +0 -0
  37. data/spec/dummy/solr/data/test/index/{_6n.tii → _93.tii} +0 -0
  38. data/spec/dummy/solr/data/test/index/{_6n.tis → _93.tis} +0 -0
  39. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  40. data/spec/dummy/solr/data/test/index/segments_i1 +0 -0
  41. data/spec/factories/library.rb +13 -0
  42. data/spec/factories/user.rb +34 -9
  43. data/spec/fixtures/libraries.yml +102 -0
  44. data/spec/fixtures/library_groups.yml +20 -20
  45. metadata +71 -47
  46. data/spec/dummy/app/models/library_group.rb +0 -86
  47. data/spec/dummy/app/models/patron.rb +0 -167
  48. data/spec/dummy/app/models/patron_type.rb +0 -19
  49. data/spec/dummy/app/models/role.rb +0 -8
  50. data/spec/dummy/app/models/user_group.rb +0 -2
  51. data/spec/dummy/app/models/user_has_role.rb +0 -4
  52. data/spec/dummy/db/development.sqlite3 +0 -0
  53. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +0 -9
  54. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -14
  55. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +0 -52
  56. data/spec/dummy/db/migrate/20120213092115_add_queue_to_delayed_jobs.rb +0 -9
  57. data/spec/dummy/solr/data/test/index/segments_dd +0 -0
@@ -11,7 +11,66 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120213092115) do
14
+ ActiveRecord::Schema.define(:version => 20130412083556) do
15
+
16
+ create_table "accepts", :force => true do |t|
17
+ t.integer "basket_id"
18
+ t.integer "item_id"
19
+ t.integer "librarian_id"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
23
+
24
+ add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
25
+ add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
26
+
27
+ create_table "baskets", :force => true do |t|
28
+ t.integer "user_id"
29
+ t.text "note"
30
+ t.integer "lock_version", :default => 0, :null => false
31
+ t.datetime "created_at", :null => false
32
+ t.datetime "updated_at", :null => false
33
+ end
34
+
35
+ add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
36
+
37
+ create_table "bookstores", :force => true do |t|
38
+ t.text "name", :null => false
39
+ t.string "zip_code"
40
+ t.text "address"
41
+ t.text "note"
42
+ t.string "telephone_number"
43
+ t.string "fax_number"
44
+ t.string "url"
45
+ t.integer "position"
46
+ t.datetime "deleted_at"
47
+ t.datetime "created_at", :null => false
48
+ t.datetime "updated_at", :null => false
49
+ end
50
+
51
+ create_table "budget_types", :force => true do |t|
52
+ t.string "name"
53
+ t.text "display_name"
54
+ t.text "note"
55
+ t.integer "position"
56
+ t.datetime "created_at", :null => false
57
+ t.datetime "updated_at", :null => false
58
+ end
59
+
60
+ create_table "countries", :force => true do |t|
61
+ t.string "name", :null => false
62
+ t.text "display_name"
63
+ t.string "alpha_2"
64
+ t.string "alpha_3"
65
+ t.string "numeric_3"
66
+ t.text "note"
67
+ t.integer "position"
68
+ end
69
+
70
+ add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
71
+ add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
72
+ add_index "countries", ["name"], :name => "index_countries_on_name"
73
+ add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
15
74
 
16
75
  create_table "delayed_jobs", :force => true do |t|
17
76
  t.integer "priority", :default => 0
@@ -24,7 +83,6 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
24
83
  t.string "locked_by"
25
84
  t.datetime "created_at", :null => false
26
85
  t.datetime "updated_at", :null => false
27
- t.string "queue"
28
86
  end
29
87
 
30
88
  add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
@@ -42,6 +100,36 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
42
100
  t.datetime "updated_at", :null => false
43
101
  end
44
102
 
103
+ create_table "libraries", :force => true do |t|
104
+ t.string "name", :null => false
105
+ t.text "display_name"
106
+ t.string "short_display_name", :null => false
107
+ t.string "zip_code"
108
+ t.text "street"
109
+ t.text "locality"
110
+ t.text "region"
111
+ t.string "telephone_number_1"
112
+ t.string "telephone_number_2"
113
+ t.string "fax_number"
114
+ t.text "note"
115
+ t.integer "call_number_rows", :default => 1, :null => false
116
+ t.string "call_number_delimiter", :default => "|", :null => false
117
+ t.integer "library_group_id", :default => 1, :null => false
118
+ t.integer "users_count", :default => 0, :null => false
119
+ t.integer "position"
120
+ t.integer "country_id"
121
+ t.datetime "created_at", :null => false
122
+ t.datetime "updated_at", :null => false
123
+ t.datetime "deleted_at"
124
+ t.text "opening_hour"
125
+ t.string "isil"
126
+ t.float "latitude"
127
+ t.float "longitude"
128
+ end
129
+
130
+ add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
131
+ add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
132
+
45
133
  create_table "library_groups", :force => true do |t|
46
134
  t.string "name", :null => false
47
135
  t.text "display_name"
@@ -50,14 +138,12 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
50
138
  t.text "my_networks"
51
139
  t.text "login_banner"
52
140
  t.text "note"
53
- t.integer "valid_period_for_new_user", :default => 365, :null => false
54
- t.boolean "post_to_union_catalog", :default => false, :null => false
55
141
  t.integer "country_id"
142
+ t.integer "position"
56
143
  t.datetime "created_at", :null => false
57
144
  t.datetime "updated_at", :null => false
58
145
  t.text "admin_networks"
59
146
  t.boolean "allow_bookmark_external_url", :default => false, :null => false
60
- t.integer "position"
61
147
  t.string "url", :default => "http://localhost:3000/"
62
148
  end
63
149
 
@@ -158,15 +244,13 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
158
244
  t.integer "patron_type_id", :default => 1, :null => false
159
245
  t.integer "lock_version", :default => 0, :null => false
160
246
  t.text "note"
161
- t.integer "creates_count", :default => 0, :null => false
162
- t.integer "realizes_count", :default => 0, :null => false
163
- t.integer "produces_count", :default => 0, :null => false
164
- t.integer "owns_count", :default => 0, :null => false
165
247
  t.integer "required_role_id", :default => 1, :null => false
166
248
  t.integer "required_score", :default => 0, :null => false
167
249
  t.string "state"
168
250
  t.text "email"
169
251
  t.text "url"
252
+ t.string "birth_date"
253
+ t.string "death_date"
170
254
  end
171
255
 
172
256
  add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
@@ -175,6 +259,24 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
175
259
  add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
176
260
  add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
177
261
 
262
+ create_table "request_status_types", :force => true do |t|
263
+ t.string "name", :null => false
264
+ t.text "display_name"
265
+ t.text "note"
266
+ t.integer "position"
267
+ t.datetime "created_at", :null => false
268
+ t.datetime "updated_at", :null => false
269
+ end
270
+
271
+ create_table "request_types", :force => true do |t|
272
+ t.string "name", :null => false
273
+ t.text "display_name"
274
+ t.text "note"
275
+ t.integer "position"
276
+ t.datetime "created_at", :null => false
277
+ t.datetime "updated_at", :null => false
278
+ end
279
+
178
280
  create_table "roles", :force => true do |t|
179
281
  t.string "name"
180
282
  t.text "display_name"
@@ -184,13 +286,71 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
184
286
  t.datetime "updated_at", :null => false
185
287
  end
186
288
 
289
+ create_table "search_engines", :force => true do |t|
290
+ t.string "name", :null => false
291
+ t.text "display_name"
292
+ t.string "url", :null => false
293
+ t.text "base_url", :null => false
294
+ t.text "http_method", :null => false
295
+ t.text "query_param", :null => false
296
+ t.text "additional_param"
297
+ t.text "note"
298
+ t.integer "position"
299
+ t.datetime "created_at", :null => false
300
+ t.datetime "updated_at", :null => false
301
+ end
302
+
303
+ create_table "shelves", :force => true do |t|
304
+ t.string "name", :null => false
305
+ t.text "display_name"
306
+ t.text "note"
307
+ t.integer "library_id", :default => 1, :null => false
308
+ t.integer "items_count", :default => 0, :null => false
309
+ t.integer "position"
310
+ t.datetime "created_at", :null => false
311
+ t.datetime "updated_at", :null => false
312
+ t.datetime "deleted_at"
313
+ t.boolean "closed", :default => false, :null => false
314
+ end
315
+
316
+ add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
317
+
318
+ create_table "subscribes", :force => true do |t|
319
+ t.integer "subscription_id", :null => false
320
+ t.integer "work_id", :null => false
321
+ t.datetime "start_at", :null => false
322
+ t.datetime "end_at", :null => false
323
+ t.datetime "created_at", :null => false
324
+ t.datetime "updated_at", :null => false
325
+ end
326
+
327
+ add_index "subscribes", ["subscription_id"], :name => "index_subscribes_on_subscription_id"
328
+ add_index "subscribes", ["work_id"], :name => "index_subscribes_on_work_id"
329
+
330
+ create_table "subscriptions", :force => true do |t|
331
+ t.text "title", :null => false
332
+ t.text "note"
333
+ t.integer "user_id"
334
+ t.integer "order_list_id"
335
+ t.datetime "deleted_at"
336
+ t.integer "subscribes_count", :default => 0, :null => false
337
+ t.datetime "created_at", :null => false
338
+ t.datetime "updated_at", :null => false
339
+ end
340
+
341
+ add_index "subscriptions", ["order_list_id"], :name => "index_subscriptions_on_order_list_id"
342
+ add_index "subscriptions", ["user_id"], :name => "index_subscriptions_on_user_id"
343
+
187
344
  create_table "user_groups", :force => true do |t|
188
345
  t.string "name"
189
346
  t.text "display_name"
190
347
  t.text "note"
191
348
  t.integer "position"
192
- t.datetime "created_at", :null => false
193
- t.datetime "updated_at", :null => false
349
+ t.datetime "created_at", :null => false
350
+ t.datetime "updated_at", :null => false
351
+ t.datetime "deleted_at"
352
+ t.integer "valid_period_for_new_user", :default => 0, :null => false
353
+ t.datetime "expired_at"
194
354
  end
195
355
 
196
356
  create_table "user_has_roles", :force => true do |t|
@@ -201,14 +361,6 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
201
361
  end
202
362
 
203
363
  create_table "users", :force => true do |t|
204
- t.integer "user_group_id"
205
- t.integer "required_role_id"
206
- t.string "username"
207
- t.text "note"
208
- t.string "locale"
209
- t.string "user_number"
210
- t.datetime "created_at", :null => false
211
- t.datetime "updated_at", :null => false
212
364
  t.string "email", :default => "", :null => false
213
365
  t.string "encrypted_password", :default => "", :null => false
214
366
  t.string "reset_password_token"
@@ -219,18 +371,41 @@ ActiveRecord::Schema.define(:version => 20120213092115) do
219
371
  t.datetime "last_sign_in_at"
220
372
  t.string "current_sign_in_ip"
221
373
  t.string "last_sign_in_ip"
222
- t.string "password_salt"
223
- t.string "confirmation_token"
224
- t.datetime "confirmed_at"
225
- t.datetime "confirmation_sent_at"
226
- t.string "unconfirmed_email"
227
- t.integer "failed_attempts", :default => 0
374
+ t.datetime "created_at", :null => false
375
+ t.datetime "updated_at", :null => false
376
+ t.string "username"
377
+ t.string "user_number"
378
+ t.string "state"
379
+ t.string "locale"
380
+ t.datetime "deleted_at"
381
+ t.datetime "expired_at"
382
+ t.integer "library_id", :default => 1, :null => false
383
+ t.integer "required_role_id", :default => 1, :null => false
384
+ t.integer "user_group_id", :default => 1, :null => false
385
+ t.text "note"
386
+ t.text "keyword_list"
387
+ t.integer "failed_attempts"
228
388
  t.string "unlock_token"
229
389
  t.datetime "locked_at"
230
- t.string "authentication_token"
390
+ t.datetime "confirmed_at"
231
391
  end
232
392
 
233
- add_index "users", ["email"], :name => "index_users_on_email"
393
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
234
394
  add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
395
+ add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
396
+ add_index "users", ["user_group_id"], :name => "index_users_on_user_group_id"
397
+ add_index "users", ["user_number"], :name => "index_users_on_user_number", :unique => true
398
+ add_index "users", ["username"], :name => "index_users_on_username", :unique => true
399
+
400
+ create_table "versions", :force => true do |t|
401
+ t.string "item_type", :null => false
402
+ t.integer "item_id", :null => false
403
+ t.string "event", :null => false
404
+ t.string "whodunnit"
405
+ t.text "object"
406
+ t.datetime "created_at"
407
+ end
408
+
409
+ add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
235
410
 
236
411
  end
Binary file
@@ -0,0 +1,13 @@
1
+ FactoryGirl.define do
2
+ factory :library do |f|
3
+ f.sequence(:name){|n| "library#{n}"}
4
+ f.sequence(:short_display_name){|n| "library_#{n}"}
5
+ f.library_group_id{LibraryGroup.first.id}
6
+ end
7
+ end
8
+
9
+ FactoryGirl.define do
10
+ factory :invalid_library, :class => Library do |f|
11
+ f.library_group_id{LibraryGroup.first.id}
12
+ end
13
+ end
@@ -2,31 +2,56 @@ FactoryGirl.define do
2
2
  factory :admin, :class => User do |f|
3
3
  f.sequence(:username){|n| "admin_#{n}"}
4
4
  f.sequence(:email){|n| "admin_#{n}@example.jp"}
5
- f.role {Role.find_by_name('Administrator')}
5
+ f.email_confirmation{|u| u.email}
6
+ f.library_id{FactoryGirl.create(:library).id}
6
7
  f.password 'adminpassword'
7
8
  f.password_confirmation 'adminpassword'
8
- f.user_group {UserGroup.first}
9
- f.required_role {Role.find_by_name('User')}
9
+ f.user_group_id{UserGroup.where(:name => 'User').first.id}
10
+ f.required_role_id{Role.find_by_name('User').id}
11
+ f.locale 'ja'
12
+ f.after(:create) do |user|
13
+ user_has_role = UserHasRole.new
14
+ user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('Administrator').id})
15
+ user_has_role.save
16
+ user.reload
17
+ end
10
18
  end
11
19
 
12
20
  factory :librarian, :class => User do |f|
13
21
  f.sequence(:username){|n| "librarian_#{n}"}
14
22
  f.sequence(:email){|n| "librarian_#{n}@example.jp"}
15
- f.role {Role.find_by_name('Librarian')}
23
+ f.email_confirmation{|u| u.email}
24
+ f.library_id{FactoryGirl.create(:library).id}
16
25
  f.password 'librarianpassword'
17
26
  f.password_confirmation 'librarianpassword'
18
- f.user_group {UserGroup.first}
19
- f.required_role {Role.find_by_name('User')}
27
+ f.user_group_id{UserGroup.where(:name => 'User').first.id}
28
+ f.required_role_id{Role.find_by_name('User').id}
29
+ f.locale 'ja'
30
+ f.after(:create) do |user|
31
+ user_has_role = UserHasRole.new
32
+ user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('Librarian').id})
33
+ user_has_role.save
34
+ user.reload
35
+ end
20
36
  end
21
37
 
22
38
  factory :user, :class => User do |f|
23
39
  f.sequence(:username){|n| "user_#{n}"}
24
40
  f.sequence(:email){|n| "user_#{n}@example.jp"}
25
- f.role {Role.find_by_name('User')}
41
+ f.email_confirmation{|u| u.email}
42
+ f.library_id{FactoryGirl.create(:library).id}
26
43
  f.password 'userpassword'
27
44
  f.password_confirmation 'userpassword'
28
- f.user_group {UserGroup.first}
29
- f.required_role {Role.find_by_name('User')}
45
+ f.user_group_id{UserGroup.where(:name => '(not specified)').first.id}
46
+ f.required_role_id{Role.find_by_name('User').id}
47
+ f.locale 'ja'
48
+ f.sequence(:user_number){|n| "user_number_#{n}"}
49
+ f.after(:create) do |user|
50
+ user_has_role = UserHasRole.new
51
+ user_has_role.assign_attributes({:user_id => user.id, :role_id => Role.find_by_name('User').id})
52
+ user_has_role.save
53
+ user.reload
54
+ end
30
55
  end
31
56
 
32
57
  factory :invalid_user, :class => User do |f|
@@ -0,0 +1,102 @@
1
+ ---
2
+ library_00001:
3
+ name: web
4
+ short_display_name: Web
5
+ display_name: World Wide Web
6
+ fax_number:
7
+ updated_at: 2007-08-31 00:18:06.662349 +09:00
8
+ telephone_number_1:
9
+ telephone_number_2:
10
+ id: 1
11
+ zip_code:
12
+ region:
13
+ locality:
14
+ street:
15
+ created_at: 2007-08-13 18:10:00 +09:00
16
+ library_group_id: 1
17
+ call_number_delimiter: "|"
18
+ position: 1
19
+ library_00002:
20
+ name: kamata
21
+ short_display_name: 蒲田
22
+ display_name: Kamata Library
23
+ fax_number: ""
24
+ updated_at: 2007-08-31 00:18:06.662349 +09:00
25
+ telephone_number_1: 81-3-3732-5111
26
+ telephone_number_2: ""
27
+ id: 2
28
+ zip_code: 144-8535
29
+ region: Tokyo
30
+ locality:
31
+ street:
32
+ created_at: 2007-08-13 18:10:00 +09:00
33
+ library_group_id: 1
34
+ call_number_delimiter: "|"
35
+ position: 2
36
+ isil: "JP-0000000"
37
+ library_00003:
38
+ name: hachioji
39
+ short_display_name: 八王子
40
+ display_name: Hachioji Library
41
+ fax_number: 042-637-2116
42
+ updated_at: 2007-08-31 00:18:16.188285 +09:00
43
+ telephone_number_1: 042-637-2033
44
+ telephone_number_2: ""
45
+ id: 3
46
+ zip_code: 192-0982
47
+ region: Tokyo
48
+ locality: Hachioji
49
+ street:
50
+ created_at: 2007-08-14 16:37:00 +09:00
51
+ library_group_id: 1
52
+ call_number_delimiter: "|"
53
+ position: 3
54
+ library_00004:
55
+ name: mita
56
+ short_display_name: 三田
57
+ display_name: Mita Library
58
+ fax_number: ""
59
+ updated_at: 2007-08-31 00:18:20.043951 +09:00
60
+ telephone_number_1: ""
61
+ telephone_number_2: ""
62
+ id: 4
63
+ zip_code: 108-8345
64
+ region: Tokyo
65
+ locality: Minato
66
+ street:
67
+ created_at: 2007-08-23 19:51:00 +09:00
68
+ library_group_id: 1
69
+ call_number_delimiter: "|"
70
+ position: 4
71
+
72
+ # == Schema Information
73
+ #
74
+ # Table name: libraries
75
+ #
76
+ # id :integer not null, primary key
77
+ # name :string(255) not null
78
+ # display_name :text
79
+ # short_display_name :string(255) not null
80
+ # zip_code :string(255)
81
+ # street :text
82
+ # locality :text
83
+ # region :text
84
+ # telephone_number_1 :string(255)
85
+ # telephone_number_2 :string(255)
86
+ # fax_number :string(255)
87
+ # note :text
88
+ # call_number_rows :integer default(1), not null
89
+ # call_number_delimiter :string(255) default("|"), not null
90
+ # library_group_id :integer default(1), not null
91
+ # users_count :integer default(0), not null
92
+ # position :integer
93
+ # country_id :integer
94
+ # created_at :datetime not null
95
+ # updated_at :datetime not null
96
+ # deleted_at :datetime
97
+ # opening_hour :text
98
+ # isil :string(255)
99
+ # latitude :float
100
+ # longitude :float
101
+ #
102
+
@@ -1,34 +1,34 @@
1
1
  # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
2
  one:
3
3
  id: 1
4
- name: unknown
5
- display_name: unknown
6
- short_name: unknown
4
+ name: enju_library
5
+ display_name: "<%= I18n.locale %>: Enju Library"
6
+ short_name: enju
7
7
  email: next-l@library.example.jp
8
8
  note:
9
9
  my_networks: 0.0.0.0/0
10
10
  url: "http://localhost:3000/"
11
-
11
+ position: 1
12
+ login_banner: "*Next-L Enju*"
13
+ admin_networks: 0.0.0.0/0
12
14
 
13
15
  # == Schema Information
14
16
  #
15
17
  # Table name: library_groups
16
18
  #
17
- # id :integer not null, primary key
18
- # name :string(255) not null
19
- # display_name :text
20
- # short_name :string(255) not null
21
- # email :string(255)
22
- # my_networks :text
23
- # login_banner :text
24
- # note :text
25
- # post_to_union_catalog :boolean default(FALSE), not null
26
- # country_id :integer
27
- # created_at :datetime
28
- # updated_at :datetime
29
- # admin_networks :text
30
- # allow_bookmark_external_url :boolean default(FALSE), not null
31
- # position :integer
32
- # url :string(255) default("http://localhost:3000/")
19
+ # id :integer not null, primary key
20
+ # name :string(255) not null
21
+ # display_name :text
22
+ # short_name :string(255) not null
23
+ # email :string(255)
24
+ # my_networks :text
25
+ # login_banner :text
26
+ # note :text
27
+ # country_id :integer
28
+ # position :integer
29
+ # created_at :datetime not null
30
+ # updated_at :datetime not null
31
+ # admin_networks :text
32
+ # url :string(255) default("http://localhost:3000/")
33
33
  #
34
34