enju_biblio 0.1.0.pre10 → 0.1.0.pre11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/accept.rb +4 -3
- data/app/models/carrier_type.rb +4 -4
- data/app/models/content_type.rb +4 -4
- data/app/models/country.rb +2 -2
- data/app/models/create.rb +5 -6
- data/app/models/create_type.rb +3 -3
- data/app/models/donate.rb +5 -5
- data/app/models/exemplify.rb +5 -15
- data/app/models/extent.rb +4 -4
- data/app/models/form_of_work.rb +4 -4
- data/app/models/frequency.rb +4 -4
- data/app/models/import_request.rb +3 -3
- data/app/models/item.rb +13 -11
- data/app/models/language.rb +2 -2
- data/app/models/license.rb +4 -4
- data/app/models/manifestation.rb +55 -30
- data/app/models/manifestation_relationship.rb +3 -3
- data/app/models/manifestation_relationship_type.rb +4 -4
- data/app/models/medium_of_performance.rb +4 -4
- data/app/models/own.rb +5 -5
- data/app/models/patron.rb +10 -10
- data/app/models/patron_import_file.rb +11 -5
- data/app/models/patron_import_result.rb +3 -3
- data/app/models/patron_relationship.rb +3 -3
- data/app/models/patron_relationship_type.rb +4 -4
- data/app/models/patron_type.rb +4 -4
- data/app/models/picture_file.rb +3 -3
- data/app/models/produce.rb +5 -6
- data/app/models/produce_type.rb +3 -3
- data/app/models/realize.rb +5 -6
- data/app/models/realize_type.rb +3 -3
- data/app/models/resource_import_file.rb +64 -14
- data/app/models/resource_import_result.rb +3 -3
- data/app/models/series_has_manifestation.rb +3 -3
- data/app/models/series_statement.rb +16 -8
- data/app/models/series_statement_relationship.rb +13 -0
- data/db/migrate/20120516020924_add_online_isbn_to_manifestation.rb +5 -0
- data/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
- data/db/migrate/20121119153944_add_manifestation_id_to_item.rb +5 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +1 -1
- data/spec/dummy/db/schema.rb +13 -11
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_b72 +0 -0
- data/spec/fixtures/carrier_types.yml +4 -4
- data/spec/fixtures/content_types.yml +4 -4
- data/spec/fixtures/countries.yml +2 -2
- data/spec/fixtures/create_types.yml +3 -3
- data/spec/fixtures/creates.yml +5 -6
- data/spec/fixtures/donates.yml +5 -5
- data/spec/fixtures/exemplifies.yml +5 -6
- data/spec/fixtures/extents.yml +4 -4
- data/spec/fixtures/form_of_works.yml +4 -4
- data/spec/fixtures/frequencies.yml +4 -4
- data/spec/fixtures/import_requests.yml +3 -3
- data/spec/fixtures/items.yml +12 -10
- data/spec/fixtures/languages.yml +3 -3
- data/spec/fixtures/licenses.yml +4 -4
- data/spec/fixtures/manifestation_relationship_types.yml +4 -4
- data/spec/fixtures/manifestation_relationships.yml +3 -3
- data/spec/fixtures/manifestations.yml +17 -21
- data/spec/fixtures/medium_of_performances.yml +4 -4
- data/spec/fixtures/owns.yml +5 -5
- data/spec/fixtures/patron_import_files.yml +3 -3
- data/spec/fixtures/patron_import_results.yml +3 -3
- data/spec/fixtures/patron_relationship_types.yml +4 -4
- data/spec/fixtures/patron_relationships.yml +3 -3
- data/spec/fixtures/patron_types.yml +4 -4
- data/spec/fixtures/patrons.yml +10 -14
- data/spec/fixtures/picture_files.yml +3 -3
- data/spec/fixtures/produce_types.yml +3 -3
- data/spec/fixtures/produces.yml +5 -6
- data/spec/fixtures/realize_types.yml +3 -3
- data/spec/fixtures/realizes.yml +5 -6
- data/spec/fixtures/resource_import_files.yml +3 -3
- data/spec/fixtures/resource_import_results.yml +3 -3
- data/spec/fixtures/series_has_manifestations.yml +3 -3
- data/spec/fixtures/series_statements.yml +4 -5
- data/spec/fixtures/user_group_has_checkout_types.yml +1 -1
- data/spec/models/accept_spec.rb +4 -3
- data/spec/models/carrier_type_spec.rb +4 -4
- data/spec/models/content_type_spec.rb +4 -4
- data/spec/models/country_spec.rb +2 -2
- data/spec/models/create_spec.rb +5 -6
- data/spec/models/create_type_spec.rb +3 -3
- data/spec/models/donate_spec.rb +5 -5
- data/spec/models/exemplify_spec.rb +5 -5
- data/spec/models/extent_spec.rb +4 -4
- data/spec/models/form_of_work_spec.rb +4 -4
- data/spec/models/frequency_spec.rb +4 -4
- data/spec/models/import_request_spec.rb +3 -3
- data/spec/models/item_spec.rb +20 -10
- data/spec/models/language_spec.rb +2 -2
- data/spec/models/license_spec.rb +4 -4
- data/spec/models/manifestation_relationship_spec.rb +3 -3
- data/spec/models/manifestation_relationship_type_spec.rb +4 -4
- data/spec/models/manifestation_spec.rb +17 -14
- data/spec/models/medium_of_performance_spec.rb +4 -4
- data/spec/models/own_spec.rb +5 -5
- data/spec/models/patron_import_file_spec.rb +3 -3
- data/spec/models/patron_import_result_spec.rb +3 -3
- data/spec/models/patron_relationship_spec.rb +3 -3
- data/spec/models/patron_relationship_type_spec.rb +4 -4
- data/spec/models/patron_spec.rb +10 -15
- data/spec/models/patron_type_spec.rb +4 -4
- data/spec/models/picture_file_spec.rb +3 -3
- data/spec/models/produce_spec.rb +5 -6
- data/spec/models/produce_type_spec.rb +3 -3
- data/spec/models/realize_spec.rb +5 -6
- data/spec/models/realize_type_spec.rb +3 -3
- data/spec/models/resource_import_file_spec.rb +3 -3
- data/spec/models/resource_import_result_spec.rb +3 -3
- data/spec/models/series_has_manifestation_spec.rb +3 -3
- data/spec/models/series_statement_relationship_spec.rb +13 -0
- data/spec/models/series_statement_spec.rb +4 -5
- metadata +10 -6
- data/spec/dummy/solr/data/test/index/segments_8fm +0 -0
data/spec/fixtures/countries.yml
CHANGED
@@ -2047,8 +2047,8 @@ country_00170:
|
|
2047
2047
|
#
|
2048
2048
|
# Table name: countries
|
2049
2049
|
#
|
2050
|
-
# id :integer
|
2051
|
-
# name :string(255)
|
2050
|
+
# id :integer not null, primary key
|
2051
|
+
# name :string(255) not null
|
2052
2052
|
# display_name :text
|
2053
2053
|
# alpha_2 :string(255)
|
2054
2054
|
# alpha_3 :string(255)
|
@@ -36,12 +36,12 @@ illustrator:
|
|
36
36
|
#
|
37
37
|
# Table name: create_types
|
38
38
|
#
|
39
|
-
# id :integer
|
39
|
+
# id :integer not null, primary key
|
40
40
|
# name :string(255)
|
41
41
|
# display_name :text
|
42
42
|
# note :text
|
43
43
|
# position :integer
|
44
|
-
# created_at :datetime
|
45
|
-
# updated_at :datetime
|
44
|
+
# created_at :datetime not null
|
45
|
+
# updated_at :datetime not null
|
46
46
|
#
|
47
47
|
|
data/spec/fixtures/creates.yml
CHANGED
@@ -49,17 +49,16 @@ create_00104:
|
|
49
49
|
position: 2
|
50
50
|
created_at: 2010-03-16 19:00:00.538796 +09:00
|
51
51
|
|
52
|
-
|
53
52
|
# == Schema Information
|
54
53
|
#
|
55
54
|
# Table name: creates
|
56
55
|
#
|
57
|
-
# id :integer
|
58
|
-
# patron_id :integer
|
59
|
-
# work_id :integer
|
56
|
+
# id :integer not null, primary key
|
57
|
+
# patron_id :integer not null
|
58
|
+
# work_id :integer not null
|
60
59
|
# position :integer
|
61
|
-
# created_at :datetime
|
62
|
-
# updated_at :datetime
|
60
|
+
# created_at :datetime not null
|
61
|
+
# updated_at :datetime not null
|
63
62
|
# create_type_id :integer
|
64
63
|
#
|
65
64
|
|
data/spec/fixtures/donates.yml
CHANGED
@@ -22,10 +22,10 @@ donate_00003:
|
|
22
22
|
#
|
23
23
|
# Table name: donates
|
24
24
|
#
|
25
|
-
# id :integer
|
26
|
-
# patron_id :integer
|
27
|
-
# item_id :integer
|
28
|
-
# created_at :datetime
|
29
|
-
# updated_at :datetime
|
25
|
+
# id :integer not null, primary key
|
26
|
+
# patron_id :integer not null
|
27
|
+
# item_id :integer not null
|
28
|
+
# created_at :datetime not null
|
29
|
+
# updated_at :datetime not null
|
30
30
|
#
|
31
31
|
|
@@ -146,16 +146,15 @@ exemplify_00023:
|
|
146
146
|
id: 23
|
147
147
|
created_at: 2008-01-11 02:44:37.135721 +09:00
|
148
148
|
|
149
|
-
|
150
149
|
# == Schema Information
|
151
150
|
#
|
152
151
|
# Table name: exemplifies
|
153
152
|
#
|
154
|
-
# id :integer
|
155
|
-
# manifestation_id :integer
|
156
|
-
# item_id :integer
|
153
|
+
# id :integer not null, primary key
|
154
|
+
# manifestation_id :integer not null
|
155
|
+
# item_id :integer not null
|
157
156
|
# position :integer
|
158
|
-
# created_at :datetime
|
159
|
-
# updated_at :datetime
|
157
|
+
# created_at :datetime not null
|
158
|
+
# updated_at :datetime not null
|
160
159
|
#
|
161
160
|
|
data/spec/fixtures/extents.yml
CHANGED
@@ -18,12 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: extents
|
20
20
|
#
|
21
|
-
# id :integer
|
22
|
-
# name :string(255)
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string(255) not null
|
23
23
|
# display_name :text
|
24
24
|
# note :text
|
25
25
|
# position :integer
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
@@ -28,12 +28,12 @@ form_of_work_00003:
|
|
28
28
|
#
|
29
29
|
# Table name: form_of_works
|
30
30
|
#
|
31
|
-
# id :integer
|
32
|
-
# name :string(255)
|
31
|
+
# id :integer not null, primary key
|
32
|
+
# name :string(255) not null
|
33
33
|
# display_name :text
|
34
34
|
# note :text
|
35
35
|
# position :integer
|
36
|
-
# created_at :datetime
|
37
|
-
# updated_at :datetime
|
36
|
+
# created_at :datetime not null
|
37
|
+
# updated_at :datetime not null
|
38
38
|
#
|
39
39
|
|
@@ -74,12 +74,12 @@ frequency_00006:
|
|
74
74
|
#
|
75
75
|
# Table name: frequencies
|
76
76
|
#
|
77
|
-
# id :integer
|
78
|
-
# name :string(255)
|
77
|
+
# id :integer not null, primary key
|
78
|
+
# name :string(255) not null
|
79
79
|
# display_name :text
|
80
80
|
# note :text
|
81
81
|
# position :integer
|
82
|
-
# created_at :datetime
|
83
|
-
# updated_at :datetime
|
82
|
+
# created_at :datetime not null
|
83
|
+
# updated_at :datetime not null
|
84
84
|
#
|
85
85
|
|
@@ -16,12 +16,12 @@ two:
|
|
16
16
|
#
|
17
17
|
# Table name: import_requests
|
18
18
|
#
|
19
|
-
# id :integer
|
19
|
+
# id :integer not null, primary key
|
20
20
|
# isbn :string(255)
|
21
21
|
# state :string(255)
|
22
22
|
# manifestation_id :integer
|
23
23
|
# user_id :integer
|
24
|
-
# created_at :datetime
|
25
|
-
# updated_at :datetime
|
24
|
+
# created_at :datetime not null
|
25
|
+
# updated_at :datetime not null
|
26
26
|
#
|
27
27
|
|
data/spec/fixtures/items.yml
CHANGED
@@ -229,29 +229,31 @@ item_00023:
|
|
229
229
|
id: 23
|
230
230
|
include_supplements: false
|
231
231
|
created_at: 2007-08-24 23:46:20.484813 +09:00
|
232
|
+
|
232
233
|
# == Schema Information
|
233
234
|
#
|
234
235
|
# Table name: items
|
235
236
|
#
|
236
|
-
# id :integer
|
237
|
+
# id :integer not null, primary key
|
237
238
|
# call_number :string(255)
|
238
239
|
# item_identifier :string(255)
|
239
|
-
# circulation_status_id :integer
|
240
|
-
# checkout_type_id :integer
|
241
|
-
# created_at :datetime
|
242
|
-
# updated_at :datetime
|
240
|
+
# circulation_status_id :integer default(5), not null
|
241
|
+
# checkout_type_id :integer default(1), not null
|
242
|
+
# created_at :datetime not null
|
243
|
+
# updated_at :datetime not null
|
243
244
|
# deleted_at :datetime
|
244
|
-
# shelf_id :integer
|
245
|
-
# include_supplements :boolean
|
245
|
+
# shelf_id :integer default(1), not null
|
246
|
+
# include_supplements :boolean default(FALSE), not null
|
246
247
|
# note :text
|
247
248
|
# url :string(255)
|
248
249
|
# price :integer
|
249
|
-
# lock_version :integer
|
250
|
-
# required_role_id :integer
|
250
|
+
# lock_version :integer default(0), not null
|
251
|
+
# required_role_id :integer default(1), not null
|
251
252
|
# state :string(255)
|
252
|
-
# required_score :integer
|
253
|
+
# required_score :integer default(0), not null
|
253
254
|
# acquired_at :datetime
|
254
255
|
# bookstore_id :integer
|
255
256
|
# budget_type_id :integer
|
257
|
+
# manifestation_id :integer
|
256
258
|
#
|
257
259
|
|
data/spec/fixtures/languages.yml
CHANGED
@@ -1882,14 +1882,14 @@ language_00140:
|
|
1882
1882
|
iso_639_3: srd
|
1883
1883
|
id: 140
|
1884
1884
|
note:
|
1885
|
-
native_name:
|
1885
|
+
native_name:
|
1886
1886
|
|
1887
1887
|
# == Schema Information
|
1888
1888
|
#
|
1889
1889
|
# Table name: languages
|
1890
1890
|
#
|
1891
|
-
# id :integer
|
1892
|
-
# name :string(255)
|
1891
|
+
# id :integer not null, primary key
|
1892
|
+
# name :string(255) not null
|
1893
1893
|
# native_name :string(255)
|
1894
1894
|
# display_name :text
|
1895
1895
|
# iso_639_1 :string(255)
|
data/spec/fixtures/licenses.yml
CHANGED
@@ -18,12 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: licenses
|
20
20
|
#
|
21
|
-
# id :integer
|
22
|
-
# name :string(255)
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string(255) not null
|
23
23
|
# display_name :string(255)
|
24
24
|
# note :text
|
25
25
|
# position :integer
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
@@ -18,12 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: manifestation_relationship_types
|
20
20
|
#
|
21
|
-
# id :integer
|
22
|
-
# name :string(255)
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string(255) not null
|
23
23
|
# display_name :text
|
24
24
|
# note :text
|
25
25
|
# position :integer
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
@@ -19,12 +19,12 @@ serial:
|
|
19
19
|
#
|
20
20
|
# Table name: manifestation_relationships
|
21
21
|
#
|
22
|
-
# id :integer
|
22
|
+
# id :integer not null, primary key
|
23
23
|
# parent_id :integer
|
24
24
|
# child_id :integer
|
25
25
|
# manifestation_relationship_type_id :integer
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
# position :integer
|
29
29
|
#
|
30
30
|
|
@@ -1942,32 +1942,25 @@ manifestation_00216:
|
|
1942
1942
|
required_role_id: 1
|
1943
1943
|
repository_content: false
|
1944
1944
|
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
1945
|
# == Schema Information
|
1953
1946
|
#
|
1954
1947
|
# Table name: manifestations
|
1955
1948
|
#
|
1956
|
-
# id :integer
|
1957
|
-
# original_title :text
|
1949
|
+
# id :integer not null, primary key
|
1950
|
+
# original_title :text not null
|
1958
1951
|
# title_alternative :text
|
1959
1952
|
# title_transcription :text
|
1960
1953
|
# classification_number :string(255)
|
1961
1954
|
# manifestation_identifier :string(255)
|
1962
1955
|
# date_of_publication :datetime
|
1963
1956
|
# date_copyrighted :datetime
|
1964
|
-
# created_at :datetime
|
1965
|
-
# updated_at :datetime
|
1957
|
+
# created_at :datetime not null
|
1958
|
+
# updated_at :datetime not null
|
1966
1959
|
# deleted_at :datetime
|
1967
1960
|
# access_address :string(255)
|
1968
|
-
# language_id :integer
|
1969
|
-
# carrier_type_id :integer
|
1970
|
-
# extent_id :integer
|
1961
|
+
# language_id :integer default(1), not null
|
1962
|
+
# carrier_type_id :integer default(1), not null
|
1963
|
+
# extent_id :integer default(1), not null
|
1971
1964
|
# start_page :integer
|
1972
1965
|
# end_page :integer
|
1973
1966
|
# height :integer
|
@@ -1987,13 +1980,13 @@ manifestation_00216:
|
|
1987
1980
|
# serial_number_string :string(255)
|
1988
1981
|
# edition :integer
|
1989
1982
|
# note :text
|
1990
|
-
# repository_content :boolean
|
1991
|
-
# lock_version :integer
|
1992
|
-
# required_role_id :integer
|
1983
|
+
# repository_content :boolean default(FALSE), not null
|
1984
|
+
# lock_version :integer default(0), not null
|
1985
|
+
# required_role_id :integer default(1), not null
|
1993
1986
|
# state :string(255)
|
1994
|
-
# required_score :integer
|
1995
|
-
# frequency_id :integer
|
1996
|
-
# subscription_master :boolean
|
1987
|
+
# required_score :integer default(0), not null
|
1988
|
+
# frequency_id :integer default(1), not null
|
1989
|
+
# subscription_master :boolean default(FALSE), not null
|
1997
1990
|
# attachment_file_name :string(255)
|
1998
1991
|
# attachment_content_type :string(255)
|
1999
1992
|
# attachment_file_size :integer
|
@@ -2012,9 +2005,12 @@ manifestation_00216:
|
|
2012
2005
|
# issue_number :integer
|
2013
2006
|
# serial_number :integer
|
2014
2007
|
# ndc :string(255)
|
2015
|
-
# content_type_id :integer
|
2008
|
+
# content_type_id :integer default(1)
|
2016
2009
|
# year_of_publication :integer
|
2017
2010
|
# attachment_meta :text
|
2018
2011
|
# month_of_publication :integer
|
2012
|
+
# online_isbn :string(255)
|
2013
|
+
# fulltext_content :boolean
|
2014
|
+
# doi :string(255)
|
2019
2015
|
#
|
2020
2016
|
|
@@ -18,12 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: medium_of_performances
|
20
20
|
#
|
21
|
-
# id :integer
|
22
|
-
# name :string(255)
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string(255) not null
|
23
23
|
# display_name :text
|
24
24
|
# note :text
|
25
25
|
# position :integer
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
data/spec/fixtures/owns.yml
CHANGED
@@ -16,11 +16,11 @@ own_00002:
|
|
16
16
|
#
|
17
17
|
# Table name: owns
|
18
18
|
#
|
19
|
-
# id :integer
|
20
|
-
# patron_id :integer
|
21
|
-
# item_id :integer
|
19
|
+
# id :integer not null, primary key
|
20
|
+
# patron_id :integer not null
|
21
|
+
# item_id :integer not null
|
22
22
|
# position :integer
|
23
|
-
# created_at :datetime
|
24
|
-
# updated_at :datetime
|
23
|
+
# created_at :datetime not null
|
24
|
+
# updated_at :datetime not null
|
25
25
|
#
|
26
26
|
|
@@ -26,7 +26,7 @@ patron_import_file_00003:
|
|
26
26
|
#
|
27
27
|
# Table name: patron_import_files
|
28
28
|
#
|
29
|
-
# id :integer
|
29
|
+
# id :integer not null, primary key
|
30
30
|
# parent_id :integer
|
31
31
|
# content_type :string(255)
|
32
32
|
# size :integer
|
@@ -38,8 +38,8 @@ patron_import_file_00003:
|
|
38
38
|
# patron_import_content_type :string(255)
|
39
39
|
# patron_import_file_size :integer
|
40
40
|
# patron_import_updated_at :datetime
|
41
|
-
# created_at :datetime
|
42
|
-
# updated_at :datetime
|
41
|
+
# created_at :datetime not null
|
42
|
+
# updated_at :datetime not null
|
43
43
|
# patron_import_fingerprint :string(255)
|
44
44
|
# error_message :text
|
45
45
|
# edit_mode :string(255)
|
@@ -18,12 +18,12 @@ two:
|
|
18
18
|
#
|
19
19
|
# Table name: patron_import_results
|
20
20
|
#
|
21
|
-
# id :integer
|
21
|
+
# id :integer not null, primary key
|
22
22
|
# patron_import_file_id :integer
|
23
23
|
# patron_id :integer
|
24
24
|
# user_id :integer
|
25
25
|
# body :text
|
26
|
-
# created_at :datetime
|
27
|
-
# updated_at :datetime
|
26
|
+
# created_at :datetime not null
|
27
|
+
# updated_at :datetime not null
|
28
28
|
#
|
29
29
|
|
@@ -23,12 +23,12 @@ patron_relationship_type_00003:
|
|
23
23
|
#
|
24
24
|
# Table name: patron_relationship_types
|
25
25
|
#
|
26
|
-
# id :integer
|
27
|
-
# name :string(255)
|
26
|
+
# id :integer not null, primary key
|
27
|
+
# name :string(255) not null
|
28
28
|
# display_name :text
|
29
29
|
# note :text
|
30
30
|
# position :integer
|
31
|
-
# created_at :datetime
|
32
|
-
# updated_at :datetime
|
31
|
+
# created_at :datetime not null
|
32
|
+
# updated_at :datetime not null
|
33
33
|
#
|
34
34
|
|
@@ -14,12 +14,12 @@ two:
|
|
14
14
|
#
|
15
15
|
# Table name: patron_relationships
|
16
16
|
#
|
17
|
-
# id :integer
|
17
|
+
# id :integer not null, primary key
|
18
18
|
# parent_id :integer
|
19
19
|
# child_id :integer
|
20
20
|
# patron_relationship_type_id :integer
|
21
|
-
# created_at :datetime
|
22
|
-
# updated_at :datetime
|
21
|
+
# created_at :datetime not null
|
22
|
+
# updated_at :datetime not null
|
23
23
|
# position :integer
|
24
24
|
#
|
25
25
|
|
@@ -24,12 +24,12 @@ patron_type_00003:
|
|
24
24
|
#
|
25
25
|
# Table name: patron_types
|
26
26
|
#
|
27
|
-
# id :integer
|
28
|
-
# name :string(255)
|
27
|
+
# id :integer not null, primary key
|
28
|
+
# name :string(255) not null
|
29
29
|
# display_name :text
|
30
30
|
# note :text
|
31
31
|
# position :integer
|
32
|
-
# created_at :datetime
|
33
|
-
# updated_at :datetime
|
32
|
+
# created_at :datetime not null
|
33
|
+
# updated_at :datetime not null
|
34
34
|
#
|
35
35
|
|
data/spec/fixtures/patrons.yml
CHANGED
@@ -278,16 +278,11 @@ patron_00202:
|
|
278
278
|
required_role_id: 1
|
279
279
|
created_at: 2010-03-15 17:00:00.579396 +09:00
|
280
280
|
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
281
|
# == Schema Information
|
287
282
|
#
|
288
283
|
# Table name: patrons
|
289
284
|
#
|
290
|
-
# id :integer
|
285
|
+
# id :integer not null, primary key
|
291
286
|
# user_id :integer
|
292
287
|
# last_name :string(255)
|
293
288
|
# middle_name :string(255)
|
@@ -300,8 +295,8 @@ patron_00202:
|
|
300
295
|
# full_name :string(255)
|
301
296
|
# full_name_transcription :text
|
302
297
|
# full_name_alternative :text
|
303
|
-
# created_at :datetime
|
304
|
-
# updated_at :datetime
|
298
|
+
# created_at :datetime not null
|
299
|
+
# updated_at :datetime not null
|
305
300
|
# deleted_at :datetime
|
306
301
|
# zip_code_1 :string(255)
|
307
302
|
# zip_code_2 :string(255)
|
@@ -321,18 +316,19 @@ patron_00202:
|
|
321
316
|
# region :text
|
322
317
|
# date_of_birth :datetime
|
323
318
|
# date_of_death :datetime
|
324
|
-
# language_id :integer
|
325
|
-
# country_id :integer
|
326
|
-
# patron_type_id :integer
|
327
|
-
# lock_version :integer
|
319
|
+
# language_id :integer default(1), not null
|
320
|
+
# country_id :integer default(1), not null
|
321
|
+
# patron_type_id :integer default(1), not null
|
322
|
+
# lock_version :integer default(0), not null
|
328
323
|
# note :text
|
329
|
-
# required_role_id :integer
|
330
|
-
# required_score :integer
|
324
|
+
# required_role_id :integer default(1), not null
|
325
|
+
# required_score :integer default(0), not null
|
331
326
|
# state :string(255)
|
332
327
|
# email :text
|
333
328
|
# url :text
|
334
329
|
# full_name_alternative_transcription :text
|
335
330
|
# birth_date :string(255)
|
336
331
|
# death_date :string(255)
|
332
|
+
# patron_identifier :string(255)
|
337
333
|
#
|
338
334
|
|
@@ -44,15 +44,15 @@ picture_file_00004:
|
|
44
44
|
#
|
45
45
|
# Table name: picture_files
|
46
46
|
#
|
47
|
-
# id :integer
|
47
|
+
# id :integer not null, primary key
|
48
48
|
# picture_attachable_id :integer
|
49
49
|
# picture_attachable_type :string(255)
|
50
50
|
# content_type :string(255)
|
51
51
|
# title :text
|
52
52
|
# thumbnail :string(255)
|
53
53
|
# position :integer
|
54
|
-
# created_at :datetime
|
55
|
-
# updated_at :datetime
|
54
|
+
# created_at :datetime not null
|
55
|
+
# updated_at :datetime not null
|
56
56
|
# picture_file_name :string(255)
|
57
57
|
# picture_content_type :string(255)
|
58
58
|
# picture_file_size :integer
|
@@ -20,12 +20,12 @@ seller:
|
|
20
20
|
#
|
21
21
|
# Table name: produce_types
|
22
22
|
#
|
23
|
-
# id :integer
|
23
|
+
# id :integer not null, primary key
|
24
24
|
# name :string(255)
|
25
25
|
# display_name :text
|
26
26
|
# note :text
|
27
27
|
# position :integer
|
28
|
-
# created_at :datetime
|
29
|
-
# updated_at :datetime
|
28
|
+
# created_at :datetime not null
|
29
|
+
# updated_at :datetime not null
|
30
30
|
#
|
31
31
|
|
data/spec/fixtures/produces.yml
CHANGED
@@ -133,17 +133,16 @@ produce_00202:
|
|
133
133
|
position: 1
|
134
134
|
created_at: 2010-03-15 20:00:00.135721 +09:00
|
135
135
|
|
136
|
-
|
137
136
|
# == Schema Information
|
138
137
|
#
|
139
138
|
# Table name: produces
|
140
139
|
#
|
141
|
-
# id :integer
|
142
|
-
# patron_id :integer
|
143
|
-
# manifestation_id :integer
|
140
|
+
# id :integer not null, primary key
|
141
|
+
# patron_id :integer not null
|
142
|
+
# manifestation_id :integer not null
|
144
143
|
# position :integer
|
145
|
-
# created_at :datetime
|
146
|
-
# updated_at :datetime
|
144
|
+
# created_at :datetime not null
|
145
|
+
# updated_at :datetime not null
|
147
146
|
# produce_type_id :integer
|
148
147
|
#
|
149
148
|
|
@@ -28,12 +28,12 @@ illustrator:
|
|
28
28
|
#
|
29
29
|
# Table name: realize_types
|
30
30
|
#
|
31
|
-
# id :integer
|
31
|
+
# id :integer not null, primary key
|
32
32
|
# name :string(255)
|
33
33
|
# display_name :text
|
34
34
|
# note :text
|
35
35
|
# position :integer
|
36
|
-
# created_at :datetime
|
37
|
-
# updated_at :datetime
|
36
|
+
# created_at :datetime not null
|
37
|
+
# updated_at :datetime not null
|
38
38
|
#
|
39
39
|
|
data/spec/fixtures/realizes.yml
CHANGED
@@ -70,17 +70,16 @@ realize_00010:
|
|
70
70
|
position: 2
|
71
71
|
created_at: 2008-01-11 02:44:37.135721 +09:00
|
72
72
|
|
73
|
-
|
74
73
|
# == Schema Information
|
75
74
|
#
|
76
75
|
# Table name: realizes
|
77
76
|
#
|
78
|
-
# id :integer
|
79
|
-
# patron_id :integer
|
80
|
-
# expression_id :integer
|
77
|
+
# id :integer not null, primary key
|
78
|
+
# patron_id :integer not null
|
79
|
+
# expression_id :integer not null
|
81
80
|
# position :integer
|
82
|
-
# created_at :datetime
|
83
|
-
# updated_at :datetime
|
81
|
+
# created_at :datetime not null
|
82
|
+
# updated_at :datetime not null
|
84
83
|
# realize_type_id :integer
|
85
84
|
#
|
86
85
|
|
@@ -26,7 +26,7 @@ resource_import_file_00003:
|
|
26
26
|
#
|
27
27
|
# Table name: resource_import_files
|
28
28
|
#
|
29
|
-
# id :integer
|
29
|
+
# id :integer not null, primary key
|
30
30
|
# parent_id :integer
|
31
31
|
# content_type :string(255)
|
32
32
|
# size :integer
|
@@ -38,8 +38,8 @@ resource_import_file_00003:
|
|
38
38
|
# resource_import_content_type :string(255)
|
39
39
|
# resource_import_file_size :integer
|
40
40
|
# resource_import_updated_at :datetime
|
41
|
-
# created_at :datetime
|
42
|
-
# updated_at :datetime
|
41
|
+
# created_at :datetime not null
|
42
|
+
# updated_at :datetime not null
|
43
43
|
# edit_mode :string(255)
|
44
44
|
# resource_import_fingerprint :string(255)
|
45
45
|
# error_message :text
|