enju_subject 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/classification_types/index.html.erb +1 -1
- data/app/views/classifications/_index.html.erb +1 -1
- data/app/views/classifications/_index_subject.html.erb +1 -1
- data/app/views/subject_has_classifications/index.html.erb +1 -1
- data/app/views/subject_heading_type_has_subjects/index.html.erb +1 -1
- data/app/views/subject_heading_types/index.html.erb +1 -1
- data/app/views/subject_types/index.html.erb +1 -1
- data/app/views/subjects/_index.html.erb +1 -1
- data/app/views/subjects/_index_classification.html.erb +1 -1
- data/app/views/subjects/_index_work.html.erb +1 -1
- data/app/views/subjects/show.html.erb +1 -1
- data/app/views/work_has_subjects/index.html.erb +1 -1
- data/lib/enju_subject/engine.rb +1 -7
- data/lib/enju_subject/expire_editable_fragment.rb +4 -2
- data/lib/enju_subject/version.rb +1 -1
- data/lib/enju_subject.rb +0 -2
- data/spec/dummy/app/models/role.rb +40 -1
- data/spec/dummy/app/models/user.rb +29 -0
- data/spec/dummy/config/application.rb +2 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_patrons.rb +53 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +56 -0
- data/spec/dummy/db/migrate/006_create_items.rb +28 -0
- data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
- data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
- data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
- data/spec/dummy/db/migrate/073_create_carrier_types.rb +1 -5
- data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
- data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
- data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +1 -5
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
- data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
- data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +15 -0
- data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
- data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
- data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +11 -0
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
- data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +13 -0
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +13 -0
- data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
- data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +13 -0
- data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +31 -10
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +5 -0
- data/spec/dummy/db/schema.rb +563 -50
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/requests/subjects_spec.rb +0 -1
- metadata +185 -62
- data/app/views/classifications/classification_types/_form.html.erb +0 -19
- data/app/views/classifications/classification_types/edit.html.erb +0 -13
- data/app/views/classifications/classification_types/index.html.erb +0 -45
- data/app/views/classifications/classification_types/new.html.erb +0 -12
- data/app/views/classifications/classification_types/show.html.erb +0 -30
- data/spec/cassette_library/enju_subject/classification_index.yml +0 -30
- data/spec/cassette_library/enju_subject/create.yml +0 -49
- data/spec/cassette_library/enju_subject/create_subject.yml +0 -82
- data/spec/cassette_library/enju_subject/delete.yml +0 -72
- data/spec/cassette_library/enju_subject/edit.yml +0 -49
- data/spec/cassette_library/enju_subject/index.yml +0 -82
- data/spec/cassette_library/enju_subject/show.yml +0 -72
- data/spec/cassette_library/enju_subject/update.yml +0 -72
- data/spec/dummy/app/models/carrier_type.rb +0 -4
- data/spec/dummy/app/models/manifestation.rb +0 -13
- data/spec/dummy/db/migrate/20111201115353_create_manifestations.rb +0 -17
- data/spec/dummy/db/migrate/20111201115421_create_patrons.rb +0 -14
- data/spec/dummy/db/migrate/20111201121636_create_languages.rb +0 -16
- data/spec/dummy/lib/localized_name.rb +0 -13
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D47/9C0/sprockets%2Fed08c2088e78d59a4fc4ea21b625784b +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D63/4E0/sprockets%2F0d39549b9e061d4b82c2ba3ac7ec5c31 +0 -0
- data/spec/dummy/tmp/cache/assets/DAD/4B0/sprockets%2Fb5993ad241d17bf516c64e9fcd9f68bb +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/DFD/1C0/sprockets%2Fbba00f45f706fc39c4fbfc79305c9afb +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,15 +11,15 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20120602141129) do
|
15
15
|
|
16
16
|
create_table "carrier_types", :force => true do |t|
|
17
17
|
t.string "name", :null => false
|
18
18
|
t.text "display_name"
|
19
19
|
t.text "note"
|
20
20
|
t.integer "position"
|
21
|
-
t.datetime "created_at"
|
22
|
-
t.datetime "updated_at"
|
21
|
+
t.datetime "created_at", :null => false
|
22
|
+
t.datetime "updated_at", :null => false
|
23
23
|
end
|
24
24
|
|
25
25
|
create_table "classification_types", :force => true do |t|
|
@@ -27,8 +27,8 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
27
27
|
t.text "display_name"
|
28
28
|
t.text "note"
|
29
29
|
t.integer "position"
|
30
|
-
t.datetime "created_at"
|
31
|
-
t.datetime "updated_at"
|
30
|
+
t.datetime "created_at", :null => false
|
31
|
+
t.datetime "updated_at", :null => false
|
32
32
|
end
|
33
33
|
|
34
34
|
create_table "classifications", :force => true do |t|
|
@@ -36,8 +36,8 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
36
36
|
t.string "category", :null => false
|
37
37
|
t.text "note"
|
38
38
|
t.integer "classification_type_id", :null => false
|
39
|
-
t.datetime "created_at"
|
40
|
-
t.datetime "updated_at"
|
39
|
+
t.datetime "created_at", :null => false
|
40
|
+
t.datetime "updated_at", :null => false
|
41
41
|
t.integer "lft"
|
42
42
|
t.integer "rgt"
|
43
43
|
end
|
@@ -46,68 +46,561 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
46
46
|
add_index "classifications", ["classification_type_id"], :name => "index_classifications_on_classification_type_id"
|
47
47
|
add_index "classifications", ["parent_id"], :name => "index_classifications_on_parent_id"
|
48
48
|
|
49
|
-
create_table "
|
49
|
+
create_table "content_types", :force => true do |t|
|
50
|
+
t.string "name", :null => false
|
51
|
+
t.text "display_name"
|
52
|
+
t.text "note"
|
53
|
+
t.integer "position"
|
54
|
+
t.datetime "created_at", :null => false
|
55
|
+
t.datetime "updated_at", :null => false
|
56
|
+
end
|
57
|
+
|
58
|
+
create_table "countries", :force => true do |t|
|
59
|
+
t.string "name", :null => false
|
60
|
+
t.text "display_name"
|
61
|
+
t.string "alpha_2"
|
62
|
+
t.string "alpha_3"
|
63
|
+
t.string "numeric_3"
|
64
|
+
t.text "note"
|
65
|
+
t.integer "position"
|
66
|
+
end
|
67
|
+
|
68
|
+
add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
|
69
|
+
add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
|
70
|
+
add_index "countries", ["name"], :name => "index_countries_on_name"
|
71
|
+
add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
|
72
|
+
|
73
|
+
create_table "create_types", :force => true do |t|
|
50
74
|
t.string "name"
|
51
|
-
t.string "native_name"
|
52
75
|
t.text "display_name"
|
53
|
-
t.string "iso_639_1"
|
54
|
-
t.string "iso_639_2"
|
55
|
-
t.string "iso_639_3"
|
56
76
|
t.text "note"
|
57
77
|
t.integer "position"
|
58
|
-
t.datetime "created_at"
|
59
|
-
t.datetime "updated_at"
|
78
|
+
t.datetime "created_at", :null => false
|
79
|
+
t.datetime "updated_at", :null => false
|
80
|
+
end
|
81
|
+
|
82
|
+
create_table "creates", :force => true do |t|
|
83
|
+
t.integer "patron_id", :null => false
|
84
|
+
t.integer "work_id", :null => false
|
85
|
+
t.integer "position"
|
86
|
+
t.datetime "created_at", :null => false
|
87
|
+
t.datetime "updated_at", :null => false
|
88
|
+
t.integer "create_type_id"
|
89
|
+
end
|
90
|
+
|
91
|
+
add_index "creates", ["patron_id"], :name => "index_creates_on_patron_id"
|
92
|
+
add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
|
93
|
+
|
94
|
+
create_table "donates", :force => true do |t|
|
95
|
+
t.integer "patron_id", :null => false
|
96
|
+
t.integer "item_id", :null => false
|
97
|
+
t.datetime "created_at", :null => false
|
98
|
+
t.datetime "updated_at", :null => false
|
99
|
+
end
|
100
|
+
|
101
|
+
add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
|
102
|
+
add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
|
103
|
+
|
104
|
+
create_table "exemplifies", :force => true do |t|
|
105
|
+
t.integer "manifestation_id", :null => false
|
106
|
+
t.integer "item_id", :null => false
|
107
|
+
t.integer "position"
|
108
|
+
t.datetime "created_at", :null => false
|
109
|
+
t.datetime "updated_at", :null => false
|
60
110
|
end
|
61
111
|
|
112
|
+
add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
|
113
|
+
add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
|
114
|
+
|
115
|
+
create_table "extents", :force => true do |t|
|
116
|
+
t.string "name", :null => false
|
117
|
+
t.text "display_name"
|
118
|
+
t.text "note"
|
119
|
+
t.integer "position"
|
120
|
+
t.datetime "created_at", :null => false
|
121
|
+
t.datetime "updated_at", :null => false
|
122
|
+
end
|
123
|
+
|
124
|
+
create_table "form_of_works", :force => true do |t|
|
125
|
+
t.string "name", :null => false
|
126
|
+
t.text "display_name"
|
127
|
+
t.text "note"
|
128
|
+
t.integer "position"
|
129
|
+
t.datetime "created_at", :null => false
|
130
|
+
t.datetime "updated_at", :null => false
|
131
|
+
end
|
132
|
+
|
133
|
+
create_table "frequencies", :force => true do |t|
|
134
|
+
t.string "name", :null => false
|
135
|
+
t.text "display_name"
|
136
|
+
t.text "note"
|
137
|
+
t.integer "position"
|
138
|
+
t.datetime "created_at", :null => false
|
139
|
+
t.datetime "updated_at", :null => false
|
140
|
+
end
|
141
|
+
|
142
|
+
create_table "import_requests", :force => true do |t|
|
143
|
+
t.string "isbn"
|
144
|
+
t.string "state"
|
145
|
+
t.integer "manifestation_id"
|
146
|
+
t.integer "user_id"
|
147
|
+
t.datetime "created_at", :null => false
|
148
|
+
t.datetime "updated_at", :null => false
|
149
|
+
end
|
150
|
+
|
151
|
+
add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
|
152
|
+
add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
|
153
|
+
add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
|
154
|
+
|
155
|
+
create_table "items", :force => true do |t|
|
156
|
+
t.string "call_number"
|
157
|
+
t.string "item_identifier"
|
158
|
+
t.integer "circulation_status_id", :default => 5, :null => false
|
159
|
+
t.integer "checkout_type_id", :default => 1, :null => false
|
160
|
+
t.datetime "created_at", :null => false
|
161
|
+
t.datetime "updated_at", :null => false
|
162
|
+
t.datetime "deleted_at"
|
163
|
+
t.integer "shelf_id", :default => 1, :null => false
|
164
|
+
t.boolean "include_supplements", :default => false, :null => false
|
165
|
+
t.text "note"
|
166
|
+
t.string "url"
|
167
|
+
t.integer "price"
|
168
|
+
t.integer "lock_version", :default => 0, :null => false
|
169
|
+
t.integer "required_role_id", :default => 1, :null => false
|
170
|
+
t.string "state"
|
171
|
+
t.integer "required_score", :default => 0, :null => false
|
172
|
+
t.datetime "acquired_at"
|
173
|
+
t.integer "bookstore_id"
|
174
|
+
t.integer "budget_type_id"
|
175
|
+
end
|
176
|
+
|
177
|
+
add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
|
178
|
+
add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
|
179
|
+
add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
|
180
|
+
add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
|
181
|
+
add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
|
182
|
+
add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
|
183
|
+
|
184
|
+
create_table "languages", :force => true do |t|
|
185
|
+
t.string "name", :null => false
|
186
|
+
t.string "native_name"
|
187
|
+
t.text "display_name"
|
188
|
+
t.string "iso_639_1"
|
189
|
+
t.string "iso_639_2"
|
190
|
+
t.string "iso_639_3"
|
191
|
+
t.text "note"
|
192
|
+
t.integer "position"
|
193
|
+
end
|
194
|
+
|
195
|
+
add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
|
196
|
+
add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
|
197
|
+
add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
|
198
|
+
add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
|
199
|
+
|
200
|
+
create_table "licenses", :force => true do |t|
|
201
|
+
t.string "name", :null => false
|
202
|
+
t.string "display_name"
|
203
|
+
t.text "note"
|
204
|
+
t.integer "position"
|
205
|
+
t.datetime "created_at", :null => false
|
206
|
+
t.datetime "updated_at", :null => false
|
207
|
+
end
|
208
|
+
|
209
|
+
create_table "manifestation_relationship_types", :force => true do |t|
|
210
|
+
t.string "name", :null => false
|
211
|
+
t.text "display_name"
|
212
|
+
t.text "note"
|
213
|
+
t.integer "position"
|
214
|
+
t.datetime "created_at", :null => false
|
215
|
+
t.datetime "updated_at", :null => false
|
216
|
+
end
|
217
|
+
|
218
|
+
create_table "manifestation_relationships", :force => true do |t|
|
219
|
+
t.integer "parent_id"
|
220
|
+
t.integer "child_id"
|
221
|
+
t.integer "manifestation_relationship_type_id"
|
222
|
+
t.datetime "created_at", :null => false
|
223
|
+
t.datetime "updated_at", :null => false
|
224
|
+
t.integer "position"
|
225
|
+
end
|
226
|
+
|
227
|
+
add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
|
228
|
+
add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
|
229
|
+
|
62
230
|
create_table "manifestations", :force => true do |t|
|
63
|
-
t.text "original_title"
|
64
|
-
t.text "title_transcription"
|
231
|
+
t.text "original_title", :null => false
|
65
232
|
t.text "title_alternative"
|
66
|
-
t.
|
233
|
+
t.text "title_transcription"
|
234
|
+
t.string "classification_number"
|
235
|
+
t.string "manifestation_identifier"
|
236
|
+
t.datetime "date_of_publication"
|
237
|
+
t.datetime "date_copyrighted"
|
238
|
+
t.datetime "created_at", :null => false
|
239
|
+
t.datetime "updated_at", :null => false
|
240
|
+
t.datetime "deleted_at"
|
241
|
+
t.string "access_address"
|
242
|
+
t.integer "language_id", :default => 1, :null => false
|
243
|
+
t.integer "carrier_type_id", :default => 1, :null => false
|
244
|
+
t.integer "extent_id", :default => 1, :null => false
|
245
|
+
t.integer "start_page"
|
246
|
+
t.integer "end_page"
|
247
|
+
t.integer "height"
|
248
|
+
t.integer "width"
|
249
|
+
t.integer "depth"
|
67
250
|
t.string "isbn"
|
251
|
+
t.string "isbn10"
|
252
|
+
t.string "wrong_isbn"
|
68
253
|
t.string "nbn"
|
254
|
+
t.string "lccn"
|
255
|
+
t.string "oclc_number"
|
256
|
+
t.string "issn"
|
257
|
+
t.integer "price"
|
258
|
+
t.text "fulltext"
|
259
|
+
t.string "volume_number_string"
|
260
|
+
t.string "issue_number_string"
|
261
|
+
t.string "serial_number_string"
|
262
|
+
t.integer "edition"
|
263
|
+
t.text "note"
|
264
|
+
t.boolean "repository_content", :default => false, :null => false
|
265
|
+
t.integer "lock_version", :default => 0, :null => false
|
266
|
+
t.integer "required_role_id", :default => 1, :null => false
|
267
|
+
t.string "state"
|
268
|
+
t.integer "required_score", :default => 0, :null => false
|
269
|
+
t.integer "frequency_id", :default => 1, :null => false
|
270
|
+
t.boolean "subscription_master", :default => false, :null => false
|
271
|
+
t.string "attachment_file_name"
|
272
|
+
t.string "attachment_content_type"
|
273
|
+
t.integer "attachment_file_size"
|
274
|
+
t.datetime "attachment_updated_at"
|
275
|
+
t.text "title_alternative_transcription"
|
276
|
+
t.text "description"
|
277
|
+
t.text "abstract"
|
278
|
+
t.datetime "available_at"
|
279
|
+
t.datetime "valid_until"
|
280
|
+
t.datetime "date_submitted"
|
281
|
+
t.datetime "date_accepted"
|
282
|
+
t.datetime "date_caputured"
|
283
|
+
t.string "pub_date"
|
284
|
+
t.string "edition_string"
|
285
|
+
t.integer "volume_number"
|
286
|
+
t.integer "issue_number"
|
287
|
+
t.integer "serial_number"
|
69
288
|
t.string "ndc"
|
70
|
-
t.integer "
|
71
|
-
t.integer "
|
72
|
-
t.
|
73
|
-
t.
|
289
|
+
t.integer "content_type_id", :default => 1
|
290
|
+
t.integer "year_of_publication"
|
291
|
+
t.text "attachment_meta"
|
292
|
+
t.integer "month_of_publication"
|
293
|
+
end
|
294
|
+
|
295
|
+
add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
|
296
|
+
add_index "manifestations", ["carrier_type_id"], :name => "index_manifestations_on_carrier_type_id"
|
297
|
+
add_index "manifestations", ["frequency_id"], :name => "index_manifestations_on_frequency_id"
|
298
|
+
add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
|
299
|
+
add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
|
300
|
+
add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
|
301
|
+
add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
|
302
|
+
add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
|
303
|
+
add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
|
304
|
+
add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
|
305
|
+
add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
|
306
|
+
|
307
|
+
create_table "medium_of_performances", :force => true do |t|
|
308
|
+
t.string "name", :null => false
|
309
|
+
t.text "display_name"
|
310
|
+
t.text "note"
|
311
|
+
t.integer "position"
|
312
|
+
t.datetime "created_at", :null => false
|
313
|
+
t.datetime "updated_at", :null => false
|
314
|
+
end
|
315
|
+
|
316
|
+
create_table "owns", :force => true do |t|
|
317
|
+
t.integer "patron_id", :null => false
|
318
|
+
t.integer "item_id", :null => false
|
319
|
+
t.integer "position"
|
320
|
+
t.datetime "created_at", :null => false
|
321
|
+
t.datetime "updated_at", :null => false
|
322
|
+
end
|
323
|
+
|
324
|
+
add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
|
325
|
+
add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
|
326
|
+
|
327
|
+
create_table "patron_import_files", :force => true do |t|
|
328
|
+
t.integer "parent_id"
|
329
|
+
t.string "content_type"
|
330
|
+
t.integer "size"
|
331
|
+
t.integer "user_id"
|
332
|
+
t.text "note"
|
333
|
+
t.datetime "executed_at"
|
334
|
+
t.string "state"
|
335
|
+
t.string "patron_import_file_name"
|
336
|
+
t.string "patron_import_content_type"
|
337
|
+
t.integer "patron_import_file_size"
|
338
|
+
t.datetime "patron_import_updated_at"
|
339
|
+
t.datetime "created_at", :null => false
|
340
|
+
t.datetime "updated_at", :null => false
|
341
|
+
t.string "patron_import_fingerprint"
|
342
|
+
t.text "error_message"
|
343
|
+
t.string "edit_mode"
|
74
344
|
end
|
75
345
|
|
346
|
+
add_index "patron_import_files", ["parent_id"], :name => "index_patron_import_files_on_parent_id"
|
347
|
+
add_index "patron_import_files", ["state"], :name => "index_patron_import_files_on_state"
|
348
|
+
add_index "patron_import_files", ["user_id"], :name => "index_patron_import_files_on_user_id"
|
349
|
+
|
350
|
+
create_table "patron_import_results", :force => true do |t|
|
351
|
+
t.integer "patron_import_file_id"
|
352
|
+
t.integer "patron_id"
|
353
|
+
t.integer "user_id"
|
354
|
+
t.text "body"
|
355
|
+
t.datetime "created_at", :null => false
|
356
|
+
t.datetime "updated_at", :null => false
|
357
|
+
end
|
358
|
+
|
359
|
+
create_table "patron_relationship_types", :force => true do |t|
|
360
|
+
t.string "name", :null => false
|
361
|
+
t.text "display_name"
|
362
|
+
t.text "note"
|
363
|
+
t.integer "position"
|
364
|
+
t.datetime "created_at", :null => false
|
365
|
+
t.datetime "updated_at", :null => false
|
366
|
+
end
|
367
|
+
|
368
|
+
create_table "patron_relationships", :force => true do |t|
|
369
|
+
t.integer "parent_id"
|
370
|
+
t.integer "child_id"
|
371
|
+
t.integer "patron_relationship_type_id"
|
372
|
+
t.datetime "created_at", :null => false
|
373
|
+
t.datetime "updated_at", :null => false
|
374
|
+
t.integer "position"
|
375
|
+
end
|
376
|
+
|
377
|
+
add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
|
378
|
+
add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
|
379
|
+
|
76
380
|
create_table "patron_types", :force => true do |t|
|
77
381
|
t.string "name", :null => false
|
78
382
|
t.text "display_name"
|
79
383
|
t.text "note"
|
80
384
|
t.integer "position"
|
81
|
-
t.datetime "created_at"
|
82
|
-
t.datetime "updated_at"
|
385
|
+
t.datetime "created_at", :null => false
|
386
|
+
t.datetime "updated_at", :null => false
|
83
387
|
end
|
84
388
|
|
85
389
|
create_table "patrons", :force => true do |t|
|
86
|
-
t.
|
390
|
+
t.integer "user_id"
|
391
|
+
t.string "last_name"
|
392
|
+
t.string "middle_name"
|
393
|
+
t.string "first_name"
|
394
|
+
t.string "last_name_transcription"
|
395
|
+
t.string "middle_name_transcription"
|
396
|
+
t.string "first_name_transcription"
|
397
|
+
t.string "corporate_name"
|
398
|
+
t.string "corporate_name_transcription"
|
399
|
+
t.string "full_name"
|
87
400
|
t.text "full_name_transcription"
|
88
|
-
t.
|
89
|
-
t.
|
90
|
-
t.
|
401
|
+
t.text "full_name_alternative"
|
402
|
+
t.datetime "created_at", :null => false
|
403
|
+
t.datetime "updated_at", :null => false
|
404
|
+
t.datetime "deleted_at"
|
405
|
+
t.string "zip_code_1"
|
406
|
+
t.string "zip_code_2"
|
407
|
+
t.text "address_1"
|
408
|
+
t.text "address_2"
|
409
|
+
t.text "address_1_note"
|
410
|
+
t.text "address_2_note"
|
411
|
+
t.string "telephone_number_1"
|
412
|
+
t.string "telephone_number_2"
|
413
|
+
t.string "fax_number_1"
|
414
|
+
t.string "fax_number_2"
|
415
|
+
t.text "other_designation"
|
416
|
+
t.text "place"
|
417
|
+
t.string "postal_code"
|
418
|
+
t.text "street"
|
419
|
+
t.text "locality"
|
420
|
+
t.text "region"
|
421
|
+
t.datetime "date_of_birth"
|
422
|
+
t.datetime "date_of_death"
|
423
|
+
t.integer "language_id", :default => 1, :null => false
|
424
|
+
t.integer "country_id", :default => 1, :null => false
|
425
|
+
t.integer "patron_type_id", :default => 1, :null => false
|
426
|
+
t.integer "lock_version", :default => 0, :null => false
|
427
|
+
t.text "note"
|
428
|
+
t.integer "required_role_id", :default => 1, :null => false
|
429
|
+
t.integer "required_score", :default => 0, :null => false
|
430
|
+
t.string "state"
|
431
|
+
t.text "email"
|
432
|
+
t.text "url"
|
433
|
+
t.text "full_name_alternative_transcription"
|
434
|
+
t.string "birth_date"
|
435
|
+
t.string "death_date"
|
436
|
+
end
|
437
|
+
|
438
|
+
add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
|
439
|
+
add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
|
440
|
+
add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
|
441
|
+
add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
|
442
|
+
add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
|
443
|
+
|
444
|
+
create_table "picture_files", :force => true do |t|
|
445
|
+
t.integer "picture_attachable_id"
|
446
|
+
t.string "picture_attachable_type"
|
447
|
+
t.string "content_type"
|
448
|
+
t.text "title"
|
449
|
+
t.string "thumbnail"
|
450
|
+
t.integer "position"
|
451
|
+
t.datetime "created_at", :null => false
|
452
|
+
t.datetime "updated_at", :null => false
|
453
|
+
t.string "picture_file_name"
|
454
|
+
t.string "picture_content_type"
|
455
|
+
t.integer "picture_file_size"
|
456
|
+
t.datetime "picture_updated_at"
|
457
|
+
t.text "picture_meta"
|
458
|
+
t.string "picture_fingerprint"
|
459
|
+
end
|
460
|
+
|
461
|
+
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
|
462
|
+
|
463
|
+
create_table "produce_types", :force => true do |t|
|
464
|
+
t.string "name"
|
465
|
+
t.text "display_name"
|
466
|
+
t.text "note"
|
467
|
+
t.integer "position"
|
468
|
+
t.datetime "created_at", :null => false
|
469
|
+
t.datetime "updated_at", :null => false
|
470
|
+
end
|
471
|
+
|
472
|
+
create_table "produces", :force => true do |t|
|
473
|
+
t.integer "patron_id", :null => false
|
474
|
+
t.integer "manifestation_id", :null => false
|
475
|
+
t.integer "position"
|
476
|
+
t.datetime "created_at", :null => false
|
477
|
+
t.datetime "updated_at", :null => false
|
478
|
+
t.integer "produce_type_id"
|
479
|
+
end
|
480
|
+
|
481
|
+
add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
|
482
|
+
add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
|
483
|
+
|
484
|
+
create_table "realize_types", :force => true do |t|
|
485
|
+
t.string "name"
|
486
|
+
t.text "display_name"
|
487
|
+
t.text "note"
|
488
|
+
t.integer "position"
|
489
|
+
t.datetime "created_at", :null => false
|
490
|
+
t.datetime "updated_at", :null => false
|
491
|
+
end
|
492
|
+
|
493
|
+
create_table "realizes", :force => true do |t|
|
494
|
+
t.integer "patron_id", :null => false
|
495
|
+
t.integer "expression_id", :null => false
|
496
|
+
t.integer "position"
|
497
|
+
t.datetime "created_at", :null => false
|
498
|
+
t.datetime "updated_at", :null => false
|
499
|
+
t.integer "realize_type_id"
|
500
|
+
end
|
501
|
+
|
502
|
+
add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
|
503
|
+
add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
|
504
|
+
|
505
|
+
create_table "resource_import_files", :force => true do |t|
|
506
|
+
t.integer "parent_id"
|
507
|
+
t.string "content_type"
|
508
|
+
t.integer "size"
|
91
509
|
t.integer "user_id"
|
92
|
-
t.
|
93
|
-
t.datetime "
|
510
|
+
t.text "note"
|
511
|
+
t.datetime "executed_at"
|
512
|
+
t.string "state"
|
513
|
+
t.string "resource_import_file_name"
|
514
|
+
t.string "resource_import_content_type"
|
515
|
+
t.integer "resource_import_file_size"
|
516
|
+
t.datetime "resource_import_updated_at"
|
517
|
+
t.datetime "created_at", :null => false
|
518
|
+
t.datetime "updated_at", :null => false
|
519
|
+
t.string "edit_mode"
|
520
|
+
t.string "resource_import_fingerprint"
|
521
|
+
t.text "error_message"
|
94
522
|
end
|
95
523
|
|
524
|
+
add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
|
525
|
+
add_index "resource_import_files", ["state"], :name => "index_resource_import_files_on_state"
|
526
|
+
add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
|
527
|
+
|
528
|
+
create_table "resource_import_results", :force => true do |t|
|
529
|
+
t.integer "resource_import_file_id"
|
530
|
+
t.integer "manifestation_id"
|
531
|
+
t.integer "item_id"
|
532
|
+
t.text "body"
|
533
|
+
t.datetime "created_at", :null => false
|
534
|
+
t.datetime "updated_at", :null => false
|
535
|
+
end
|
536
|
+
|
537
|
+
add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
|
538
|
+
add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
|
539
|
+
add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
|
540
|
+
|
96
541
|
create_table "roles", :force => true do |t|
|
97
542
|
t.string "name"
|
98
543
|
t.text "display_name"
|
99
544
|
t.text "note"
|
100
545
|
t.integer "position"
|
101
|
-
t.datetime "created_at"
|
102
|
-
t.datetime "updated_at"
|
546
|
+
t.datetime "created_at", :null => false
|
547
|
+
t.datetime "updated_at", :null => false
|
103
548
|
end
|
104
549
|
|
550
|
+
create_table "series_has_manifestations", :force => true do |t|
|
551
|
+
t.integer "series_statement_id"
|
552
|
+
t.integer "manifestation_id"
|
553
|
+
t.integer "position"
|
554
|
+
t.datetime "created_at", :null => false
|
555
|
+
t.datetime "updated_at", :null => false
|
556
|
+
end
|
557
|
+
|
558
|
+
add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
|
559
|
+
add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
|
560
|
+
|
561
|
+
create_table "series_statement_merge_lists", :force => true do |t|
|
562
|
+
t.string "title"
|
563
|
+
t.datetime "created_at", :null => false
|
564
|
+
t.datetime "updated_at", :null => false
|
565
|
+
end
|
566
|
+
|
567
|
+
create_table "series_statement_merges", :force => true do |t|
|
568
|
+
t.integer "series_statement_id", :null => false
|
569
|
+
t.integer "series_statement_merge_list_id", :null => false
|
570
|
+
t.datetime "created_at", :null => false
|
571
|
+
t.datetime "updated_at", :null => false
|
572
|
+
end
|
573
|
+
|
574
|
+
add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
|
575
|
+
add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
|
576
|
+
|
577
|
+
create_table "series_statements", :force => true do |t|
|
578
|
+
t.text "original_title"
|
579
|
+
t.text "numbering"
|
580
|
+
t.text "title_subseries"
|
581
|
+
t.text "numbering_subseries"
|
582
|
+
t.integer "position"
|
583
|
+
t.datetime "created_at", :null => false
|
584
|
+
t.datetime "updated_at", :null => false
|
585
|
+
t.text "title_transcription"
|
586
|
+
t.text "title_alternative"
|
587
|
+
t.string "series_statement_identifier"
|
588
|
+
t.string "issn"
|
589
|
+
t.boolean "periodical"
|
590
|
+
t.integer "root_manifestation_id"
|
591
|
+
t.text "note"
|
592
|
+
t.text "title_subseries_transcription"
|
593
|
+
end
|
594
|
+
|
595
|
+
add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_manifestation_id"
|
596
|
+
add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
|
597
|
+
|
105
598
|
create_table "subject_has_classifications", :force => true do |t|
|
106
599
|
t.integer "subject_id"
|
107
600
|
t.string "subject_type"
|
108
601
|
t.integer "classification_id", :null => false
|
109
|
-
t.datetime "created_at"
|
110
|
-
t.datetime "updated_at"
|
602
|
+
t.datetime "created_at", :null => false
|
603
|
+
t.datetime "updated_at", :null => false
|
111
604
|
end
|
112
605
|
|
113
606
|
add_index "subject_has_classifications", ["classification_id"], :name => "index_subject_has_classifications_on_classification_id"
|
@@ -117,8 +610,8 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
117
610
|
t.integer "subject_id", :null => false
|
118
611
|
t.string "subject_type"
|
119
612
|
t.integer "subject_heading_type_id", :null => false
|
120
|
-
t.datetime "created_at"
|
121
|
-
t.datetime "updated_at"
|
613
|
+
t.datetime "created_at", :null => false
|
614
|
+
t.datetime "updated_at", :null => false
|
122
615
|
end
|
123
616
|
|
124
617
|
add_index "subject_heading_type_has_subjects", ["subject_id"], :name => "index_subject_heading_type_has_subjects_on_subject_id"
|
@@ -128,8 +621,8 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
128
621
|
t.text "display_name"
|
129
622
|
t.text "note"
|
130
623
|
t.integer "position"
|
131
|
-
t.datetime "created_at"
|
132
|
-
t.datetime "updated_at"
|
624
|
+
t.datetime "created_at", :null => false
|
625
|
+
t.datetime "updated_at", :null => false
|
133
626
|
end
|
134
627
|
|
135
628
|
create_table "subject_types", :force => true do |t|
|
@@ -137,8 +630,8 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
137
630
|
t.text "display_name"
|
138
631
|
t.text "note"
|
139
632
|
t.integer "position"
|
140
|
-
t.datetime "created_at"
|
141
|
-
t.datetime "updated_at"
|
633
|
+
t.datetime "created_at", :null => false
|
634
|
+
t.datetime "updated_at", :null => false
|
142
635
|
end
|
143
636
|
|
144
637
|
create_table "subjects", :force => true do |t|
|
@@ -168,15 +661,15 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
168
661
|
t.text "display_name"
|
169
662
|
t.text "note"
|
170
663
|
t.integer "position"
|
171
|
-
t.datetime "created_at"
|
172
|
-
t.datetime "updated_at"
|
664
|
+
t.datetime "created_at", :null => false
|
665
|
+
t.datetime "updated_at", :null => false
|
173
666
|
end
|
174
667
|
|
175
668
|
create_table "user_has_roles", :force => true do |t|
|
176
669
|
t.integer "user_id"
|
177
670
|
t.integer "role_id"
|
178
|
-
t.datetime "created_at"
|
179
|
-
t.datetime "updated_at"
|
671
|
+
t.datetime "created_at", :null => false
|
672
|
+
t.datetime "updated_at", :null => false
|
180
673
|
end
|
181
674
|
|
182
675
|
create_table "users", :force => true do |t|
|
@@ -184,30 +677,50 @@ ActiveRecord::Schema.define(:version => 20120406020752) do
|
|
184
677
|
t.integer "required_role_id"
|
185
678
|
t.string "username"
|
186
679
|
t.text "note"
|
187
|
-
t.datetime "created_at"
|
188
|
-
t.datetime "updated_at"
|
189
|
-
t.string "email",
|
190
|
-
t.string "encrypted_password", :
|
680
|
+
t.datetime "created_at", :null => false
|
681
|
+
t.datetime "updated_at", :null => false
|
682
|
+
t.string "email", :default => "", :null => false
|
683
|
+
t.string "encrypted_password", :default => "", :null => false
|
191
684
|
t.string "reset_password_token"
|
192
685
|
t.datetime "reset_password_sent_at"
|
193
686
|
t.datetime "remember_created_at"
|
194
|
-
t.integer "sign_in_count",
|
687
|
+
t.integer "sign_in_count", :default => 0
|
195
688
|
t.datetime "current_sign_in_at"
|
196
689
|
t.datetime "last_sign_in_at"
|
197
690
|
t.string "current_sign_in_ip"
|
198
691
|
t.string "last_sign_in_ip"
|
692
|
+
t.string "password_salt"
|
693
|
+
t.string "confirmation_token"
|
694
|
+
t.datetime "confirmed_at"
|
695
|
+
t.datetime "confirmation_sent_at"
|
696
|
+
t.string "unconfirmed_email"
|
697
|
+
t.integer "failed_attempts", :default => 0
|
698
|
+
t.string "unlock_token"
|
699
|
+
t.datetime "locked_at"
|
700
|
+
t.string "authentication_token"
|
199
701
|
end
|
200
702
|
|
201
703
|
add_index "users", ["email"], :name => "index_users_on_email"
|
202
704
|
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
203
705
|
|
706
|
+
create_table "versions", :force => true do |t|
|
707
|
+
t.string "item_type", :null => false
|
708
|
+
t.integer "item_id", :null => false
|
709
|
+
t.string "event", :null => false
|
710
|
+
t.string "whodunnit"
|
711
|
+
t.text "object"
|
712
|
+
t.datetime "created_at"
|
713
|
+
end
|
714
|
+
|
715
|
+
add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
|
716
|
+
|
204
717
|
create_table "work_has_subjects", :force => true do |t|
|
205
718
|
t.integer "subject_id"
|
206
719
|
t.string "subject_type"
|
207
720
|
t.integer "work_id"
|
208
721
|
t.integer "position"
|
209
|
-
t.datetime "created_at"
|
210
|
-
t.datetime "updated_at"
|
722
|
+
t.datetime "created_at", :null => false
|
723
|
+
t.datetime "updated_at", :null => false
|
211
724
|
end
|
212
725
|
|
213
726
|
add_index "work_has_subjects", ["subject_id"], :name => "index_work_has_subjects_on_subject_id"
|