enju_library 0.3.9 → 0.4.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/app/controllers/concerns/enju_library/controller.rb +5 -5
- data/app/controllers/libraries_controller.rb +4 -1
- data/app/controllers/library_groups_controller.rb +7 -1
- data/app/controllers/request_status_types_controller.rb +6 -1
- data/app/controllers/request_types_controller.rb +6 -1
- data/app/controllers/shelves_controller.rb +4 -1
- data/app/controllers/user_groups_controller.rb +3 -0
- data/app/helpers/enju_library/application_helper.rb +18 -0
- data/app/models/budget_type.rb +9 -7
- data/app/models/concerns/enju_library/enju_user.rb +10 -0
- data/app/models/library.rb +29 -43
- data/app/models/library_group.rb +10 -11
- data/app/models/request_status_type.rb +9 -7
- data/app/models/request_type.rb +9 -7
- data/app/models/search_engine.rb +14 -18
- data/app/models/shelf.rb +13 -11
- data/app/models/user_export_file.rb +1 -1
- data/app/models/user_export_file_state_machine.rb +1 -1
- data/app/models/user_group.rb +2 -0
- data/app/models/user_import_file.rb +28 -27
- data/app/models/user_import_file_state_machine.rb +1 -1
- data/app/models/withdraw.rb +6 -0
- data/app/policies/shelf_policy.rb +1 -1
- data/app/views/accepts/_list.html.erb +2 -2
- data/app/views/accepts/index.html.erb +2 -2
- data/app/views/budget_types/_form.html.erb +1 -1
- data/app/views/budget_types/index.html.erb +1 -1
- data/app/views/budget_types/show.html.erb +1 -1
- data/app/views/libraries/_calendar.html.erb +1 -1
- data/app/views/libraries/_form.html.erb +2 -12
- data/app/views/libraries/_map.html+phone.erb +2 -2
- data/app/views/libraries/_map.html.erb +23 -10
- data/app/views/libraries/index.html.erb +1 -1
- data/app/views/libraries/show.html+phone.erb +1 -1
- data/app/views/libraries/show.html+phone.slim +1 -1
- data/app/views/libraries/show.html.erb +2 -2
- data/app/views/library_groups/_form.html.erb +14 -13
- data/app/views/library_groups/index.html.erb +1 -1
- data/app/views/library_groups/show.html.erb +2 -2
- data/app/views/picture_files/_index_shelf.html.erb +1 -1
- data/app/views/request_status_types/_form.html.erb +1 -1
- data/app/views/request_status_types/index.html.erb +1 -1
- data/app/views/request_status_types/show.html.erb +1 -1
- data/app/views/request_types/_form.html.erb +1 -1
- data/app/views/request_types/index.html.erb +1 -1
- data/app/views/request_types/show.html.erb +1 -1
- data/app/views/shelves/_form.html.erb +1 -1
- data/app/views/shelves/_select_form.html.erb +1 -1
- data/app/views/shelves/index.html.erb +3 -3
- data/app/views/shelves/show.html+phone.erb +1 -1
- data/app/views/shelves/show.html+phone.slim +1 -1
- data/app/views/shelves/show.html.erb +2 -2
- data/app/views/user_groups/_form.html.erb +1 -1
- data/app/views/user_groups/index.html.erb +1 -1
- data/app/views/user_groups/show.html.erb +2 -2
- data/app/views/user_import_files/_results.html.erb +0 -5
- data/app/views/user_import_files/new.html.erb +2 -2
- data/app/views/user_import_files/show.html.erb +2 -2
- data/app/views/user_import_results/index.html.erb +11 -0
- data/app/views/withdraws/_list.html.erb +2 -2
- data/app/views/withdraws/index.html.erb +3 -3
- data/app/views/withdraws/new.html.erb +1 -1
- data/config/locales/translation_en.yml +2 -4
- data/config/locales/translation_ja.yml +2 -4
- data/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +1 -1
- data/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/lib/enju_library/version.rb +1 -1
- data/lib/generators/enju_library/setup/setup_generator.rb +2 -7
- data/lib/generators/enju_library/setup/templates/db/fixtures/budget_types.yml +4 -0
- data/lib/generators/enju_library/setup/templates/db/fixtures/libraries.yml +2 -2
- data/lib/generators/enju_library/setup/templates/db/fixtures/library_groups.yml +11 -5
- data/lib/generators/enju_library/setup/templates/db/fixtures/user_groups.yml +1 -2
- data/spec/controllers/budget_types_controller_spec.rb +1 -1
- data/spec/controllers/items_controller_spec.rb +35 -0
- data/spec/dummy/app/helpers/application_helper.rb +1 -0
- data/spec/dummy/app/models/user.rb +1 -2
- data/spec/dummy/bin/bundle +1 -1
- data/spec/dummy/bin/setup +1 -3
- data/spec/dummy/bin/update +4 -2
- data/spec/dummy/bin/yarn +3 -3
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/config/database.yml +70 -9
- data/spec/dummy/config/initializers/assets.rb +1 -1
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/113_create_events.rb +2 -4
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +2 -4
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -4
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +2 -2
- data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +1 -1
- data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20151128142913_create_places.rb +14 -0
- data/spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb +5 -0
- data/spec/dummy/db/migrate/20160319144230_create_issn_records.rb +11 -0
- data/spec/dummy/db/migrate/20160506144040_create_isbn_records.rb +11 -0
- data/spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20170116150432_create_jpno_records.rb +10 -0
- data/spec/dummy/db/migrate/20171126072934_create_ndla_records.rb +10 -0
- data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20181030072731_add_not_null_to_position_on_carrier_type.rb +14 -0
- data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
- data/spec/dummy/db/migrate/20190102034126_create_doi_records.rb +13 -0
- data/spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20190311154610_create_periodicals.rb +10 -0
- data/spec/dummy/db/migrate/20190312033839_create_periodical_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20190314151124_add_full_name_translations_to_create.rb +7 -0
- data/spec/dummy/db/migrate/20190501043418_create_ndl_bib_id_records.rb +10 -0
- data/spec/dummy/db/migrate/20190508160525_create_retains.rb +10 -0
- data/spec/dummy/db/migrate/20190512133459_upgrade_enju_event_to_enju_leaf20.rb +115 -0
- data/spec/dummy/db/migrate/20190629134017_rename_user_group_has_checkout_type_due_date_before_to_due_date_after.rb +5 -0
- data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
- data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
- data/spec/dummy/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb +5 -0
- data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
- data/spec/dummy/db/migrate/20190713114724_add_checkout_id_to_checkin.rb +6 -0
- data/spec/dummy/db/migrate/20190713114940_add_profile_id_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20190713115451_add_full_name_translations_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20190814120827_add_display_name_translations_to_checkout_type.rb +5 -0
- data/spec/dummy/db/schema.rb +402 -204
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/factories/budget_types.rb +8 -7
- data/spec/factories/profile.rb +9 -2
- data/spec/factories/user.rb +25 -31
- data/spec/factories/user_export_file.rb +5 -0
- data/spec/factories/user_import_file.rb +7 -0
- data/spec/factories/user_import_result.rb +6 -0
- data/spec/fixtures/agent_relationship_types.yml +34 -0
- data/spec/fixtures/agent_types.yml +11 -11
- data/spec/fixtures/agents.yml +27 -27
- data/spec/fixtures/baskets.yml +1 -0
- data/spec/fixtures/bookstores.yml +1 -0
- data/spec/fixtures/budget_types.yml +9 -7
- data/spec/fixtures/carrier_type_has_checkout_types.yml +5 -5
- data/spec/fixtures/carrier_types.yml +28 -24
- data/spec/fixtures/checked_items.yml +6 -6
- data/spec/fixtures/checkins.yml +4 -11
- data/spec/fixtures/checkout_stat_has_manifestations.yml +5 -5
- data/spec/fixtures/checkout_stat_has_users.yml +6 -6
- data/spec/fixtures/checkout_types.yml +11 -11
- data/spec/fixtures/checkouts.yml +16 -17
- data/spec/fixtures/circulation_statuses.yml +29 -38
- data/spec/fixtures/classification_types.yml +63 -0
- data/spec/fixtures/content_types.yml +20 -31
- data/spec/fixtures/create_types.yml +43 -0
- data/spec/fixtures/event_categories.yml +23 -23
- data/spec/fixtures/frequencies.yml +17 -25
- data/spec/fixtures/identifier_types.yml +42 -0
- data/spec/fixtures/item_has_use_restrictions.yml +11 -11
- data/spec/fixtures/items.yml +28 -17
- data/spec/fixtures/languages.yml +12 -13
- data/spec/fixtures/lending_policies.yml +8 -15
- data/spec/fixtures/libraries.yml +30 -29
- data/spec/fixtures/library_groups.yml +12 -9
- data/spec/fixtures/manifestation_checkout_stats.yml +4 -3
- data/spec/fixtures/manifestation_relationship_types.yml +29 -0
- data/spec/fixtures/manifestation_reserve_stats.yml +4 -3
- data/spec/fixtures/manifestations.yml +60 -50
- data/spec/fixtures/message_requests.yml +3 -3
- data/spec/fixtures/produce_types.yml +29 -0
- data/spec/fixtures/profiles.yml +11 -6
- data/spec/fixtures/realize_types.yml +36 -0
- data/spec/fixtures/request_status_types.yml +14 -13
- data/spec/fixtures/request_types.yml +13 -12
- data/spec/fixtures/reserve_stat_has_manifestations.yml +5 -5
- data/spec/fixtures/reserve_stat_has_users.yml +5 -5
- data/spec/fixtures/reserve_transitions.yml +8 -7
- data/spec/fixtures/reserves.yml +44 -64
- data/spec/fixtures/roles.yml +22 -5
- data/spec/fixtures/search_engines.yml +13 -12
- data/spec/fixtures/shelves.yml +16 -15
- data/spec/fixtures/subject_heading_types.yml +39 -0
- data/spec/fixtures/subject_types.yml +28 -0
- data/spec/fixtures/use_restrictions.yml +4 -4
- data/spec/fixtures/user_checkout_stats.yml +4 -4
- data/spec/fixtures/user_export_files.yml +1 -1
- data/spec/fixtures/user_group_has_checkout_types.yml +19 -19
- data/spec/fixtures/user_groups.yml +4 -3
- data/spec/fixtures/user_has_roles.yml +3 -4
- data/spec/fixtures/user_reserve_stats.yml +5 -4
- data/spec/models/budget_type_spec.rb +8 -7
- data/spec/models/library_group_spec.rb +5 -14
- data/spec/models/library_spec.rb +26 -25
- data/spec/models/request_status_type_spec.rb +8 -7
- data/spec/models/request_type_spec.rb +8 -7
- data/spec/models/search_engine_spec.rb +13 -12
- data/spec/models/shelf_spec.rb +12 -11
- data/spec/models/user_export_file_spec.rb +2 -2
- data/spec/models/user_group_spec.rb +1 -6
- data/spec/models/user_import_file_spec.rb +23 -23
- data/spec/rails_helper.rb +10 -2
- data/spec/system/libraries_spec.rb +5 -5
- metadata +476 -493
- data/app/helpers/shelves_helper.rb +0 -16
- data/app/views/layouts/libraries.html.erb +0 -31
- data/app/views/libraries/_map_header.html.erb +0 -6
- data/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -18
- data/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
- data/lib/generators/enju_library/setup/templates/db/fixtures/library_group/translations.yml +0 -12
- data/spec/dummy/app/assets/config/manifest.js +0 -5
- data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
- data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
- data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
- data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
- data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
- data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
- data/spec/dummy/yarn.lock +0 -7535
Binary file
|
@@ -8,11 +8,12 @@ end
|
|
8
8
|
#
|
9
9
|
# Table name: budget_types
|
10
10
|
#
|
11
|
-
# id
|
12
|
-
# name
|
13
|
-
# display_name
|
14
|
-
# note
|
15
|
-
# position
|
16
|
-
# created_at
|
17
|
-
# updated_at
|
11
|
+
# id :integer not null, primary key
|
12
|
+
# name :string
|
13
|
+
# display_name :text
|
14
|
+
# note :text
|
15
|
+
# position :integer
|
16
|
+
# created_at :datetime
|
17
|
+
# updated_at :datetime
|
18
|
+
# display_name_translations :jsonb not null
|
18
19
|
#
|
data/spec/factories/profile.rb
CHANGED
@@ -3,8 +3,15 @@ FactoryBot.define do
|
|
3
3
|
f.user_group_id {UserGroup.first.id}
|
4
4
|
f.required_role_id {Role.where(name: 'User').first.id}
|
5
5
|
f.sequence(:user_number){|n| "user_number_#{n}"}
|
6
|
-
f.library_id {
|
6
|
+
f.library_id { Library.find_by(name: 'kamata').id }
|
7
7
|
f.locale { "ja" }
|
8
|
-
|
8
|
+
factory :librarian_profile, class: Profile do |profile|
|
9
|
+
profile.required_role_id {Role.find_by(name: 'Librarian').id}
|
10
|
+
profile.association :user, factory: :librarian
|
11
|
+
end
|
12
|
+
factory :admin_profile, class: Profile do |profile|
|
13
|
+
profile.required_role_id {Role.find_by(name: 'Administrator').id}
|
14
|
+
profile.association :user, factory: :admin
|
15
|
+
end
|
9
16
|
end
|
10
17
|
end
|
data/spec/factories/user.rb
CHANGED
@@ -1,43 +1,37 @@
|
|
1
1
|
FactoryBot.define do
|
2
|
-
factory :admin, class: User do
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
user_has_role.save
|
11
|
-
user.reload
|
2
|
+
factory :admin, class: User do
|
3
|
+
sequence(:username){|n| "admin_#{n}"}
|
4
|
+
sequence(:email){|n| "admin_#{n}@example.jp"}
|
5
|
+
password { 'adminpassword' }
|
6
|
+
password_confirmation { 'adminpassword' }
|
7
|
+
association :profile
|
8
|
+
after(:create) do |user|
|
9
|
+
user.role = Role.find_by(name: 'Administrator')
|
12
10
|
end
|
13
11
|
end
|
14
12
|
|
15
|
-
factory :librarian, class: User do
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
user_has_role.save
|
24
|
-
user.reload
|
13
|
+
factory :librarian, class: User do
|
14
|
+
sequence(:username){|n| "librarian_#{n}"}
|
15
|
+
sequence(:email){|n| "librarian_#{n}@example.jp"}
|
16
|
+
password { 'librarianpassword' }
|
17
|
+
password_confirmation { 'librarianpassword' }
|
18
|
+
association :profile
|
19
|
+
after(:create) do |user|
|
20
|
+
user.role = Role.find_by(name: 'Librarian')
|
25
21
|
end
|
26
22
|
end
|
27
23
|
|
28
|
-
factory :user, class: User do
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
user_has_role.save
|
37
|
-
user.reload
|
24
|
+
factory :user, class: User do
|
25
|
+
sequence(:username){|n| "user_#{n}"}
|
26
|
+
sequence(:email){|n| "user_#{n}@example.jp"}
|
27
|
+
password { 'userpassword' }
|
28
|
+
password_confirmation { 'userpassword' }
|
29
|
+
association :profile
|
30
|
+
after(:create) do |user|
|
31
|
+
user.role = Role.find_by(name: 'User')
|
38
32
|
end
|
39
33
|
end
|
40
34
|
|
41
|
-
factory :invalid_user, class: User do
|
35
|
+
factory :invalid_user, class: User do
|
42
36
|
end
|
43
37
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
agent_relationship_type_00001:
|
4
|
+
id: 1
|
5
|
+
name: see_also
|
6
|
+
display_name: See also
|
7
|
+
note:
|
8
|
+
position: 1
|
9
|
+
agent_relationship_type_00002:
|
10
|
+
id: 2
|
11
|
+
name: member
|
12
|
+
display_name: Member
|
13
|
+
note:
|
14
|
+
position: 2
|
15
|
+
agent_relationship_type_00003:
|
16
|
+
id: 3
|
17
|
+
name: child
|
18
|
+
display_name: Child
|
19
|
+
note:
|
20
|
+
position: 3
|
21
|
+
|
22
|
+
# == Schema Information
|
23
|
+
#
|
24
|
+
# Table name: agent_relationship_types
|
25
|
+
#
|
26
|
+
# id :integer not null, primary key
|
27
|
+
# name :string not null
|
28
|
+
# display_name :text
|
29
|
+
# note :text
|
30
|
+
# position :integer
|
31
|
+
# created_at :datetime
|
32
|
+
# updated_at :datetime
|
33
|
+
# display_name_translations :jsonb not null
|
34
|
+
#
|
@@ -1,21 +1,21 @@
|
|
1
1
|
---
|
2
2
|
agent_type_00001:
|
3
3
|
id: 1
|
4
|
-
name:
|
4
|
+
name: person
|
5
5
|
display_name: Person
|
6
6
|
note:
|
7
7
|
position: 1
|
8
8
|
|
9
9
|
agent_type_00002:
|
10
10
|
id: 2
|
11
|
-
name:
|
11
|
+
name: corporate_body
|
12
12
|
display_name: CorporateBody
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
|
16
16
|
agent_type_00003:
|
17
17
|
id: 3
|
18
|
-
name:
|
18
|
+
name: conference
|
19
19
|
display_name: Conference
|
20
20
|
note:
|
21
21
|
position: 3
|
@@ -24,12 +24,12 @@ agent_type_00003:
|
|
24
24
|
#
|
25
25
|
# Table name: agent_types
|
26
26
|
#
|
27
|
-
# id
|
28
|
-
# name
|
29
|
-
# display_name
|
30
|
-
# note
|
31
|
-
# position
|
32
|
-
# created_at
|
33
|
-
# updated_at
|
27
|
+
# id :integer not null, primary key
|
28
|
+
# name :string not null
|
29
|
+
# display_name :text
|
30
|
+
# note :text
|
31
|
+
# position :integer
|
32
|
+
# created_at :datetime
|
33
|
+
# updated_at :datetime
|
34
|
+
# display_name_translations :jsonb not null
|
34
35
|
#
|
35
|
-
|
data/spec/fixtures/agents.yml
CHANGED
@@ -276,51 +276,51 @@ agent_00202:
|
|
276
276
|
#
|
277
277
|
# Table name: agents
|
278
278
|
#
|
279
|
-
# id :integer
|
280
|
-
# last_name :string
|
281
|
-
# middle_name :string
|
282
|
-
# first_name :string
|
283
|
-
# last_name_transcription :string
|
284
|
-
# middle_name_transcription :string
|
285
|
-
# first_name_transcription :string
|
286
|
-
# corporate_name :string
|
287
|
-
# corporate_name_transcription :string
|
288
|
-
# full_name :string
|
279
|
+
# id :integer not null, primary key
|
280
|
+
# last_name :string
|
281
|
+
# middle_name :string
|
282
|
+
# first_name :string
|
283
|
+
# last_name_transcription :string
|
284
|
+
# middle_name_transcription :string
|
285
|
+
# first_name_transcription :string
|
286
|
+
# corporate_name :string
|
287
|
+
# corporate_name_transcription :string
|
288
|
+
# full_name :string
|
289
289
|
# full_name_transcription :text
|
290
290
|
# full_name_alternative :text
|
291
291
|
# created_at :datetime
|
292
292
|
# updated_at :datetime
|
293
293
|
# deleted_at :datetime
|
294
|
-
# zip_code_1 :string
|
295
|
-
# zip_code_2 :string
|
294
|
+
# zip_code_1 :string
|
295
|
+
# zip_code_2 :string
|
296
296
|
# address_1 :text
|
297
297
|
# address_2 :text
|
298
298
|
# address_1_note :text
|
299
299
|
# address_2_note :text
|
300
|
-
# telephone_number_1 :string
|
301
|
-
# telephone_number_2 :string
|
302
|
-
# fax_number_1 :string
|
303
|
-
# fax_number_2 :string
|
300
|
+
# telephone_number_1 :string
|
301
|
+
# telephone_number_2 :string
|
302
|
+
# fax_number_1 :string
|
303
|
+
# fax_number_2 :string
|
304
304
|
# other_designation :text
|
305
305
|
# place :text
|
306
|
+
# postal_code :string
|
306
307
|
# street :text
|
307
308
|
# locality :text
|
308
309
|
# region :text
|
309
310
|
# date_of_birth :datetime
|
310
311
|
# date_of_death :datetime
|
311
|
-
# language_id :integer
|
312
|
-
# country_id :integer
|
313
|
-
# agent_type_id
|
314
|
-
# lock_version :integer
|
312
|
+
# language_id :integer default(1), not null
|
313
|
+
# country_id :integer default(1), not null
|
314
|
+
# agent_type_id :integer default(1), not null
|
315
|
+
# lock_version :integer default(0), not null
|
315
316
|
# note :text
|
316
|
-
# required_role_id :integer
|
317
|
-
# required_score :integer
|
318
|
-
# state :string(255)
|
317
|
+
# required_role_id :integer default(1), not null
|
318
|
+
# required_score :integer default(0), not null
|
319
319
|
# email :text
|
320
320
|
# url :text
|
321
321
|
# full_name_alternative_transcription :text
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
322
|
+
# birth_date :string
|
323
|
+
# death_date :string
|
324
|
+
# agent_identifier :string
|
325
|
+
# profile_id :integer
|
325
326
|
#
|
326
|
-
|
data/spec/fixtures/baskets.yml
CHANGED
@@ -18,11 +18,13 @@ donation:
|
|
18
18
|
#
|
19
19
|
# Table name: budget_types
|
20
20
|
#
|
21
|
-
# id
|
22
|
-
# name
|
23
|
-
# display_name
|
24
|
-
# note
|
25
|
-
# position
|
26
|
-
# created_at
|
27
|
-
# updated_at
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string
|
23
|
+
# display_name :text
|
24
|
+
# note :text
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
# display_name_translations :jsonb not null
|
28
29
|
#
|
30
|
+
|
@@ -20,12 +20,12 @@ carrier_type_has_checkout_type_00003:
|
|
20
20
|
#
|
21
21
|
# Table name: carrier_type_has_checkout_types
|
22
22
|
#
|
23
|
-
# id :integer
|
24
|
-
# carrier_type_id :integer
|
25
|
-
# checkout_type_id :integer
|
23
|
+
# id :integer not null, primary key
|
24
|
+
# carrier_type_id :integer not null
|
25
|
+
# checkout_type_id :integer not null
|
26
26
|
# note :text
|
27
27
|
# position :integer
|
28
|
-
# created_at :datetime
|
29
|
-
# updated_at :datetime
|
28
|
+
# created_at :datetime
|
29
|
+
# updated_at :datetime
|
30
30
|
#
|
31
31
|
|
@@ -1,17 +1,7 @@
|
|
1
1
|
---
|
2
|
-
carrier_type_00004:
|
3
|
-
name: file
|
4
|
-
display_name: file
|
5
|
-
updated_at: 2007-12-24 01:30:50.637433 +09:00
|
6
|
-
id: 4
|
7
|
-
note: !binary |
|
8
|
-
44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
|
9
|
-
|
10
|
-
created_at: 2007-12-24 01:30:50.637433 +09:00
|
11
|
-
position: 4
|
12
2
|
carrier_type_00001:
|
13
|
-
name:
|
14
|
-
|
3
|
+
name: volume
|
4
|
+
display_name_translations: {"en": "Volume", "ja": "Volume"}
|
15
5
|
updated_at: 2007-11-20 16:04:29.853828 +09:00
|
16
6
|
id: 1
|
17
7
|
note: !binary |
|
@@ -20,32 +10,46 @@ carrier_type_00001:
|
|
20
10
|
created_at: 2007-11-20 15:47:03.641530 +09:00
|
21
11
|
position: 1
|
22
12
|
carrier_type_00002:
|
23
|
-
name:
|
24
|
-
|
13
|
+
name: audio_disc
|
14
|
+
display_name_translations: {"en": "Audio disc", "ja": "Audio disc"}
|
25
15
|
updated_at: 2007-12-19 01:45:26.040674 +09:00
|
26
16
|
id: 2
|
27
17
|
note: "\xE9\x9F\xB3\xE6\xA5\xBDCD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
|
28
18
|
created_at: 2007-12-19 01:45:26.040674 +09:00
|
29
19
|
position: 2
|
30
20
|
carrier_type_00003:
|
31
|
-
name:
|
32
|
-
|
21
|
+
name: videodisc
|
22
|
+
display_name_translations: {"en": "Video disc", "ja": "Video disc"}
|
33
23
|
updated_at: 2007-12-23 04:24:23.151410 +09:00
|
34
24
|
id: 3
|
35
25
|
note: "DVD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
|
36
26
|
created_at: 2007-12-23 04:24:23.151410 +09:00
|
37
27
|
position: 3
|
28
|
+
carrier_type_00004:
|
29
|
+
name: online_resource
|
30
|
+
display_name_translations: {"en": "online_resource", "ja": "online_resource"}
|
31
|
+
updated_at: 2007-12-24 01:30:50.637433 +09:00
|
32
|
+
id: 4
|
33
|
+
note: !binary |
|
34
|
+
44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
|
35
|
+
|
36
|
+
created_at: 2007-12-24 01:30:50.637433 +09:00
|
37
|
+
position: 4
|
38
38
|
|
39
39
|
# == Schema Information
|
40
40
|
#
|
41
41
|
# Table name: carrier_types
|
42
42
|
#
|
43
|
-
# id
|
44
|
-
# name
|
45
|
-
# display_name
|
46
|
-
# note
|
47
|
-
# position
|
48
|
-
# created_at
|
49
|
-
# updated_at
|
43
|
+
# id :integer not null, primary key
|
44
|
+
# name :string not null
|
45
|
+
# display_name :text
|
46
|
+
# note :text
|
47
|
+
# position :integer
|
48
|
+
# created_at :datetime
|
49
|
+
# updated_at :datetime
|
50
|
+
# attachment_file_name :string
|
51
|
+
# attachment_content_type :string
|
52
|
+
# attachment_file_size :bigint
|
53
|
+
# attachment_updated_at :datetime
|
54
|
+
# display_name_translations :jsonb not null
|
50
55
|
#
|
51
|
-
|
@@ -24,12 +24,12 @@ checked_item_00004:
|
|
24
24
|
#
|
25
25
|
# Table name: checked_items
|
26
26
|
#
|
27
|
-
# id :integer
|
28
|
-
# item_id :integer
|
29
|
-
# basket_id :integer
|
30
|
-
# due_date :datetime
|
31
|
-
# created_at :datetime
|
32
|
-
# updated_at :datetime
|
27
|
+
# id :integer not null, primary key
|
28
|
+
# item_id :integer not null
|
29
|
+
# basket_id :integer not null
|
30
|
+
# due_date :datetime not null
|
31
|
+
# created_at :datetime not null
|
32
|
+
# updated_at :datetime not null
|
33
33
|
# librarian_id :integer
|
34
34
|
#
|
35
35
|
|