enju_circulation 0.1.0.pre29 → 0.1.0.pre30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/checked_item.rb +32 -19
- data/app/models/reserve.rb +8 -8
- data/app/views/checked_items/_list.html.erb +4 -2
- data/app/views/reserves/_title.html.erb +3 -3
- data/lib/enju_circulation/version.rb +1 -1
- data/spec/controllers/checked_items_controller_spec.rb +15 -1
- data/spec/dummy/app/models/local_agent.rb +1 -1
- data/spec/dummy/app/models/user.rb +1 -1
- data/spec/dummy/db/migrate/001_create_agents.rb +8 -8
- data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
- data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
- data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
- data/spec/dummy/db/migrate/059_create_libraries.rb +2 -2
- data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
- data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +2 -2
- data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +2 -2
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +5 -5
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +3 -3
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +5 -5
- data/spec/dummy/db/schema.rb +102 -102
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.fdt → _2hv.fdt} +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.fdx → _2hv.fdx} +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.fnm → _2hv.fnm} +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.frq → _2hv.frq} +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.nrm → _2hv.nrm} +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.prx → _2hv.prx} +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.tii → _2hv.tii} +0 -0
- data/spec/dummy/solr/data/test/index/{_2fp.tis → _2hv.tis} +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_4zj +0 -0
- data/spec/fixtures/agent_types.yml +4 -4
- data/spec/fixtures/agents.yml +46 -46
- data/spec/fixtures/libraries.yml +6 -6
- data/spec/fixtures/reserves.yml +1 -1
- metadata +30 -48
- data/spec/dummy/app/models/local_patron.rb +0 -13
- data/spec/dummy/db/migrate/001_create_patrons.rb +0 -58
- data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +0 -12
- data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +0 -12
- data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
- data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
- data/spec/dummy/solr/data/test/index/segments_4v7 +0 -0
- data/spec/fixtures/patron_types.yml +0 -35
- data/spec/fixtures/patrons.yml +0 -338
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_circulation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_biblio
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.0.
|
19
|
+
version: 0.1.0.pre43
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.0.
|
26
|
+
version: 0.1.0.pre43
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: enju_library
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.0.
|
33
|
+
version: 0.1.0.pre25
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.0.
|
40
|
+
version: 0.1.0.pre25
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: enju_message
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.14.
|
47
|
+
version: 0.1.14.pre10
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.14.
|
54
|
+
version: 0.1.14.pre10
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: enju_event
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.17.
|
61
|
+
version: 0.1.17.pre13
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.1.17.
|
68
|
+
version: 0.1.17.pre13
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: enju_leaf
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.1.0.
|
75
|
+
version: 1.1.0.rc3
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.1.0.
|
82
|
+
version: 1.1.0.rc3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -460,7 +460,6 @@ files:
|
|
460
460
|
- spec/dummy/app/mailers/notifier.rb
|
461
461
|
- spec/dummy/app/models/ability.rb
|
462
462
|
- spec/dummy/app/models/local_agent.rb
|
463
|
-
- spec/dummy/app/models/local_patron.rb
|
464
463
|
- spec/dummy/app/models/setting.rb
|
465
464
|
- spec/dummy/app/models/user.rb
|
466
465
|
- spec/dummy/app/views/layouts/application.html.erb
|
@@ -494,7 +493,6 @@ files:
|
|
494
493
|
- spec/dummy/config.ru
|
495
494
|
- spec/dummy/db/development.sqlite3
|
496
495
|
- spec/dummy/db/migrate/001_create_agents.rb
|
497
|
-
- spec/dummy/db/migrate/001_create_patrons.rb
|
498
496
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
499
497
|
- spec/dummy/db/migrate/006_create_items.rb
|
500
498
|
- spec/dummy/db/migrate/012_create_owns.rb
|
@@ -517,12 +515,10 @@ files:
|
|
517
515
|
- spec/dummy/db/migrate/20080830154109_create_realizes.rb
|
518
516
|
- spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
|
519
517
|
- spec/dummy/db/migrate/20080905191442_create_agent_types.rb
|
520
|
-
- spec/dummy/db/migrate/20080905191442_create_patron_types.rb
|
521
518
|
- spec/dummy/db/migrate/20081025083323_create_countries.rb
|
522
519
|
- spec/dummy/db/migrate/20081025083905_create_languages.rb
|
523
520
|
- spec/dummy/db/migrate/20081027150907_create_picture_files.rb
|
524
521
|
- spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb
|
525
|
-
- spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb
|
526
522
|
- spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
|
527
523
|
- spec/dummy/db/migrate/20091202124834_create_versions.rb
|
528
524
|
- spec/dummy/db/migrate/20091214131723_create_series_statements.rb
|
@@ -532,16 +528,13 @@ files:
|
|
532
528
|
- spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb
|
533
529
|
- spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
|
534
530
|
- spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
|
535
|
-
- spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
|
536
531
|
- spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
|
537
532
|
- spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
|
538
|
-
- spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb
|
539
533
|
- spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb
|
540
534
|
- spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb
|
541
535
|
- spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
|
542
536
|
- spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
|
543
537
|
- spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
|
544
|
-
- spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb
|
545
538
|
- spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
|
546
539
|
- spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb
|
547
540
|
- spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb
|
@@ -590,16 +583,16 @@ files:
|
|
590
583
|
- spec/dummy/solr/conf/spellings.txt
|
591
584
|
- spec/dummy/solr/conf/stopwords.txt
|
592
585
|
- spec/dummy/solr/conf/synonyms.txt
|
593
|
-
- spec/dummy/solr/data/test/index/
|
594
|
-
- spec/dummy/solr/data/test/index/
|
595
|
-
- spec/dummy/solr/data/test/index/
|
596
|
-
- spec/dummy/solr/data/test/index/
|
597
|
-
- spec/dummy/solr/data/test/index/
|
598
|
-
- spec/dummy/solr/data/test/index/
|
599
|
-
- spec/dummy/solr/data/test/index/
|
600
|
-
- spec/dummy/solr/data/test/index/
|
586
|
+
- spec/dummy/solr/data/test/index/_2hv.fdt
|
587
|
+
- spec/dummy/solr/data/test/index/_2hv.fdx
|
588
|
+
- spec/dummy/solr/data/test/index/_2hv.fnm
|
589
|
+
- spec/dummy/solr/data/test/index/_2hv.frq
|
590
|
+
- spec/dummy/solr/data/test/index/_2hv.nrm
|
591
|
+
- spec/dummy/solr/data/test/index/_2hv.prx
|
592
|
+
- spec/dummy/solr/data/test/index/_2hv.tii
|
593
|
+
- spec/dummy/solr/data/test/index/_2hv.tis
|
601
594
|
- spec/dummy/solr/data/test/index/segments.gen
|
602
|
-
- spec/dummy/solr/data/test/index/
|
595
|
+
- spec/dummy/solr/data/test/index/segments_4zj
|
603
596
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
604
597
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
605
598
|
- spec/factories/basket.rb
|
@@ -651,8 +644,6 @@ files:
|
|
651
644
|
- spec/fixtures/manifestations.yml
|
652
645
|
- spec/fixtures/message_requests.yml
|
653
646
|
- spec/fixtures/message_templates.yml
|
654
|
-
- spec/fixtures/patron_types.yml
|
655
|
-
- spec/fixtures/patrons.yml
|
656
647
|
- spec/fixtures/request_status_types.yml
|
657
648
|
- spec/fixtures/request_types.yml
|
658
649
|
- spec/fixtures/reserve_stat_has_manifestations.yml
|
@@ -744,7 +735,6 @@ test_files:
|
|
744
735
|
- spec/dummy/app/mailers/notifier.rb
|
745
736
|
- spec/dummy/app/models/ability.rb
|
746
737
|
- spec/dummy/app/models/local_agent.rb
|
747
|
-
- spec/dummy/app/models/local_patron.rb
|
748
738
|
- spec/dummy/app/models/setting.rb
|
749
739
|
- spec/dummy/app/models/user.rb
|
750
740
|
- spec/dummy/app/views/layouts/application.html.erb
|
@@ -778,7 +768,6 @@ test_files:
|
|
778
768
|
- spec/dummy/config.ru
|
779
769
|
- spec/dummy/db/development.sqlite3
|
780
770
|
- spec/dummy/db/migrate/001_create_agents.rb
|
781
|
-
- spec/dummy/db/migrate/001_create_patrons.rb
|
782
771
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
783
772
|
- spec/dummy/db/migrate/006_create_items.rb
|
784
773
|
- spec/dummy/db/migrate/012_create_owns.rb
|
@@ -801,12 +790,10 @@ test_files:
|
|
801
790
|
- spec/dummy/db/migrate/20080830154109_create_realizes.rb
|
802
791
|
- spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
|
803
792
|
- spec/dummy/db/migrate/20080905191442_create_agent_types.rb
|
804
|
-
- spec/dummy/db/migrate/20080905191442_create_patron_types.rb
|
805
793
|
- spec/dummy/db/migrate/20081025083323_create_countries.rb
|
806
794
|
- spec/dummy/db/migrate/20081025083905_create_languages.rb
|
807
795
|
- spec/dummy/db/migrate/20081027150907_create_picture_files.rb
|
808
796
|
- spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb
|
809
|
-
- spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb
|
810
797
|
- spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
|
811
798
|
- spec/dummy/db/migrate/20091202124834_create_versions.rb
|
812
799
|
- spec/dummy/db/migrate/20091214131723_create_series_statements.rb
|
@@ -816,16 +803,13 @@ test_files:
|
|
816
803
|
- spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb
|
817
804
|
- spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
|
818
805
|
- spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
|
819
|
-
- spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb
|
820
806
|
- spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
|
821
807
|
- spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
|
822
|
-
- spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb
|
823
808
|
- spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb
|
824
809
|
- spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb
|
825
810
|
- spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
|
826
811
|
- spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
|
827
812
|
- spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
|
828
|
-
- spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb
|
829
813
|
- spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
|
830
814
|
- spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb
|
831
815
|
- spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb
|
@@ -874,16 +858,16 @@ test_files:
|
|
874
858
|
- spec/dummy/solr/conf/spellings.txt
|
875
859
|
- spec/dummy/solr/conf/stopwords.txt
|
876
860
|
- spec/dummy/solr/conf/synonyms.txt
|
877
|
-
- spec/dummy/solr/data/test/index/
|
878
|
-
- spec/dummy/solr/data/test/index/
|
879
|
-
- spec/dummy/solr/data/test/index/
|
880
|
-
- spec/dummy/solr/data/test/index/
|
881
|
-
- spec/dummy/solr/data/test/index/
|
882
|
-
- spec/dummy/solr/data/test/index/
|
883
|
-
- spec/dummy/solr/data/test/index/
|
884
|
-
- spec/dummy/solr/data/test/index/
|
861
|
+
- spec/dummy/solr/data/test/index/_2hv.fdt
|
862
|
+
- spec/dummy/solr/data/test/index/_2hv.fdx
|
863
|
+
- spec/dummy/solr/data/test/index/_2hv.fnm
|
864
|
+
- spec/dummy/solr/data/test/index/_2hv.frq
|
865
|
+
- spec/dummy/solr/data/test/index/_2hv.nrm
|
866
|
+
- spec/dummy/solr/data/test/index/_2hv.prx
|
867
|
+
- spec/dummy/solr/data/test/index/_2hv.tii
|
868
|
+
- spec/dummy/solr/data/test/index/_2hv.tis
|
885
869
|
- spec/dummy/solr/data/test/index/segments.gen
|
886
|
-
- spec/dummy/solr/data/test/index/
|
870
|
+
- spec/dummy/solr/data/test/index/segments_4zj
|
887
871
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
888
872
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
889
873
|
- spec/factories/basket.rb
|
@@ -935,8 +919,6 @@ test_files:
|
|
935
919
|
- spec/fixtures/manifestations.yml
|
936
920
|
- spec/fixtures/message_requests.yml
|
937
921
|
- spec/fixtures/message_templates.yml
|
938
|
-
- spec/fixtures/patron_types.yml
|
939
|
-
- spec/fixtures/patrons.yml
|
940
922
|
- spec/fixtures/request_status_types.yml
|
941
923
|
- spec/fixtures/request_types.yml
|
942
924
|
- spec/fixtures/reserve_stat_has_manifestations.yml
|
@@ -1,58 +0,0 @@
|
|
1
|
-
class CreatePatrons < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table :patrons do |t|
|
4
|
-
t.integer :user_id
|
5
|
-
t.string :last_name
|
6
|
-
t.string :middle_name
|
7
|
-
t.string :first_name
|
8
|
-
t.string :last_name_transcription
|
9
|
-
t.string :middle_name_transcription
|
10
|
-
t.string :first_name_transcription
|
11
|
-
t.string :corporate_name
|
12
|
-
t.string :corporate_name_transcription
|
13
|
-
t.string :full_name
|
14
|
-
t.text :full_name_transcription
|
15
|
-
t.text :full_name_alternative
|
16
|
-
t.timestamps
|
17
|
-
t.datetime :deleted_at
|
18
|
-
t.string :zip_code_1
|
19
|
-
t.string :zip_code_2
|
20
|
-
t.text :address_1
|
21
|
-
t.text :address_2
|
22
|
-
t.text :address_1_note
|
23
|
-
t.text :address_2_note
|
24
|
-
t.string :telephone_number_1
|
25
|
-
t.string :telephone_number_2
|
26
|
-
t.string :fax_number_1
|
27
|
-
t.string :fax_number_2
|
28
|
-
t.text :other_designation
|
29
|
-
t.text :place
|
30
|
-
t.string :postal_code
|
31
|
-
t.text :street
|
32
|
-
t.text :locality
|
33
|
-
t.text :region
|
34
|
-
t.datetime :date_of_birth
|
35
|
-
t.datetime :date_of_death
|
36
|
-
t.integer :language_id, :default => 1, :null => false
|
37
|
-
t.integer :country_id, :default => 1, :null => false
|
38
|
-
t.integer :patron_type_id, :default => 1, :null => false
|
39
|
-
t.integer :lock_version, :default => 0, :null => false
|
40
|
-
t.text :note
|
41
|
-
t.integer :creates_count, :default => 0, :null => false
|
42
|
-
t.integer :realizes_count, :default => 0, :null => false
|
43
|
-
t.integer :produces_count, :default => 0, :null => false
|
44
|
-
t.integer :owns_count, :default => 0, :null => false
|
45
|
-
#t.integer :resource_has_subjects_count, :default => 0, :null => false
|
46
|
-
t.integer :required_role_id, :default => 1, :null => false
|
47
|
-
t.integer :required_score, :default => 0, :null => false
|
48
|
-
t.string :state
|
49
|
-
t.text :email
|
50
|
-
t.text :url
|
51
|
-
end
|
52
|
-
add_index :patrons, :user_id, :unique => true
|
53
|
-
add_index :patrons, :language_id
|
54
|
-
add_index :patrons, :country_id
|
55
|
-
add_index :patrons, :required_role_id
|
56
|
-
add_index :patrons, :full_name
|
57
|
-
end
|
58
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class CreatePatronRelationships < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table :patron_relationships do |t|
|
4
|
-
t.integer :parent_id
|
5
|
-
t.integer :child_id
|
6
|
-
t.integer :patron_relationship_type_id
|
7
|
-
|
8
|
-
t.timestamps
|
9
|
-
end
|
10
|
-
add_index :patron_relationships, :parent_id
|
11
|
-
add_index :patron_relationships, :child_id
|
12
|
-
end
|
13
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
class AddPositionToPatronRelationship < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
add_column :manifestation_relationships, :position, :integer
|
4
|
-
add_column :patron_relationships, :position, :integer
|
5
|
-
end
|
6
|
-
|
7
|
-
def self.down
|
8
|
-
remove_column :patron_relationships, :position
|
9
|
-
remove_column :manifestation_relationships, :position
|
10
|
-
end
|
11
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
class AddBirthDateAndDeathDateToPatron < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
add_column :patrons, :birth_date, :string
|
4
|
-
add_column :patrons, :death_date, :string
|
5
|
-
end
|
6
|
-
|
7
|
-
def self.down
|
8
|
-
remove_column :patrons, :death_date
|
9
|
-
remove_column :patrons, :birth_date
|
10
|
-
end
|
11
|
-
end
|
Binary file
|
@@ -1,35 +0,0 @@
|
|
1
|
-
---
|
2
|
-
patron_type_00001:
|
3
|
-
id: 1
|
4
|
-
name: Person
|
5
|
-
display_name: Person
|
6
|
-
note:
|
7
|
-
position: 1
|
8
|
-
|
9
|
-
patron_type_00002:
|
10
|
-
id: 2
|
11
|
-
name: CorporateBody
|
12
|
-
display_name: CorporateBody
|
13
|
-
note:
|
14
|
-
position: 2
|
15
|
-
|
16
|
-
patron_type_00003:
|
17
|
-
id: 3
|
18
|
-
name: Conference
|
19
|
-
display_name: Conference
|
20
|
-
note:
|
21
|
-
position: 3
|
22
|
-
|
23
|
-
# == Schema Information
|
24
|
-
#
|
25
|
-
# Table name: patron_types
|
26
|
-
#
|
27
|
-
# id :integer not null, primary key
|
28
|
-
# name :string(255) not null
|
29
|
-
# display_name :text
|
30
|
-
# note :text
|
31
|
-
# position :integer
|
32
|
-
# created_at :datetime
|
33
|
-
# updated_at :datetime
|
34
|
-
#
|
35
|
-
|