enju_subject 0.1.0.pre27 → 0.1.0.pre28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/classification_type.rb +2 -2
  3. data/app/models/subject_heading_type.rb +1 -0
  4. data/app/models/subject_type.rb +1 -1
  5. data/lib/enju_subject/version.rb +1 -1
  6. data/spec/dummy/config/boot.rb +2 -2
  7. data/spec/dummy/config/routes.rb +1 -1
  8. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  9. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  10. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
  11. data/spec/dummy/db/schema.rb +420 -404
  12. data/spec/dummy/db/test.sqlite3 +0 -0
  13. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  14. data/spec/dummy/solr/default/data/index/segments_17a +0 -0
  15. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001547 +0 -0
  16. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001548 +0 -0
  17. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001549 +0 -0
  18. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001550 +0 -0
  19. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001551 +0 -0
  20. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001552 +0 -0
  21. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001553 +0 -0
  22. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001554 +0 -0
  23. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001555 +0 -0
  24. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001556 +0 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/016f86e39ffdee229513e167e190373b +0 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/1867899076fb1e0b90ad8e952258ceb6 +0 -0
  28. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  29. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  30. data/spec/dummy/tmp/cache/assets/test/sprockets/90453e0e28686c374df46268d089c661 +0 -0
  31. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  32. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  33. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  34. data/spec/dummy/tmp/cache/assets/test/sprockets/fa36be28948b64b82117be61d1712366 +0 -0
  35. metadata +42 -44
  36. data/spec/dummy/db/development.sqlite3 +0 -0
  37. data/spec/dummy/solr/default/data/index/segments_14a +0 -0
  38. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001439 +0 -0
  39. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001440 +0 -0
  40. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001441 +0 -0
  41. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001442 +0 -0
  42. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001443 +0 -0
  43. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001444 +0 -0
  44. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001445 +0 -0
  45. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001446 +0 -0
  46. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001447 +0 -0
  47. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001448 +0 -0
  48. data/spec/dummy/test/fixtures/user_groups.yml +0 -13
  49. data/spec/dummy/test/fixtures/user_has_roles.yml +0 -9
  50. data/spec/dummy/test/fixtures/users.yml +0 -11
  51. data/spec/dummy/test/unit/user_group_test.rb +0 -7
  52. data/spec/dummy/test/unit/user_has_role_test.rb +0 -7
  53. data/spec/dummy/test/unit/user_test.rb +0 -7
@@ -9,34 +9,34 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20140813182425) do
14
+ ActiveRecord::Schema.define(version: 20140813182425) do
15
15
 
16
- create_table "accepts", :force => true do |t|
16
+ create_table "accepts", force: true do |t|
17
17
  t.integer "basket_id"
18
18
  t.integer "item_id"
19
19
  t.integer "librarian_id"
20
- t.datetime "created_at", :null => false
21
- t.datetime "updated_at", :null => false
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
22
  end
23
23
 
24
- add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
25
- add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
24
+ add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
+ add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
26
 
27
- create_table "agent_import_file_transitions", :force => true do |t|
27
+ create_table "agent_import_file_transitions", force: true do |t|
28
28
  t.string "to_state"
29
- t.text "metadata", :default => "{}"
29
+ t.text "metadata", default: "{}"
30
30
  t.integer "sort_key"
31
31
  t.integer "agent_import_file_id"
32
- t.datetime "created_at", :null => false
33
- t.datetime "updated_at", :null => false
32
+ t.datetime "created_at"
33
+ t.datetime "updated_at"
34
34
  end
35
35
 
36
- add_index "agent_import_file_transitions", ["agent_import_file_id"], :name => "index_agent_import_file_transitions_on_agent_import_file_id"
37
- add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], :name => "index_agent_import_file_transitions_on_sort_key_and_file_id", :unique => true
36
+ add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
37
+ add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
38
38
 
39
- create_table "agent_import_files", :force => true do |t|
39
+ create_table "agent_import_files", force: true do |t|
40
40
  t.integer "parent_id"
41
41
  t.string "content_type"
42
42
  t.integer "size"
@@ -47,56 +47,72 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
47
47
  t.string "agent_import_content_type"
48
48
  t.integer "agent_import_file_size"
49
49
  t.datetime "agent_import_updated_at"
50
- t.datetime "created_at", :null => false
51
- t.datetime "updated_at", :null => false
50
+ t.datetime "created_at"
51
+ t.datetime "updated_at"
52
52
  t.string "agent_import_fingerprint"
53
53
  t.text "error_message"
54
54
  t.string "edit_mode"
55
55
  t.string "user_encoding"
56
56
  end
57
57
 
58
- add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
59
- add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
58
+ add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
59
+ add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
60
60
 
61
- create_table "agent_import_results", :force => true do |t|
61
+ create_table "agent_import_results", force: true do |t|
62
62
  t.integer "agent_import_file_id"
63
63
  t.integer "agent_id"
64
64
  t.text "body"
65
- t.datetime "created_at", :null => false
66
- t.datetime "updated_at", :null => false
65
+ t.datetime "created_at"
66
+ t.datetime "updated_at"
67
+ end
68
+
69
+ create_table "agent_merge_lists", force: true do |t|
70
+ t.string "title"
71
+ t.datetime "created_at"
72
+ t.datetime "updated_at"
67
73
  end
68
74
 
69
- create_table "agent_relationship_types", :force => true do |t|
70
- t.string "name", :null => false
75
+ create_table "agent_merges", force: true do |t|
76
+ t.integer "agent_id", null: false
77
+ t.integer "agent_merge_list_id", null: false
78
+ t.datetime "created_at"
79
+ t.datetime "updated_at"
80
+ end
81
+
82
+ add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
83
+ add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
84
+
85
+ create_table "agent_relationship_types", force: true do |t|
86
+ t.string "name", null: false
71
87
  t.text "display_name"
72
88
  t.text "note"
73
89
  t.integer "position"
74
- t.datetime "created_at", :null => false
75
- t.datetime "updated_at", :null => false
90
+ t.datetime "created_at"
91
+ t.datetime "updated_at"
76
92
  end
77
93
 
78
- create_table "agent_relationships", :force => true do |t|
94
+ create_table "agent_relationships", force: true do |t|
79
95
  t.integer "parent_id"
80
96
  t.integer "child_id"
81
97
  t.integer "agent_relationship_type_id"
82
- t.datetime "created_at", :null => false
83
- t.datetime "updated_at", :null => false
98
+ t.datetime "created_at"
99
+ t.datetime "updated_at"
84
100
  t.integer "position"
85
101
  end
86
102
 
87
- add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
88
- add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
103
+ add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
104
+ add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
89
105
 
90
- create_table "agent_types", :force => true do |t|
91
- t.string "name", :null => false
106
+ create_table "agent_types", force: true do |t|
107
+ t.string "name", null: false
92
108
  t.text "display_name"
93
109
  t.text "note"
94
110
  t.integer "position"
95
- t.datetime "created_at", :null => false
96
- t.datetime "updated_at", :null => false
111
+ t.datetime "created_at"
112
+ t.datetime "updated_at"
97
113
  end
98
114
 
99
- create_table "agents", :force => true do |t|
115
+ create_table "agents", force: true do |t|
100
116
  t.string "last_name"
101
117
  t.string "middle_name"
102
118
  t.string "first_name"
@@ -108,8 +124,8 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
108
124
  t.string "full_name"
109
125
  t.text "full_name_transcription"
110
126
  t.text "full_name_alternative"
111
- t.datetime "created_at", :null => false
112
- t.datetime "updated_at", :null => false
127
+ t.datetime "created_at"
128
+ t.datetime "updated_at"
113
129
  t.datetime "deleted_at"
114
130
  t.string "zip_code_1"
115
131
  t.string "zip_code_2"
@@ -129,13 +145,13 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
129
145
  t.text "region"
130
146
  t.datetime "date_of_birth"
131
147
  t.datetime "date_of_death"
132
- t.integer "language_id", :default => 1, :null => false
133
- t.integer "country_id", :default => 1, :null => false
134
- t.integer "agent_type_id", :default => 1, :null => false
135
- t.integer "lock_version", :default => 0, :null => false
148
+ t.integer "language_id", default: 1, null: false
149
+ t.integer "country_id", default: 1, null: false
150
+ t.integer "agent_type_id", default: 1, null: false
151
+ t.integer "lock_version", default: 0, null: false
136
152
  t.text "note"
137
- t.integer "required_role_id", :default => 1, :null => false
138
- t.integer "required_score", :default => 0, :null => false
153
+ t.integer "required_role_id", default: 1, null: false
154
+ t.integer "required_score", default: 0, null: false
139
155
  t.text "email"
140
156
  t.text "url"
141
157
  t.text "full_name_alternative_transcription"
@@ -144,24 +160,24 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
144
160
  t.string "agent_identifier"
145
161
  end
146
162
 
147
- add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
148
- add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
149
- add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
150
- add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
151
- add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
163
+ add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
164
+ add_index "agents", ["country_id"], name: "index_agents_on_country_id"
165
+ add_index "agents", ["full_name"], name: "index_agents_on_full_name"
166
+ add_index "agents", ["language_id"], name: "index_agents_on_language_id"
167
+ add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
152
168
 
153
- create_table "baskets", :force => true do |t|
169
+ create_table "baskets", force: true do |t|
154
170
  t.integer "user_id"
155
171
  t.text "note"
156
- t.integer "lock_version", :default => 0, :null => false
157
- t.datetime "created_at", :null => false
158
- t.datetime "updated_at", :null => false
172
+ t.integer "lock_version", default: 0, null: false
173
+ t.datetime "created_at"
174
+ t.datetime "updated_at"
159
175
  end
160
176
 
161
- add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
177
+ add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
162
178
 
163
- create_table "bookstores", :force => true do |t|
164
- t.text "name", :null => false
179
+ create_table "bookstores", force: true do |t|
180
+ t.text "name", null: false
165
181
  t.string "zip_code"
166
182
  t.text "address"
167
183
  t.text "note"
@@ -170,65 +186,65 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
170
186
  t.string "url"
171
187
  t.integer "position"
172
188
  t.datetime "deleted_at"
173
- t.datetime "created_at", :null => false
174
- t.datetime "updated_at", :null => false
189
+ t.datetime "created_at"
190
+ t.datetime "updated_at"
175
191
  end
176
192
 
177
- create_table "budget_types", :force => true do |t|
193
+ create_table "budget_types", force: true do |t|
178
194
  t.string "name"
179
195
  t.text "display_name"
180
196
  t.text "note"
181
197
  t.integer "position"
182
- t.datetime "created_at", :null => false
183
- t.datetime "updated_at", :null => false
198
+ t.datetime "created_at"
199
+ t.datetime "updated_at"
184
200
  end
185
201
 
186
- create_table "carrier_types", :force => true do |t|
187
- t.string "name", :null => false
202
+ create_table "carrier_types", force: true do |t|
203
+ t.string "name", null: false
188
204
  t.text "display_name"
189
205
  t.text "note"
190
206
  t.integer "position"
191
- t.datetime "created_at", :null => false
192
- t.datetime "updated_at", :null => false
207
+ t.datetime "created_at"
208
+ t.datetime "updated_at"
193
209
  end
194
210
 
195
- create_table "classification_types", :force => true do |t|
196
- t.string "name", :null => false
211
+ create_table "classification_types", force: true do |t|
212
+ t.string "name", null: false
197
213
  t.text "display_name"
198
214
  t.text "note"
199
215
  t.integer "position"
200
- t.datetime "created_at", :null => false
201
- t.datetime "updated_at", :null => false
216
+ t.datetime "created_at"
217
+ t.datetime "updated_at"
202
218
  end
203
219
 
204
- create_table "classifications", :force => true do |t|
220
+ create_table "classifications", force: true do |t|
205
221
  t.integer "parent_id"
206
- t.string "category", :null => false
222
+ t.string "category", null: false
207
223
  t.text "note"
208
- t.integer "classification_type_id", :null => false
209
- t.datetime "created_at", :null => false
210
- t.datetime "updated_at", :null => false
224
+ t.integer "classification_type_id", null: false
225
+ t.datetime "created_at"
226
+ t.datetime "updated_at"
211
227
  t.integer "lft"
212
228
  t.integer "rgt"
213
229
  t.integer "manifestation_id"
214
230
  end
215
231
 
216
- add_index "classifications", ["category"], :name => "index_classifications_on_category"
217
- add_index "classifications", ["classification_type_id"], :name => "index_classifications_on_classification_type_id"
218
- add_index "classifications", ["manifestation_id"], :name => "index_classifications_on_manifestation_id"
219
- add_index "classifications", ["parent_id"], :name => "index_classifications_on_parent_id"
232
+ add_index "classifications", ["category"], name: "index_classifications_on_category"
233
+ add_index "classifications", ["classification_type_id"], name: "index_classifications_on_classification_type_id"
234
+ add_index "classifications", ["manifestation_id"], name: "index_classifications_on_manifestation_id"
235
+ add_index "classifications", ["parent_id"], name: "index_classifications_on_parent_id"
220
236
 
221
- create_table "content_types", :force => true do |t|
222
- t.string "name", :null => false
237
+ create_table "content_types", force: true do |t|
238
+ t.string "name", null: false
223
239
  t.text "display_name"
224
240
  t.text "note"
225
241
  t.integer "position"
226
- t.datetime "created_at", :null => false
227
- t.datetime "updated_at", :null => false
242
+ t.datetime "created_at"
243
+ t.datetime "updated_at"
228
244
  end
229
245
 
230
- create_table "countries", :force => true do |t|
231
- t.string "name", :null => false
246
+ create_table "countries", force: true do |t|
247
+ t.string "name", null: false
232
248
  t.text "display_name"
233
249
  t.string "alpha_2"
234
250
  t.string "alpha_3"
@@ -237,140 +253,140 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
237
253
  t.integer "position"
238
254
  end
239
255
 
240
- add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
241
- add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
242
- add_index "countries", ["name"], :name => "index_countries_on_name"
243
- add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
256
+ add_index "countries", ["alpha_2"], name: "index_countries_on_alpha_2"
257
+ add_index "countries", ["alpha_3"], name: "index_countries_on_alpha_3"
258
+ add_index "countries", ["name"], name: "index_countries_on_name"
259
+ add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
244
260
 
245
- create_table "create_types", :force => true do |t|
261
+ create_table "create_types", force: true do |t|
246
262
  t.string "name"
247
263
  t.text "display_name"
248
264
  t.text "note"
249
265
  t.integer "position"
250
- t.datetime "created_at", :null => false
251
- t.datetime "updated_at", :null => false
266
+ t.datetime "created_at"
267
+ t.datetime "updated_at"
252
268
  end
253
269
 
254
- create_table "creates", :force => true do |t|
255
- t.integer "agent_id", :null => false
256
- t.integer "work_id", :null => false
270
+ create_table "creates", force: true do |t|
271
+ t.integer "agent_id", null: false
272
+ t.integer "work_id", null: false
257
273
  t.integer "position"
258
- t.datetime "created_at", :null => false
259
- t.datetime "updated_at", :null => false
274
+ t.datetime "created_at"
275
+ t.datetime "updated_at"
260
276
  t.integer "create_type_id"
261
277
  end
262
278
 
263
- add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
264
- add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
279
+ add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
280
+ add_index "creates", ["work_id"], name: "index_creates_on_work_id"
265
281
 
266
- create_table "donates", :force => true do |t|
267
- t.integer "agent_id", :null => false
268
- t.integer "item_id", :null => false
269
- t.datetime "created_at", :null => false
270
- t.datetime "updated_at", :null => false
282
+ create_table "donates", force: true do |t|
283
+ t.integer "agent_id", null: false
284
+ t.integer "item_id", null: false
285
+ t.datetime "created_at"
286
+ t.datetime "updated_at"
271
287
  end
272
288
 
273
- add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
274
- add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
289
+ add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
290
+ add_index "donates", ["item_id"], name: "index_donates_on_item_id"
275
291
 
276
- create_table "exemplifies", :force => true do |t|
277
- t.integer "manifestation_id", :null => false
278
- t.integer "item_id", :null => false
292
+ create_table "exemplifies", force: true do |t|
293
+ t.integer "manifestation_id", null: false
294
+ t.integer "item_id", null: false
279
295
  t.integer "position"
280
- t.datetime "created_at", :null => false
281
- t.datetime "updated_at", :null => false
296
+ t.datetime "created_at"
297
+ t.datetime "updated_at"
282
298
  end
283
299
 
284
- add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
285
- add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
300
+ add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
301
+ add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
286
302
 
287
- create_table "extents", :force => true do |t|
288
- t.string "name", :null => false
303
+ create_table "extents", force: true do |t|
304
+ t.string "name", null: false
289
305
  t.text "display_name"
290
306
  t.text "note"
291
307
  t.integer "position"
292
- t.datetime "created_at", :null => false
293
- t.datetime "updated_at", :null => false
308
+ t.datetime "created_at"
309
+ t.datetime "updated_at"
294
310
  end
295
311
 
296
- create_table "form_of_works", :force => true do |t|
297
- t.string "name", :null => false
312
+ create_table "form_of_works", force: true do |t|
313
+ t.string "name", null: false
298
314
  t.text "display_name"
299
315
  t.text "note"
300
316
  t.integer "position"
301
- t.datetime "created_at", :null => false
302
- t.datetime "updated_at", :null => false
317
+ t.datetime "created_at"
318
+ t.datetime "updated_at"
303
319
  end
304
320
 
305
- create_table "frequencies", :force => true do |t|
306
- t.string "name", :null => false
321
+ create_table "frequencies", force: true do |t|
322
+ t.string "name", null: false
307
323
  t.text "display_name"
308
324
  t.text "note"
309
325
  t.integer "position"
310
- t.datetime "created_at", :null => false
311
- t.datetime "updated_at", :null => false
326
+ t.datetime "created_at"
327
+ t.datetime "updated_at"
312
328
  end
313
329
 
314
- create_table "identifier_types", :force => true do |t|
330
+ create_table "identifier_types", force: true do |t|
315
331
  t.string "name"
316
332
  t.text "display_name"
317
333
  t.text "note"
318
334
  t.integer "position"
319
- t.datetime "created_at", :null => false
320
- t.datetime "updated_at", :null => false
335
+ t.datetime "created_at"
336
+ t.datetime "updated_at"
321
337
  end
322
338
 
323
- create_table "identifiers", :force => true do |t|
324
- t.string "body", :null => false
325
- t.integer "identifier_type_id", :null => false
339
+ create_table "identifiers", force: true do |t|
340
+ t.string "body", null: false
341
+ t.integer "identifier_type_id", null: false
326
342
  t.integer "manifestation_id"
327
343
  t.boolean "primary"
328
344
  t.integer "position"
329
- t.datetime "created_at", :null => false
330
- t.datetime "updated_at", :null => false
345
+ t.datetime "created_at"
346
+ t.datetime "updated_at"
331
347
  end
332
348
 
333
- add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
334
- add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
349
+ add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
350
+ add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
335
351
 
336
- create_table "import_request_transitions", :force => true do |t|
352
+ create_table "import_request_transitions", force: true do |t|
337
353
  t.string "to_state"
338
- t.text "metadata", :default => "{}"
354
+ t.text "metadata", default: "{}"
339
355
  t.integer "sort_key"
340
356
  t.integer "import_request_id"
341
- t.datetime "created_at", :null => false
342
- t.datetime "updated_at", :null => false
357
+ t.datetime "created_at"
358
+ t.datetime "updated_at"
343
359
  end
344
360
 
345
- add_index "import_request_transitions", ["import_request_id"], :name => "index_import_request_transitions_on_import_request_id"
346
- add_index "import_request_transitions", ["sort_key", "import_request_id"], :name => "index_import_request_transitions_on_sort_key_and_request_id", :unique => true
361
+ add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
362
+ add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
347
363
 
348
- create_table "import_requests", :force => true do |t|
364
+ create_table "import_requests", force: true do |t|
349
365
  t.string "isbn"
350
366
  t.integer "manifestation_id"
351
367
  t.integer "user_id"
352
- t.datetime "created_at", :null => false
353
- t.datetime "updated_at", :null => false
368
+ t.datetime "created_at"
369
+ t.datetime "updated_at"
354
370
  end
355
371
 
356
- add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
357
- add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
358
- add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
372
+ add_index "import_requests", ["isbn"], name: "index_import_requests_on_isbn"
373
+ add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
374
+ add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
359
375
 
360
- create_table "items", :force => true do |t|
376
+ create_table "items", force: true do |t|
361
377
  t.string "call_number"
362
378
  t.string "item_identifier"
363
- t.datetime "created_at", :null => false
364
- t.datetime "updated_at", :null => false
379
+ t.datetime "created_at"
380
+ t.datetime "updated_at"
365
381
  t.datetime "deleted_at"
366
- t.integer "shelf_id", :default => 1, :null => false
367
- t.boolean "include_supplements", :default => false, :null => false
382
+ t.integer "shelf_id", default: 1, null: false
383
+ t.boolean "include_supplements", default: false, null: false
368
384
  t.text "note"
369
385
  t.string "url"
370
386
  t.integer "price"
371
- t.integer "lock_version", :default => 0, :null => false
372
- t.integer "required_role_id", :default => 1, :null => false
373
- t.integer "required_score", :default => 0, :null => false
387
+ t.integer "lock_version", default: 0, null: false
388
+ t.integer "required_role_id", default: 1, null: false
389
+ t.integer "required_score", default: 0, null: false
374
390
  t.datetime "acquired_at"
375
391
  t.integer "bookstore_id"
376
392
  t.integer "budget_type_id"
@@ -380,15 +396,15 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
380
396
  t.integer "manifestation_id"
381
397
  end
382
398
 
383
- add_index "items", ["binding_item_identifier"], :name => "index_items_on_binding_item_identifier"
384
- add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
385
- add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
386
- add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
387
- add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
388
- add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
399
+ add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
400
+ add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
401
+ add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
402
+ add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
403
+ add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
404
+ add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
389
405
 
390
- create_table "languages", :force => true do |t|
391
- t.string "name", :null => false
406
+ create_table "languages", force: true do |t|
407
+ t.string "name", null: false
392
408
  t.string "native_name"
393
409
  t.text "display_name"
394
410
  t.string "iso_639_1"
@@ -398,15 +414,15 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
398
414
  t.integer "position"
399
415
  end
400
416
 
401
- add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
402
- add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
403
- add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
404
- add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
417
+ add_index "languages", ["iso_639_1"], name: "index_languages_on_iso_639_1"
418
+ add_index "languages", ["iso_639_2"], name: "index_languages_on_iso_639_2"
419
+ add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
420
+ add_index "languages", ["name"], name: "index_languages_on_name", unique: true
405
421
 
406
- create_table "libraries", :force => true do |t|
407
- t.string "name", :null => false
422
+ create_table "libraries", force: true do |t|
423
+ t.string "name", null: false
408
424
  t.text "display_name"
409
- t.string "short_display_name", :null => false
425
+ t.string "short_display_name", null: false
410
426
  t.string "zip_code"
411
427
  t.text "street"
412
428
  t.text "locality"
@@ -415,14 +431,14 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
415
431
  t.string "telephone_number_2"
416
432
  t.string "fax_number"
417
433
  t.text "note"
418
- t.integer "call_number_rows", :default => 1, :null => false
419
- t.string "call_number_delimiter", :default => "|", :null => false
420
- t.integer "library_group_id", :default => 1, :null => false
421
- t.integer "users_count", :default => 0, :null => false
434
+ t.integer "call_number_rows", default: 1, null: false
435
+ t.string "call_number_delimiter", default: "|", null: false
436
+ t.integer "library_group_id", default: 1, null: false
437
+ t.integer "users_count", default: 0, null: false
422
438
  t.integer "position"
423
439
  t.integer "country_id"
424
- t.datetime "created_at", :null => false
425
- t.datetime "updated_at", :null => false
440
+ t.datetime "created_at"
441
+ t.datetime "updated_at"
426
442
  t.datetime "deleted_at"
427
443
  t.text "opening_hour"
428
444
  t.string "isil"
@@ -430,71 +446,71 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
430
446
  t.float "longitude"
431
447
  end
432
448
 
433
- add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
434
- add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
449
+ add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
450
+ add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
435
451
 
436
- create_table "library_groups", :force => true do |t|
437
- t.string "name", :null => false
452
+ create_table "library_groups", force: true do |t|
453
+ t.string "name", null: false
438
454
  t.text "display_name"
439
- t.string "short_name", :null => false
455
+ t.string "short_name", null: false
440
456
  t.text "my_networks"
441
457
  t.text "login_banner"
442
458
  t.text "note"
443
459
  t.integer "country_id"
444
460
  t.integer "position"
445
- t.datetime "created_at", :null => false
446
- t.datetime "updated_at", :null => false
461
+ t.datetime "created_at"
462
+ t.datetime "updated_at"
447
463
  t.text "admin_networks"
448
- t.string "url", :default => "http://localhost:3000/"
464
+ t.string "url", default: "http://localhost:3000/"
449
465
  end
450
466
 
451
- add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
467
+ add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
452
468
 
453
- create_table "licenses", :force => true do |t|
454
- t.string "name", :null => false
469
+ create_table "licenses", force: true do |t|
470
+ t.string "name", null: false
455
471
  t.string "display_name"
456
472
  t.text "note"
457
473
  t.integer "position"
458
- t.datetime "created_at", :null => false
459
- t.datetime "updated_at", :null => false
474
+ t.datetime "created_at"
475
+ t.datetime "updated_at"
460
476
  end
461
477
 
462
- create_table "manifestation_relationship_types", :force => true do |t|
463
- t.string "name", :null => false
478
+ create_table "manifestation_relationship_types", force: true do |t|
479
+ t.string "name", null: false
464
480
  t.text "display_name"
465
481
  t.text "note"
466
482
  t.integer "position"
467
- t.datetime "created_at", :null => false
468
- t.datetime "updated_at", :null => false
483
+ t.datetime "created_at"
484
+ t.datetime "updated_at"
469
485
  end
470
486
 
471
- create_table "manifestation_relationships", :force => true do |t|
487
+ create_table "manifestation_relationships", force: true do |t|
472
488
  t.integer "parent_id"
473
489
  t.integer "child_id"
474
490
  t.integer "manifestation_relationship_type_id"
475
- t.datetime "created_at", :null => false
476
- t.datetime "updated_at", :null => false
491
+ t.datetime "created_at"
492
+ t.datetime "updated_at"
477
493
  t.integer "position"
478
494
  end
479
495
 
480
- add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
481
- add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
496
+ add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
497
+ add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
482
498
 
483
- create_table "manifestations", :force => true do |t|
484
- t.text "original_title", :null => false
499
+ create_table "manifestations", force: true do |t|
500
+ t.text "original_title", null: false
485
501
  t.text "title_alternative"
486
502
  t.text "title_transcription"
487
503
  t.string "classification_number"
488
504
  t.string "manifestation_identifier"
489
505
  t.datetime "date_of_publication"
490
506
  t.datetime "date_copyrighted"
491
- t.datetime "created_at", :null => false
492
- t.datetime "updated_at", :null => false
507
+ t.datetime "created_at"
508
+ t.datetime "updated_at"
493
509
  t.datetime "deleted_at"
494
510
  t.string "access_address"
495
- t.integer "language_id", :default => 1, :null => false
496
- t.integer "carrier_type_id", :default => 1, :null => false
497
- t.integer "extent_id", :default => 1, :null => false
511
+ t.integer "language_id", default: 1, null: false
512
+ t.integer "carrier_type_id", default: 1, null: false
513
+ t.integer "extent_id", default: 1, null: false
498
514
  t.integer "start_page"
499
515
  t.integer "end_page"
500
516
  t.integer "height"
@@ -507,12 +523,12 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
507
523
  t.string "serial_number_string"
508
524
  t.integer "edition"
509
525
  t.text "note"
510
- t.boolean "repository_content", :default => false, :null => false
511
- t.integer "lock_version", :default => 0, :null => false
512
- t.integer "required_role_id", :default => 1, :null => false
513
- t.integer "required_score", :default => 0, :null => false
514
- t.integer "frequency_id", :default => 1, :null => false
515
- t.boolean "subscription_master", :default => false, :null => false
526
+ t.boolean "repository_content", default: false, null: false
527
+ t.integer "lock_version", default: 0, null: false
528
+ t.integer "required_role_id", default: 1, null: false
529
+ t.integer "required_score", default: 0, null: false
530
+ t.integer "frequency_id", default: 1, null: false
531
+ t.boolean "subscription_master", default: false, null: false
516
532
  t.string "attachment_file_name"
517
533
  t.string "attachment_content_type"
518
534
  t.integer "attachment_file_size"
@@ -530,7 +546,7 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
530
546
  t.integer "volume_number"
531
547
  t.integer "issue_number"
532
548
  t.integer "serial_number"
533
- t.integer "content_type_id", :default => 1
549
+ t.integer "content_type_id", default: 1
534
550
  t.integer "year_of_publication"
535
551
  t.text "attachment_meta"
536
552
  t.integer "month_of_publication"
@@ -541,41 +557,41 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
541
557
  t.text "publication_place"
542
558
  end
543
559
 
544
- add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
545
- add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
546
- add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
547
- add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
548
- add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
560
+ add_index "manifestations", ["access_address"], name: "index_manifestations_on_access_address"
561
+ add_index "manifestations", ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
562
+ add_index "manifestations", ["doi"], name: "index_manifestations_on_doi"
563
+ add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
564
+ add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
549
565
 
550
- create_table "medium_of_performances", :force => true do |t|
551
- t.string "name", :null => false
566
+ create_table "medium_of_performances", force: true do |t|
567
+ t.string "name", null: false
552
568
  t.text "display_name"
553
569
  t.text "note"
554
570
  t.integer "position"
555
- t.datetime "created_at", :null => false
556
- t.datetime "updated_at", :null => false
571
+ t.datetime "created_at"
572
+ t.datetime "updated_at"
557
573
  end
558
574
 
559
- create_table "owns", :force => true do |t|
560
- t.integer "agent_id", :null => false
561
- t.integer "item_id", :null => false
575
+ create_table "owns", force: true do |t|
576
+ t.integer "agent_id", null: false
577
+ t.integer "item_id", null: false
562
578
  t.integer "position"
563
- t.datetime "created_at", :null => false
564
- t.datetime "updated_at", :null => false
579
+ t.datetime "created_at"
580
+ t.datetime "updated_at"
565
581
  end
566
582
 
567
- add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
568
- add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
583
+ add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
584
+ add_index "owns", ["item_id"], name: "index_owns_on_item_id"
569
585
 
570
- create_table "picture_files", :force => true do |t|
586
+ create_table "picture_files", force: true do |t|
571
587
  t.integer "picture_attachable_id"
572
588
  t.string "picture_attachable_type"
573
589
  t.string "content_type"
574
590
  t.text "title"
575
591
  t.string "thumbnail"
576
592
  t.integer "position"
577
- t.datetime "created_at", :null => false
578
- t.datetime "updated_at", :null => false
593
+ t.datetime "created_at"
594
+ t.datetime "updated_at"
579
595
  t.string "picture_file_name"
580
596
  t.string "picture_content_type"
581
597
  t.integer "picture_file_size"
@@ -584,30 +600,30 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
584
600
  t.string "picture_fingerprint"
585
601
  end
586
602
 
587
- add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
603
+ add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
588
604
 
589
- create_table "produce_types", :force => true do |t|
605
+ create_table "produce_types", force: true do |t|
590
606
  t.string "name"
591
607
  t.text "display_name"
592
608
  t.text "note"
593
609
  t.integer "position"
594
- t.datetime "created_at", :null => false
595
- t.datetime "updated_at", :null => false
610
+ t.datetime "created_at"
611
+ t.datetime "updated_at"
596
612
  end
597
613
 
598
- create_table "produces", :force => true do |t|
599
- t.integer "agent_id", :null => false
600
- t.integer "manifestation_id", :null => false
614
+ create_table "produces", force: true do |t|
615
+ t.integer "agent_id", null: false
616
+ t.integer "manifestation_id", null: false
601
617
  t.integer "position"
602
- t.datetime "created_at", :null => false
603
- t.datetime "updated_at", :null => false
618
+ t.datetime "created_at"
619
+ t.datetime "updated_at"
604
620
  t.integer "produce_type_id"
605
621
  end
606
622
 
607
- add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
608
- add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
623
+ add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
624
+ add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
609
625
 
610
- create_table "profiles", :force => true do |t|
626
+ create_table "profiles", force: true do |t|
611
627
  t.integer "user_id"
612
628
  t.integer "user_group_id"
613
629
  t.integer "library_id"
@@ -617,89 +633,89 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
617
633
  t.text "note"
618
634
  t.text "keyword_list"
619
635
  t.integer "required_role_id"
620
- t.datetime "created_at", :null => false
621
- t.datetime "updated_at", :null => false
636
+ t.datetime "created_at"
637
+ t.datetime "updated_at"
622
638
  t.datetime "expired_at"
623
639
  end
624
640
 
625
- add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
626
- add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
641
+ add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
642
+ add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
627
643
 
628
- create_table "realize_types", :force => true do |t|
644
+ create_table "realize_types", force: true do |t|
629
645
  t.string "name"
630
646
  t.text "display_name"
631
647
  t.text "note"
632
648
  t.integer "position"
633
- t.datetime "created_at", :null => false
634
- t.datetime "updated_at", :null => false
649
+ t.datetime "created_at"
650
+ t.datetime "updated_at"
635
651
  end
636
652
 
637
- create_table "realizes", :force => true do |t|
638
- t.integer "agent_id", :null => false
639
- t.integer "expression_id", :null => false
653
+ create_table "realizes", force: true do |t|
654
+ t.integer "agent_id", null: false
655
+ t.integer "expression_id", null: false
640
656
  t.integer "position"
641
- t.datetime "created_at", :null => false
642
- t.datetime "updated_at", :null => false
657
+ t.datetime "created_at"
658
+ t.datetime "updated_at"
643
659
  t.integer "realize_type_id"
644
660
  end
645
661
 
646
- add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
647
- add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
662
+ add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
663
+ add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
648
664
 
649
- create_table "request_status_types", :force => true do |t|
650
- t.string "name", :null => false
665
+ create_table "request_status_types", force: true do |t|
666
+ t.string "name", null: false
651
667
  t.text "display_name"
652
668
  t.text "note"
653
669
  t.integer "position"
654
- t.datetime "created_at", :null => false
655
- t.datetime "updated_at", :null => false
670
+ t.datetime "created_at"
671
+ t.datetime "updated_at"
656
672
  end
657
673
 
658
- create_table "request_types", :force => true do |t|
659
- t.string "name", :null => false
674
+ create_table "request_types", force: true do |t|
675
+ t.string "name", null: false
660
676
  t.text "display_name"
661
677
  t.text "note"
662
678
  t.integer "position"
663
- t.datetime "created_at", :null => false
664
- t.datetime "updated_at", :null => false
679
+ t.datetime "created_at"
680
+ t.datetime "updated_at"
665
681
  end
666
682
 
667
- create_table "resource_export_file_transitions", :force => true do |t|
683
+ create_table "resource_export_file_transitions", force: true do |t|
668
684
  t.string "to_state"
669
- t.text "metadata", :default => "{}"
685
+ t.text "metadata", default: "{}"
670
686
  t.integer "sort_key"
671
687
  t.integer "resource_export_file_id"
672
- t.datetime "created_at", :null => false
673
- t.datetime "updated_at", :null => false
688
+ t.datetime "created_at"
689
+ t.datetime "updated_at"
674
690
  end
675
691
 
676
- add_index "resource_export_file_transitions", ["resource_export_file_id"], :name => "index_resource_export_file_transitions_on_file_id"
677
- add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], :name => "index_resource_export_file_transitions_on_sort_key_and_file_id", :unique => true
692
+ add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
693
+ add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
678
694
 
679
- create_table "resource_export_files", :force => true do |t|
695
+ create_table "resource_export_files", force: true do |t|
680
696
  t.integer "user_id"
681
697
  t.string "resource_export_file_name"
682
698
  t.string "resource_export_content_type"
683
699
  t.integer "resource_export_file_size"
684
700
  t.datetime "resource_export_updated_at"
685
701
  t.datetime "executed_at"
686
- t.datetime "created_at", :null => false
687
- t.datetime "updated_at", :null => false
702
+ t.datetime "created_at"
703
+ t.datetime "updated_at"
688
704
  end
689
705
 
690
- create_table "resource_import_file_transitions", :force => true do |t|
706
+ create_table "resource_import_file_transitions", force: true do |t|
691
707
  t.string "to_state"
692
- t.text "metadata", :default => "{}"
708
+ t.text "metadata", default: "{}"
693
709
  t.integer "sort_key"
694
710
  t.integer "resource_import_file_id"
695
- t.datetime "created_at", :null => false
696
- t.datetime "updated_at", :null => false
711
+ t.datetime "created_at"
712
+ t.datetime "updated_at"
697
713
  end
698
714
 
699
- add_index "resource_import_file_transitions", ["resource_import_file_id"], :name => "index_resource_import_file_transitions_on_file_id"
700
- add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], :name => "index_resource_import_file_transitions_on_sort_key_and_file_id", :unique => true
715
+ add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
716
+ add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
701
717
 
702
- create_table "resource_import_files", :force => true do |t|
718
+ create_table "resource_import_files", force: true do |t|
703
719
  t.integer "parent_id"
704
720
  t.string "content_type"
705
721
  t.integer "size"
@@ -710,8 +726,8 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
710
726
  t.string "resource_import_content_type"
711
727
  t.integer "resource_import_file_size"
712
728
  t.datetime "resource_import_updated_at"
713
- t.datetime "created_at", :null => false
714
- t.datetime "updated_at", :null => false
729
+ t.datetime "created_at"
730
+ t.datetime "updated_at"
715
731
  t.string "edit_mode"
716
732
  t.string "resource_import_fingerprint"
717
733
  t.text "error_message"
@@ -719,70 +735,70 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
719
735
  t.integer "default_shelf_id"
720
736
  end
721
737
 
722
- add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
723
- add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
738
+ add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
739
+ add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
724
740
 
725
- create_table "resource_import_results", :force => true do |t|
741
+ create_table "resource_import_results", force: true do |t|
726
742
  t.integer "resource_import_file_id"
727
743
  t.integer "manifestation_id"
728
744
  t.integer "item_id"
729
745
  t.text "body"
730
- t.datetime "created_at", :null => false
731
- t.datetime "updated_at", :null => false
746
+ t.datetime "created_at"
747
+ t.datetime "updated_at"
732
748
  end
733
749
 
734
- add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
735
- add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
736
- add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
750
+ add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
751
+ add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
752
+ add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
737
753
 
738
- create_table "roles", :force => true do |t|
739
- t.string "name", :null => false
754
+ create_table "roles", force: true do |t|
755
+ t.string "name", null: false
740
756
  t.string "display_name"
741
757
  t.text "note"
742
758
  t.datetime "created_at"
743
759
  t.datetime "updated_at"
744
- t.integer "score", :default => 0, :null => false
760
+ t.integer "score", default: 0, null: false
745
761
  t.integer "position"
746
762
  end
747
763
 
748
- create_table "search_engines", :force => true do |t|
749
- t.string "name", :null => false
764
+ create_table "search_engines", force: true do |t|
765
+ t.string "name", null: false
750
766
  t.text "display_name"
751
- t.string "url", :null => false
752
- t.text "base_url", :null => false
753
- t.text "http_method", :null => false
754
- t.text "query_param", :null => false
767
+ t.string "url", null: false
768
+ t.text "base_url", null: false
769
+ t.text "http_method", null: false
770
+ t.text "query_param", null: false
755
771
  t.text "additional_param"
756
772
  t.text "note"
757
773
  t.integer "position"
758
- t.datetime "created_at", :null => false
759
- t.datetime "updated_at", :null => false
774
+ t.datetime "created_at"
775
+ t.datetime "updated_at"
760
776
  end
761
777
 
762
- create_table "series_statement_merge_lists", :force => true do |t|
778
+ create_table "series_statement_merge_lists", force: true do |t|
763
779
  t.string "title"
764
- t.datetime "created_at", :null => false
765
- t.datetime "updated_at", :null => false
780
+ t.datetime "created_at"
781
+ t.datetime "updated_at"
766
782
  end
767
783
 
768
- create_table "series_statement_merges", :force => true do |t|
769
- t.integer "series_statement_id", :null => false
770
- t.integer "series_statement_merge_list_id", :null => false
771
- t.datetime "created_at", :null => false
772
- t.datetime "updated_at", :null => false
784
+ create_table "series_statement_merges", force: true do |t|
785
+ t.integer "series_statement_id", null: false
786
+ t.integer "series_statement_merge_list_id", null: false
787
+ t.datetime "created_at"
788
+ t.datetime "updated_at"
773
789
  end
774
790
 
775
- add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
776
- add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
791
+ add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
792
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
777
793
 
778
- create_table "series_statements", :force => true do |t|
794
+ create_table "series_statements", force: true do |t|
779
795
  t.text "original_title"
780
796
  t.text "numbering"
781
797
  t.text "title_subseries"
782
798
  t.text "numbering_subseries"
783
799
  t.integer "position"
784
- t.datetime "created_at", :null => false
785
- t.datetime "updated_at", :null => false
800
+ t.datetime "created_at"
801
+ t.datetime "updated_at"
786
802
  t.text "title_transcription"
787
803
  t.text "title_alternative"
788
804
  t.string "series_statement_identifier"
@@ -796,53 +812,53 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
796
812
  t.integer "root_manifestation_id"
797
813
  end
798
814
 
799
- add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
800
- add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_root_manifestation_id"
801
- add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
815
+ add_index "series_statements", ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
816
+ add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
817
+ add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
802
818
 
803
- create_table "shelves", :force => true do |t|
804
- t.string "name", :null => false
819
+ create_table "shelves", force: true do |t|
820
+ t.string "name", null: false
805
821
  t.text "display_name"
806
822
  t.text "note"
807
- t.integer "library_id", :default => 1, :null => false
808
- t.integer "items_count", :default => 0, :null => false
823
+ t.integer "library_id", default: 1, null: false
824
+ t.integer "items_count", default: 0, null: false
809
825
  t.integer "position"
810
- t.datetime "created_at", :null => false
811
- t.datetime "updated_at", :null => false
826
+ t.datetime "created_at"
827
+ t.datetime "updated_at"
812
828
  t.datetime "deleted_at"
813
- t.boolean "closed", :default => false, :null => false
829
+ t.boolean "closed", default: false, null: false
814
830
  end
815
831
 
816
- add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
832
+ add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
817
833
 
818
- create_table "subject_heading_types", :force => true do |t|
819
- t.string "name", :null => false
834
+ create_table "subject_heading_types", force: true do |t|
835
+ t.string "name", null: false
820
836
  t.text "display_name"
821
837
  t.text "note"
822
838
  t.integer "position"
823
- t.datetime "created_at", :null => false
824
- t.datetime "updated_at", :null => false
839
+ t.datetime "created_at"
840
+ t.datetime "updated_at"
825
841
  end
826
842
 
827
- create_table "subject_types", :force => true do |t|
828
- t.string "name", :null => false
843
+ create_table "subject_types", force: true do |t|
844
+ t.string "name", null: false
829
845
  t.text "display_name"
830
846
  t.text "note"
831
847
  t.integer "position"
832
- t.datetime "created_at", :null => false
833
- t.datetime "updated_at", :null => false
848
+ t.datetime "created_at"
849
+ t.datetime "updated_at"
834
850
  end
835
851
 
836
- create_table "subjects", :force => true do |t|
852
+ create_table "subjects", force: true do |t|
837
853
  t.integer "parent_id"
838
854
  t.integer "use_term_id"
839
855
  t.string "term"
840
856
  t.text "term_transcription"
841
- t.integer "subject_type_id", :null => false
857
+ t.integer "subject_type_id", null: false
842
858
  t.text "scope_note"
843
859
  t.text "note"
844
- t.integer "required_role_id", :default => 1, :null => false
845
- t.integer "lock_version", :default => 0, :null => false
860
+ t.integer "required_role_id", default: 1, null: false
861
+ t.integer "lock_version", default: 0, null: false
846
862
  t.datetime "created_at"
847
863
  t.datetime "updated_at"
848
864
  t.datetime "deleted_at"
@@ -851,97 +867,97 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
851
867
  t.integer "subject_heading_type_id"
852
868
  end
853
869
 
854
- add_index "subjects", ["manifestation_id"], :name => "index_subjects_on_manifestation_id"
855
- add_index "subjects", ["parent_id"], :name => "index_subjects_on_parent_id"
856
- add_index "subjects", ["required_role_id"], :name => "index_subjects_on_required_role_id"
857
- add_index "subjects", ["subject_type_id"], :name => "index_subjects_on_subject_type_id"
858
- add_index "subjects", ["term"], :name => "index_subjects_on_term"
859
- add_index "subjects", ["use_term_id"], :name => "index_subjects_on_use_term_id"
870
+ add_index "subjects", ["manifestation_id"], name: "index_subjects_on_manifestation_id"
871
+ add_index "subjects", ["parent_id"], name: "index_subjects_on_parent_id"
872
+ add_index "subjects", ["required_role_id"], name: "index_subjects_on_required_role_id"
873
+ add_index "subjects", ["subject_type_id"], name: "index_subjects_on_subject_type_id"
874
+ add_index "subjects", ["term"], name: "index_subjects_on_term"
875
+ add_index "subjects", ["use_term_id"], name: "index_subjects_on_use_term_id"
860
876
 
861
- create_table "subscribes", :force => true do |t|
862
- t.integer "subscription_id", :null => false
863
- t.integer "work_id", :null => false
864
- t.datetime "start_at", :null => false
865
- t.datetime "end_at", :null => false
866
- t.datetime "created_at", :null => false
867
- t.datetime "updated_at", :null => false
877
+ create_table "subscribes", force: true do |t|
878
+ t.integer "subscription_id", null: false
879
+ t.integer "work_id", null: false
880
+ t.datetime "start_at", null: false
881
+ t.datetime "end_at", null: false
882
+ t.datetime "created_at"
883
+ t.datetime "updated_at"
868
884
  end
869
885
 
870
- add_index "subscribes", ["subscription_id"], :name => "index_subscribes_on_subscription_id"
871
- add_index "subscribes", ["work_id"], :name => "index_subscribes_on_work_id"
886
+ add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
887
+ add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
872
888
 
873
- create_table "subscriptions", :force => true do |t|
874
- t.text "title", :null => false
889
+ create_table "subscriptions", force: true do |t|
890
+ t.text "title", null: false
875
891
  t.text "note"
876
892
  t.integer "user_id"
877
893
  t.integer "order_list_id"
878
894
  t.datetime "deleted_at"
879
- t.integer "subscribes_count", :default => 0, :null => false
880
- t.datetime "created_at", :null => false
881
- t.datetime "updated_at", :null => false
895
+ t.integer "subscribes_count", default: 0, null: false
896
+ t.datetime "created_at"
897
+ t.datetime "updated_at"
882
898
  end
883
899
 
884
- add_index "subscriptions", ["order_list_id"], :name => "index_subscriptions_on_order_list_id"
885
- add_index "subscriptions", ["user_id"], :name => "index_subscriptions_on_user_id"
900
+ add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
901
+ add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
886
902
 
887
- create_table "user_export_file_transitions", :force => true do |t|
903
+ create_table "user_export_file_transitions", force: true do |t|
888
904
  t.string "to_state"
889
- t.text "metadata", :default => "{}"
905
+ t.text "metadata", default: "{}"
890
906
  t.integer "sort_key"
891
907
  t.integer "user_export_file_id"
892
- t.datetime "created_at", :null => false
893
- t.datetime "updated_at", :null => false
908
+ t.datetime "created_at"
909
+ t.datetime "updated_at"
894
910
  end
895
911
 
896
- add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], :name => "index_user_export_file_transitions_on_sort_key_and_file_id", :unique => true
897
- add_index "user_export_file_transitions", ["user_export_file_id"], :name => "index_user_export_file_transitions_on_file_id"
912
+ add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
913
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
898
914
 
899
- create_table "user_export_files", :force => true do |t|
915
+ create_table "user_export_files", force: true do |t|
900
916
  t.integer "user_id"
901
917
  t.string "user_export_file_name"
902
918
  t.string "user_export_content_type"
903
919
  t.integer "user_export_file_size"
904
920
  t.datetime "user_export_updated_at"
905
921
  t.datetime "executed_at"
906
- t.datetime "created_at", :null => false
907
- t.datetime "updated_at", :null => false
922
+ t.datetime "created_at"
923
+ t.datetime "updated_at"
908
924
  end
909
925
 
910
- create_table "user_groups", :force => true do |t|
926
+ create_table "user_groups", force: true do |t|
911
927
  t.string "name"
912
928
  t.text "display_name"
913
929
  t.text "note"
914
930
  t.integer "position"
915
- t.datetime "created_at", :null => false
916
- t.datetime "updated_at", :null => false
931
+ t.datetime "created_at"
932
+ t.datetime "updated_at"
917
933
  t.datetime "deleted_at"
918
- t.integer "valid_period_for_new_user", :default => 0, :null => false
934
+ t.integer "valid_period_for_new_user", default: 0, null: false
919
935
  t.datetime "expired_at"
920
936
  end
921
937
 
922
- create_table "user_has_roles", :force => true do |t|
938
+ create_table "user_has_roles", force: true do |t|
923
939
  t.integer "user_id"
924
940
  t.integer "role_id"
925
- t.datetime "created_at", :null => false
926
- t.datetime "updated_at", :null => false
941
+ t.datetime "created_at"
942
+ t.datetime "updated_at"
927
943
  end
928
944
 
929
- add_index "user_has_roles", ["role_id"], :name => "index_user_has_roles_on_role_id"
930
- add_index "user_has_roles", ["user_id"], :name => "index_user_has_roles_on_user_id"
945
+ add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
946
+ add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
931
947
 
932
- create_table "user_import_file_transitions", :force => true do |t|
948
+ create_table "user_import_file_transitions", force: true do |t|
933
949
  t.string "to_state"
934
- t.text "metadata", :default => "{}"
950
+ t.text "metadata", default: "{}"
935
951
  t.integer "sort_key"
936
952
  t.integer "user_import_file_id"
937
- t.datetime "created_at", :null => false
938
- t.datetime "updated_at", :null => false
953
+ t.datetime "created_at"
954
+ t.datetime "updated_at"
939
955
  end
940
956
 
941
- add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], :name => "index_user_import_file_transitions_on_sort_key_and_file_id", :unique => true
942
- add_index "user_import_file_transitions", ["user_import_file_id"], :name => "index_user_import_file_transitions_on_user_import_file_id"
957
+ add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
958
+ add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
943
959
 
944
- create_table "user_import_files", :force => true do |t|
960
+ create_table "user_import_files", force: true do |t|
945
961
  t.integer "user_id"
946
962
  t.text "note"
947
963
  t.datetime "executed_at"
@@ -952,57 +968,57 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
952
968
  t.string "user_import_fingerprint"
953
969
  t.string "edit_mode"
954
970
  t.text "error_message"
955
- t.datetime "created_at", :null => false
956
- t.datetime "updated_at", :null => false
971
+ t.datetime "created_at"
972
+ t.datetime "updated_at"
957
973
  t.string "user_encoding"
958
974
  t.integer "default_library_id"
959
975
  t.integer "default_user_group_id"
960
976
  end
961
977
 
962
- create_table "user_import_results", :force => true do |t|
978
+ create_table "user_import_results", force: true do |t|
963
979
  t.integer "user_import_file_id"
964
980
  t.integer "user_id"
965
981
  t.text "body"
966
- t.datetime "created_at", :null => false
967
- t.datetime "updated_at", :null => false
982
+ t.datetime "created_at"
983
+ t.datetime "updated_at"
968
984
  end
969
985
 
970
- create_table "users", :force => true do |t|
971
- t.string "email", :default => "", :null => false
972
- t.string "encrypted_password", :default => "", :null => false
986
+ create_table "users", force: true do |t|
987
+ t.string "email", default: "", null: false
988
+ t.string "encrypted_password", default: "", null: false
973
989
  t.string "reset_password_token"
974
990
  t.datetime "reset_password_sent_at"
975
991
  t.datetime "remember_created_at"
976
- t.integer "sign_in_count", :default => 0
992
+ t.integer "sign_in_count", default: 0
977
993
  t.datetime "current_sign_in_at"
978
994
  t.datetime "last_sign_in_at"
979
995
  t.string "current_sign_in_ip"
980
996
  t.string "last_sign_in_ip"
981
- t.datetime "created_at", :null => false
982
- t.datetime "updated_at", :null => false
997
+ t.datetime "created_at"
998
+ t.datetime "updated_at"
983
999
  t.string "username"
984
1000
  t.datetime "deleted_at"
985
1001
  t.datetime "expired_at"
986
- t.integer "failed_attempts", :default => 0
1002
+ t.integer "failed_attempts", default: 0
987
1003
  t.string "unlock_token"
988
1004
  t.datetime "locked_at"
989
1005
  t.datetime "confirmed_at"
990
1006
  end
991
1007
 
992
- add_index "users", ["email"], :name => "index_users_on_email"
993
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
994
- add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
995
- add_index "users", ["username"], :name => "index_users_on_username", :unique => true
1008
+ add_index "users", ["email"], name: "index_users_on_email"
1009
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
1010
+ add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1011
+ add_index "users", ["username"], name: "index_users_on_username", unique: true
996
1012
 
997
- create_table "versions", :force => true do |t|
998
- t.string "item_type", :null => false
999
- t.integer "item_id", :null => false
1000
- t.string "event", :null => false
1013
+ create_table "versions", force: true do |t|
1014
+ t.string "item_type", null: false
1015
+ t.integer "item_id", null: false
1016
+ t.string "event", null: false
1001
1017
  t.string "whodunnit"
1002
1018
  t.text "object"
1003
1019
  t.datetime "created_at"
1004
1020
  end
1005
1021
 
1006
- add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
1022
+ add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1007
1023
 
1008
1024
  end