enju_ndl 0.1.0.pre33 → 0.1.0.pre34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/ndl_books_controller.rb +2 -2
  3. data/app/helpers/ndl_books_helper.rb +5 -5
  4. data/app/models/ndl_book.rb +8 -8
  5. data/lib/enju_ndl/engine.rb +1 -0
  6. data/lib/enju_ndl/ndl_search.rb +31 -31
  7. data/lib/enju_ndl/version.rb +1 -1
  8. data/spec/cassette_library/ImportRequest/should_import_isbn.yml +149 -153
  9. data/spec/cassette_library/Manifestation/should_imporrt_a_bibliographic_record.yml +698 -700
  10. data/spec/cassette_library/Manifestation/should_import_isbn.yml +154 -158
  11. data/spec/cassette_library/NdlBook/import/should_get_series_title.yml +29 -31
  12. data/spec/cassette_library/NdlBook/import/should_get_volume_number.yml +32 -34
  13. data/spec/cassette_library/NdlBook/import/should_import_audio_cd.yml +26 -28
  14. data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record.yml +147 -150
  15. data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record_that_does_not_have_any_classifications.yml +26 -28
  16. data/spec/cassette_library/NdlBook/import/should_import_publication_place.yml +39 -57
  17. data/spec/cassette_library/NdlBook/import/should_import_pud_date_is_nil.yml +27 -29
  18. data/spec/cassette_library/NdlBook/import/should_import_series_statement.yml +25 -27
  19. data/spec/cassette_library/NdlBook/import/{should_import_series_statement_if_the_resource_is_periodical.yml → should_import_series_statement_if_the_resource_is_serial.yml} +25 -27
  20. data/spec/cassette_library/NdlBook/import/should_import_title_alternative.yml +176 -180
  21. data/spec/cassette_library/NdlBook/import/should_import_url_contain_whitespace.yml +26 -28
  22. data/spec/cassette_library/NdlBook/import/should_import_video_dvd.yml +27 -29
  23. data/spec/cassette_library/NdlBook/import/should_import_volume_number_string.yml +26 -28
  24. data/spec/cassette_library/NdlBook/import/should_not_get_series_title_if_book_has_not_series_title.yml +30 -32
  25. data/spec/cassette_library/NdlBook/import/should_not_get_volume_number_if_book_has_not_volume.yml +29 -31
  26. data/spec/cassette_library/NdlBook/search/should_not_distinguish_double_byte_space_from_one-byte_space_in_a_query.yml +60 -64
  27. data/spec/cassette_library/NdlBook/search/should_search_bibliographic_record.yml +55 -59
  28. data/spec/cassette_library/NdlBooksController/GET_index/should_get_index.yml +163 -165
  29. data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_bibliographic_record_if_jpno_is_set.yml +26 -28
  30. data/spec/cassette_library/NdlBooksController/POST_create/should_not_create_a_bibliographic_record_if_jpno_is_not_set.yml +27 -29
  31. data/spec/cassette_library/Question/should_respond_to_search_crd.yml +313 -321
  32. data/spec/dummy/config/boot.rb +2 -2
  33. data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -1
  34. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  35. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  36. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
  37. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
  38. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  39. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  40. data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
  41. data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
  42. data/spec/dummy/db/schema.rb +591 -574
  43. data/spec/dummy/db/test.sqlite3 +0 -0
  44. data/spec/fixtures/agent_types.yml +3 -3
  45. data/spec/models/ndl_book_spec.rb +4 -4
  46. data/spec/spec_helper.rb +1 -1
  47. metadata +39 -13
@@ -9,23 +9,23 @@
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: 20140823095740) do
15
15
 
16
- create_table "agent_import_file_transitions", :force => true do |t|
16
+ create_table "agent_import_file_transitions", force: true do |t|
17
17
  t.string "to_state"
18
- t.text "metadata", :default => "{}"
18
+ t.text "metadata", default: "{}"
19
19
  t.integer "sort_key"
20
20
  t.integer "agent_import_file_id"
21
- t.datetime "created_at", :null => false
22
- t.datetime "updated_at", :null => false
21
+ t.datetime "created_at"
22
+ t.datetime "updated_at"
23
23
  end
24
24
 
25
- add_index "agent_import_file_transitions", ["agent_import_file_id"], :name => "index_agent_import_file_transitions_on_agent_import_file_id"
26
- 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
25
+ add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
26
+ 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
27
27
 
28
- create_table "agent_import_files", :force => true do |t|
28
+ create_table "agent_import_files", force: true do |t|
29
29
  t.integer "parent_id"
30
30
  t.string "content_type"
31
31
  t.integer "size"
@@ -36,57 +36,72 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
36
36
  t.string "agent_import_content_type"
37
37
  t.integer "agent_import_file_size"
38
38
  t.datetime "agent_import_updated_at"
39
- t.datetime "created_at", :null => false
40
- t.datetime "updated_at", :null => false
39
+ t.datetime "created_at"
40
+ t.datetime "updated_at"
41
41
  t.string "agent_import_fingerprint"
42
42
  t.text "error_message"
43
43
  t.string "edit_mode"
44
44
  t.string "user_encoding"
45
45
  end
46
46
 
47
- add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
48
- add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
47
+ add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
48
+ add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
49
49
 
50
- create_table "agent_import_results", :force => true do |t|
50
+ create_table "agent_import_results", force: true do |t|
51
51
  t.integer "agent_import_file_id"
52
52
  t.integer "agent_id"
53
- t.integer "user_id"
54
53
  t.text "body"
55
- t.datetime "created_at", :null => false
56
- t.datetime "updated_at", :null => false
54
+ t.datetime "created_at"
55
+ t.datetime "updated_at"
56
+ end
57
+
58
+ create_table "agent_merge_lists", force: true do |t|
59
+ t.string "title"
60
+ t.datetime "created_at"
61
+ t.datetime "updated_at"
57
62
  end
58
63
 
59
- create_table "agent_relationship_types", :force => true do |t|
60
- t.string "name", :null => false
64
+ create_table "agent_merges", force: true do |t|
65
+ t.integer "agent_id", null: false
66
+ t.integer "agent_merge_list_id", null: false
67
+ t.datetime "created_at"
68
+ t.datetime "updated_at"
69
+ end
70
+
71
+ add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
72
+ add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
73
+
74
+ create_table "agent_relationship_types", force: true do |t|
75
+ t.string "name", null: false
61
76
  t.text "display_name"
62
77
  t.text "note"
63
78
  t.integer "position"
64
- t.datetime "created_at", :null => false
65
- t.datetime "updated_at", :null => false
79
+ t.datetime "created_at"
80
+ t.datetime "updated_at"
66
81
  end
67
82
 
68
- create_table "agent_relationships", :force => true do |t|
83
+ create_table "agent_relationships", force: true do |t|
69
84
  t.integer "parent_id"
70
85
  t.integer "child_id"
71
86
  t.integer "agent_relationship_type_id"
72
- t.datetime "created_at", :null => false
73
- t.datetime "updated_at", :null => false
87
+ t.datetime "created_at"
88
+ t.datetime "updated_at"
74
89
  t.integer "position"
75
90
  end
76
91
 
77
- add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
78
- add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
92
+ add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
93
+ add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
79
94
 
80
- create_table "agent_types", :force => true do |t|
81
- t.string "name", :null => false
95
+ create_table "agent_types", force: true do |t|
96
+ t.string "name", null: false
82
97
  t.text "display_name"
83
98
  t.text "note"
84
99
  t.integer "position"
85
- t.datetime "created_at", :null => false
86
- t.datetime "updated_at", :null => false
100
+ t.datetime "created_at"
101
+ t.datetime "updated_at"
87
102
  end
88
103
 
89
- create_table "agents", :force => true do |t|
104
+ create_table "agents", force: true do |t|
90
105
  t.string "last_name"
91
106
  t.string "middle_name"
92
107
  t.string "first_name"
@@ -98,8 +113,8 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
98
113
  t.string "full_name"
99
114
  t.text "full_name_transcription"
100
115
  t.text "full_name_alternative"
101
- t.datetime "created_at", :null => false
102
- t.datetime "updated_at", :null => false
116
+ t.datetime "created_at"
117
+ t.datetime "updated_at"
103
118
  t.datetime "deleted_at"
104
119
  t.string "zip_code_1"
105
120
  t.string "zip_code_2"
@@ -119,13 +134,13 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
119
134
  t.text "region"
120
135
  t.datetime "date_of_birth"
121
136
  t.datetime "date_of_death"
122
- t.integer "language_id", :default => 1, :null => false
123
- t.integer "country_id", :default => 1, :null => false
124
- t.integer "agent_type_id", :default => 1, :null => false
125
- t.integer "lock_version", :default => 0, :null => false
137
+ t.integer "language_id", default: 1, null: false
138
+ t.integer "country_id", default: 1, null: false
139
+ t.integer "agent_type_id", default: 1, null: false
140
+ t.integer "lock_version", default: 0, null: false
126
141
  t.text "note"
127
- t.integer "required_role_id", :default => 1, :null => false
128
- t.integer "required_score", :default => 0, :null => false
142
+ t.integer "required_role_id", default: 1, null: false
143
+ t.integer "required_score", default: 0, null: false
129
144
  t.text "email"
130
145
  t.text "url"
131
146
  t.text "full_name_alternative_transcription"
@@ -134,157 +149,157 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
134
149
  t.string "agent_identifier"
135
150
  end
136
151
 
137
- add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
138
- add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
139
- add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
140
- add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
141
- add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
152
+ add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
153
+ add_index "agents", ["country_id"], name: "index_agents_on_country_id"
154
+ add_index "agents", ["full_name"], name: "index_agents_on_full_name"
155
+ add_index "agents", ["language_id"], name: "index_agents_on_language_id"
156
+ add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
142
157
 
143
- create_table "carrier_type_has_checkout_types", :force => true do |t|
144
- t.integer "carrier_type_id", :null => false
145
- t.integer "checkout_type_id", :null => false
158
+ create_table "carrier_type_has_checkout_types", force: true do |t|
159
+ t.integer "carrier_type_id", null: false
160
+ t.integer "checkout_type_id", null: false
146
161
  t.text "note"
147
162
  t.integer "position"
148
- t.datetime "created_at", :null => false
149
- t.datetime "updated_at", :null => false
163
+ t.datetime "created_at"
164
+ t.datetime "updated_at"
150
165
  end
151
166
 
152
- add_index "carrier_type_has_checkout_types", ["carrier_type_id"], :name => "index_carrier_type_has_checkout_types_on_m_form_id"
153
- add_index "carrier_type_has_checkout_types", ["checkout_type_id"], :name => "index_carrier_type_has_checkout_types_on_checkout_type_id"
167
+ add_index "carrier_type_has_checkout_types", ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
168
+ add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
154
169
 
155
- create_table "carrier_types", :force => true do |t|
156
- t.string "name", :null => false
170
+ create_table "carrier_types", force: true do |t|
171
+ t.string "name", null: false
157
172
  t.text "display_name"
158
173
  t.text "note"
159
174
  t.integer "position"
160
- t.datetime "created_at", :null => false
161
- t.datetime "updated_at", :null => false
175
+ t.datetime "created_at"
176
+ t.datetime "updated_at"
162
177
  end
163
178
 
164
- create_table "checked_items", :force => true do |t|
165
- t.integer "item_id", :null => false
166
- t.integer "basket_id", :null => false
167
- t.datetime "due_date", :null => false
168
- t.datetime "created_at", :null => false
169
- t.datetime "updated_at", :null => false
179
+ create_table "checked_items", force: true do |t|
180
+ t.integer "item_id", null: false
181
+ t.integer "basket_id", null: false
182
+ t.datetime "due_date", null: false
183
+ t.datetime "created_at"
184
+ t.datetime "updated_at"
170
185
  t.integer "librarian_id"
171
186
  end
172
187
 
173
- add_index "checked_items", ["basket_id"], :name => "index_checked_items_on_basket_id"
174
- add_index "checked_items", ["item_id"], :name => "index_checked_items_on_item_id"
188
+ add_index "checked_items", ["basket_id"], name: "index_checked_items_on_basket_id"
189
+ add_index "checked_items", ["item_id"], name: "index_checked_items_on_item_id"
175
190
 
176
- create_table "checkins", :force => true do |t|
177
- t.integer "item_id", :null => false
191
+ create_table "checkins", force: true do |t|
192
+ t.integer "item_id", null: false
178
193
  t.integer "librarian_id"
179
194
  t.integer "basket_id"
180
- t.datetime "created_at", :null => false
181
- t.datetime "updated_at", :null => false
182
- t.integer "lock_version", :default => 0, :null => false
195
+ t.datetime "created_at"
196
+ t.datetime "updated_at"
197
+ t.integer "lock_version", default: 0, null: false
183
198
  end
184
199
 
185
- add_index "checkins", ["basket_id"], :name => "index_checkins_on_basket_id"
186
- add_index "checkins", ["item_id"], :name => "index_checkins_on_item_id"
187
- add_index "checkins", ["librarian_id"], :name => "index_checkins_on_librarian_id"
200
+ add_index "checkins", ["basket_id"], name: "index_checkins_on_basket_id"
201
+ add_index "checkins", ["item_id"], name: "index_checkins_on_item_id"
202
+ add_index "checkins", ["librarian_id"], name: "index_checkins_on_librarian_id"
188
203
 
189
- create_table "checkout_stat_has_manifestations", :force => true do |t|
190
- t.integer "manifestation_checkout_stat_id", :null => false
191
- t.integer "manifestation_id", :null => false
204
+ create_table "checkout_stat_has_manifestations", force: true do |t|
205
+ t.integer "manifestation_checkout_stat_id", null: false
206
+ t.integer "manifestation_id", null: false
192
207
  t.integer "checkouts_count"
193
- t.datetime "created_at", :null => false
194
- t.datetime "updated_at", :null => false
208
+ t.datetime "created_at"
209
+ t.datetime "updated_at"
195
210
  end
196
211
 
197
- add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], :name => "index_checkout_stat_has_manifestations_on_checkout_stat_id"
198
- add_index "checkout_stat_has_manifestations", ["manifestation_id"], :name => "index_checkout_stat_has_manifestations_on_manifestation_id"
212
+ add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], name: "index_checkout_stat_has_manifestations_on_checkout_stat_id"
213
+ add_index "checkout_stat_has_manifestations", ["manifestation_id"], name: "index_checkout_stat_has_manifestations_on_manifestation_id"
199
214
 
200
- create_table "checkout_stat_has_users", :force => true do |t|
201
- t.integer "user_checkout_stat_id", :null => false
202
- t.integer "user_id", :null => false
203
- t.integer "checkouts_count", :default => 0, :null => false
204
- t.datetime "created_at", :null => false
205
- t.datetime "updated_at", :null => false
215
+ create_table "checkout_stat_has_users", force: true do |t|
216
+ t.integer "user_checkout_stat_id", null: false
217
+ t.integer "user_id", null: false
218
+ t.integer "checkouts_count", default: 0, null: false
219
+ t.datetime "created_at"
220
+ t.datetime "updated_at"
206
221
  end
207
222
 
208
- add_index "checkout_stat_has_users", ["user_checkout_stat_id"], :name => "index_checkout_stat_has_users_on_user_checkout_stat_id"
209
- add_index "checkout_stat_has_users", ["user_id"], :name => "index_checkout_stat_has_users_on_user_id"
223
+ add_index "checkout_stat_has_users", ["user_checkout_stat_id"], name: "index_checkout_stat_has_users_on_user_checkout_stat_id"
224
+ add_index "checkout_stat_has_users", ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
210
225
 
211
- create_table "checkout_types", :force => true do |t|
212
- t.string "name", :null => false
226
+ create_table "checkout_types", force: true do |t|
227
+ t.string "name", null: false
213
228
  t.text "display_name"
214
229
  t.text "note"
215
230
  t.integer "position"
216
- t.datetime "created_at", :null => false
217
- t.datetime "updated_at", :null => false
231
+ t.datetime "created_at"
232
+ t.datetime "updated_at"
218
233
  end
219
234
 
220
- add_index "checkout_types", ["name"], :name => "index_checkout_types_on_name"
235
+ add_index "checkout_types", ["name"], name: "index_checkout_types_on_name"
221
236
 
222
- create_table "checkouts", :force => true do |t|
237
+ create_table "checkouts", force: true do |t|
223
238
  t.integer "user_id"
224
- t.integer "item_id", :null => false
239
+ t.integer "item_id", null: false
225
240
  t.integer "checkin_id"
226
241
  t.integer "librarian_id"
227
242
  t.integer "basket_id"
228
243
  t.datetime "due_date"
229
- t.integer "checkout_renewal_count", :default => 0, :null => false
230
- t.integer "lock_version", :default => 0, :null => false
231
- t.datetime "created_at", :null => false
232
- t.datetime "updated_at", :null => false
244
+ t.integer "checkout_renewal_count", default: 0, null: false
245
+ t.integer "lock_version", default: 0, null: false
246
+ t.datetime "created_at"
247
+ t.datetime "updated_at"
233
248
  end
234
249
 
235
- add_index "checkouts", ["basket_id"], :name => "index_checkouts_on_basket_id"
236
- add_index "checkouts", ["checkin_id"], :name => "index_checkouts_on_checkin_id"
237
- add_index "checkouts", ["item_id", "basket_id"], :name => "index_checkouts_on_item_id_and_basket_id", :unique => true
238
- add_index "checkouts", ["item_id"], :name => "index_checkouts_on_item_id"
239
- add_index "checkouts", ["librarian_id"], :name => "index_checkouts_on_librarian_id"
240
- add_index "checkouts", ["user_id"], :name => "index_checkouts_on_user_id"
250
+ add_index "checkouts", ["basket_id"], name: "index_checkouts_on_basket_id"
251
+ add_index "checkouts", ["checkin_id"], name: "index_checkouts_on_checkin_id"
252
+ add_index "checkouts", ["item_id", "basket_id"], name: "index_checkouts_on_item_id_and_basket_id", unique: true
253
+ add_index "checkouts", ["item_id"], name: "index_checkouts_on_item_id"
254
+ add_index "checkouts", ["librarian_id"], name: "index_checkouts_on_librarian_id"
255
+ add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
241
256
 
242
- create_table "circulation_statuses", :force => true do |t|
243
- t.string "name", :null => false
257
+ create_table "circulation_statuses", force: true do |t|
258
+ t.string "name", null: false
244
259
  t.text "display_name"
245
260
  t.text "note"
246
261
  t.integer "position"
247
- t.datetime "created_at", :null => false
248
- t.datetime "updated_at", :null => false
262
+ t.datetime "created_at"
263
+ t.datetime "updated_at"
249
264
  end
250
265
 
251
- create_table "classification_types", :force => true do |t|
252
- t.string "name", :null => false
266
+ create_table "classification_types", force: true do |t|
267
+ t.string "name", null: false
253
268
  t.text "display_name"
254
269
  t.text "note"
255
270
  t.integer "position"
256
- t.datetime "created_at", :null => false
257
- t.datetime "updated_at", :null => false
271
+ t.datetime "created_at"
272
+ t.datetime "updated_at"
258
273
  end
259
274
 
260
- create_table "classifications", :force => true do |t|
275
+ create_table "classifications", force: true do |t|
261
276
  t.integer "parent_id"
262
- t.string "category", :null => false
277
+ t.string "category", null: false
263
278
  t.text "note"
264
- t.integer "classification_type_id", :null => false
265
- t.datetime "created_at", :null => false
266
- t.datetime "updated_at", :null => false
279
+ t.integer "classification_type_id", null: false
280
+ t.datetime "created_at"
281
+ t.datetime "updated_at"
267
282
  t.integer "lft"
268
283
  t.integer "rgt"
269
284
  t.integer "manifestation_id"
270
285
  end
271
286
 
272
- add_index "classifications", ["category"], :name => "index_classifications_on_category"
273
- add_index "classifications", ["classification_type_id"], :name => "index_classifications_on_classification_type_id"
274
- add_index "classifications", ["manifestation_id"], :name => "index_classifications_on_manifestation_id"
275
- add_index "classifications", ["parent_id"], :name => "index_classifications_on_parent_id"
287
+ add_index "classifications", ["category"], name: "index_classifications_on_category"
288
+ add_index "classifications", ["classification_type_id"], name: "index_classifications_on_classification_type_id"
289
+ add_index "classifications", ["manifestation_id"], name: "index_classifications_on_manifestation_id"
290
+ add_index "classifications", ["parent_id"], name: "index_classifications_on_parent_id"
276
291
 
277
- create_table "content_types", :force => true do |t|
278
- t.string "name", :null => false
292
+ create_table "content_types", force: true do |t|
293
+ t.string "name", null: false
279
294
  t.text "display_name"
280
295
  t.text "note"
281
296
  t.integer "position"
282
- t.datetime "created_at", :null => false
283
- t.datetime "updated_at", :null => false
297
+ t.datetime "created_at"
298
+ t.datetime "updated_at"
284
299
  end
285
300
 
286
- create_table "countries", :force => true do |t|
287
- t.string "name", :null => false
301
+ create_table "countries", force: true do |t|
302
+ t.string "name", null: false
288
303
  t.text "display_name"
289
304
  t.string "alpha_2"
290
305
  t.string "alpha_3"
@@ -293,64 +308,64 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
293
308
  t.integer "position"
294
309
  end
295
310
 
296
- add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
297
- add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
298
- add_index "countries", ["name"], :name => "index_countries_on_name"
299
- add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
311
+ add_index "countries", ["alpha_2"], name: "index_countries_on_alpha_2"
312
+ add_index "countries", ["alpha_3"], name: "index_countries_on_alpha_3"
313
+ add_index "countries", ["name"], name: "index_countries_on_name"
314
+ add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
300
315
 
301
- create_table "create_types", :force => true do |t|
316
+ create_table "create_types", force: true do |t|
302
317
  t.string "name"
303
318
  t.text "display_name"
304
319
  t.text "note"
305
320
  t.integer "position"
306
- t.datetime "created_at", :null => false
307
- t.datetime "updated_at", :null => false
321
+ t.datetime "created_at"
322
+ t.datetime "updated_at"
308
323
  end
309
324
 
310
- create_table "creates", :force => true do |t|
311
- t.integer "agent_id", :null => false
312
- t.integer "work_id", :null => false
325
+ create_table "creates", force: true do |t|
326
+ t.integer "agent_id", null: false
327
+ t.integer "work_id", null: false
313
328
  t.integer "position"
314
- t.datetime "created_at", :null => false
315
- t.datetime "updated_at", :null => false
329
+ t.datetime "created_at"
330
+ t.datetime "updated_at"
316
331
  t.integer "create_type_id"
317
332
  end
318
333
 
319
- add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
320
- add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
334
+ add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
335
+ add_index "creates", ["work_id"], name: "index_creates_on_work_id"
321
336
 
322
- create_table "donates", :force => true do |t|
323
- t.integer "agent_id", :null => false
324
- t.integer "item_id", :null => false
325
- t.datetime "created_at", :null => false
326
- t.datetime "updated_at", :null => false
337
+ create_table "donates", force: true do |t|
338
+ t.integer "agent_id", null: false
339
+ t.integer "item_id", null: false
340
+ t.datetime "created_at"
341
+ t.datetime "updated_at"
327
342
  end
328
343
 
329
- add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
330
- add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
344
+ add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
345
+ add_index "donates", ["item_id"], name: "index_donates_on_item_id"
331
346
 
332
- create_table "event_categories", :force => true do |t|
333
- t.string "name", :null => false
347
+ create_table "event_categories", force: true do |t|
348
+ t.string "name", null: false
334
349
  t.text "display_name"
335
350
  t.text "note"
336
351
  t.integer "position"
337
- t.datetime "created_at", :null => false
338
- t.datetime "updated_at", :null => false
352
+ t.datetime "created_at"
353
+ t.datetime "updated_at"
339
354
  end
340
355
 
341
- create_table "event_import_file_transitions", :force => true do |t|
356
+ create_table "event_import_file_transitions", force: true do |t|
342
357
  t.string "to_state"
343
- t.text "metadata", :default => "{}"
358
+ t.text "metadata", default: "{}"
344
359
  t.integer "sort_key"
345
360
  t.integer "event_import_file_id"
346
- t.datetime "created_at", :null => false
347
- t.datetime "updated_at", :null => false
361
+ t.datetime "created_at"
362
+ t.datetime "updated_at"
348
363
  end
349
364
 
350
- add_index "event_import_file_transitions", ["event_import_file_id"], :name => "index_event_import_file_transitions_on_event_import_file_id"
351
- add_index "event_import_file_transitions", ["sort_key", "event_import_file_id"], :name => "index_event_import_file_transitions_on_sort_key_and_file_id", :unique => true
365
+ add_index "event_import_file_transitions", ["event_import_file_id"], name: "index_event_import_file_transitions_on_event_import_file_id"
366
+ add_index "event_import_file_transitions", ["sort_key", "event_import_file_id"], name: "index_event_import_file_transitions_on_sort_key_and_file_id", unique: true
352
367
 
353
- create_table "event_import_files", :force => true do |t|
368
+ create_table "event_import_files", force: true do |t|
354
369
  t.integer "parent_id"
355
370
  t.string "content_type"
356
371
  t.integer "size"
@@ -362,172 +377,172 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
362
377
  t.integer "event_import_file_size"
363
378
  t.datetime "event_import_updated_at"
364
379
  t.string "edit_mode"
365
- t.datetime "created_at", :null => false
366
- t.datetime "updated_at", :null => false
380
+ t.datetime "created_at"
381
+ t.datetime "updated_at"
367
382
  t.string "event_import_fingerprint"
368
383
  t.text "error_message"
369
384
  t.string "user_encoding"
370
385
  t.integer "default_library_id"
371
386
  end
372
387
 
373
- add_index "event_import_files", ["parent_id"], :name => "index_event_import_files_on_parent_id"
374
- add_index "event_import_files", ["user_id"], :name => "index_event_import_files_on_user_id"
388
+ add_index "event_import_files", ["parent_id"], name: "index_event_import_files_on_parent_id"
389
+ add_index "event_import_files", ["user_id"], name: "index_event_import_files_on_user_id"
375
390
 
376
- create_table "event_import_results", :force => true do |t|
391
+ create_table "event_import_results", force: true do |t|
377
392
  t.integer "event_import_file_id"
378
393
  t.integer "event_id"
379
394
  t.text "body"
380
- t.datetime "created_at", :null => false
381
- t.datetime "updated_at", :null => false
395
+ t.datetime "created_at"
396
+ t.datetime "updated_at"
382
397
  end
383
398
 
384
- create_table "events", :force => true do |t|
385
- t.integer "library_id", :default => 1, :null => false
386
- t.integer "event_category_id", :default => 1, :null => false
399
+ create_table "events", force: true do |t|
400
+ t.integer "library_id", default: 1, null: false
401
+ t.integer "event_category_id", default: 1, null: false
387
402
  t.string "name"
388
403
  t.text "note"
389
404
  t.datetime "start_at"
390
405
  t.datetime "end_at"
391
- t.boolean "all_day", :default => false, :null => false
406
+ t.boolean "all_day", default: false, null: false
392
407
  t.datetime "deleted_at"
393
408
  t.text "display_name"
394
- t.datetime "created_at", :null => false
395
- t.datetime "updated_at", :null => false
409
+ t.datetime "created_at"
410
+ t.datetime "updated_at"
396
411
  end
397
412
 
398
- add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
399
- add_index "events", ["library_id"], :name => "index_events_on_library_id"
413
+ add_index "events", ["event_category_id"], name: "index_events_on_event_category_id"
414
+ add_index "events", ["library_id"], name: "index_events_on_library_id"
400
415
 
401
- create_table "exemplifies", :force => true do |t|
402
- t.integer "manifestation_id", :null => false
403
- t.integer "item_id", :null => false
416
+ create_table "exemplifies", force: true do |t|
417
+ t.integer "manifestation_id", null: false
418
+ t.integer "item_id", null: false
404
419
  t.integer "position"
405
- t.datetime "created_at", :null => false
406
- t.datetime "updated_at", :null => false
420
+ t.datetime "created_at"
421
+ t.datetime "updated_at"
407
422
  end
408
423
 
409
- add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
410
- add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
424
+ add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
425
+ add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
411
426
 
412
- create_table "extents", :force => true do |t|
413
- t.string "name", :null => false
427
+ create_table "extents", force: true do |t|
428
+ t.string "name", null: false
414
429
  t.text "display_name"
415
430
  t.text "note"
416
431
  t.integer "position"
417
- t.datetime "created_at", :null => false
418
- t.datetime "updated_at", :null => false
432
+ t.datetime "created_at"
433
+ t.datetime "updated_at"
419
434
  end
420
435
 
421
- create_table "form_of_works", :force => true do |t|
422
- t.string "name", :null => false
436
+ create_table "form_of_works", force: true do |t|
437
+ t.string "name", null: false
423
438
  t.text "display_name"
424
439
  t.text "note"
425
440
  t.integer "position"
426
- t.datetime "created_at", :null => false
427
- t.datetime "updated_at", :null => false
441
+ t.datetime "created_at"
442
+ t.datetime "updated_at"
428
443
  end
429
444
 
430
- create_table "frequencies", :force => true do |t|
431
- t.string "name", :null => false
445
+ create_table "frequencies", force: true do |t|
446
+ t.string "name", null: false
432
447
  t.text "display_name"
433
448
  t.text "note"
434
449
  t.integer "position"
435
- t.datetime "created_at", :null => false
436
- t.datetime "updated_at", :null => false
450
+ t.datetime "created_at"
451
+ t.datetime "updated_at"
437
452
  end
438
453
 
439
- create_table "identifier_types", :force => true do |t|
454
+ create_table "identifier_types", force: true do |t|
440
455
  t.string "name"
441
456
  t.text "display_name"
442
457
  t.text "note"
443
458
  t.integer "position"
444
- t.datetime "created_at", :null => false
445
- t.datetime "updated_at", :null => false
459
+ t.datetime "created_at"
460
+ t.datetime "updated_at"
446
461
  end
447
462
 
448
- create_table "identifiers", :force => true do |t|
449
- t.string "body", :null => false
450
- t.integer "identifier_type_id", :null => false
463
+ create_table "identifiers", force: true do |t|
464
+ t.string "body", null: false
465
+ t.integer "identifier_type_id", null: false
451
466
  t.integer "manifestation_id"
452
467
  t.boolean "primary"
453
468
  t.integer "position"
454
- t.datetime "created_at", :null => false
455
- t.datetime "updated_at", :null => false
469
+ t.datetime "created_at"
470
+ t.datetime "updated_at"
456
471
  end
457
472
 
458
- add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
459
- add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
473
+ add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
474
+ add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
460
475
 
461
- create_table "import_request_transitions", :force => true do |t|
476
+ create_table "import_request_transitions", force: true do |t|
462
477
  t.string "to_state"
463
- t.text "metadata", :default => "{}"
478
+ t.text "metadata", default: "{}"
464
479
  t.integer "sort_key"
465
480
  t.integer "import_request_id"
466
- t.datetime "created_at", :null => false
467
- t.datetime "updated_at", :null => false
481
+ t.datetime "created_at"
482
+ t.datetime "updated_at"
468
483
  end
469
484
 
470
- add_index "import_request_transitions", ["import_request_id"], :name => "index_import_request_transitions_on_import_request_id"
471
- add_index "import_request_transitions", ["sort_key", "import_request_id"], :name => "index_import_request_transitions_on_sort_key_and_request_id", :unique => true
485
+ add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
486
+ add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
472
487
 
473
- create_table "import_requests", :force => true do |t|
488
+ create_table "import_requests", force: true do |t|
474
489
  t.string "isbn"
475
490
  t.integer "manifestation_id"
476
491
  t.integer "user_id"
477
- t.datetime "created_at", :null => false
478
- t.datetime "updated_at", :null => false
492
+ t.datetime "created_at"
493
+ t.datetime "updated_at"
479
494
  end
480
495
 
481
- add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
482
- add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
483
- add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
496
+ add_index "import_requests", ["isbn"], name: "index_import_requests_on_isbn"
497
+ add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
498
+ add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
484
499
 
485
- create_table "item_has_use_restrictions", :force => true do |t|
486
- t.integer "item_id", :null => false
487
- t.integer "use_restriction_id", :null => false
488
- t.datetime "created_at", :null => false
489
- t.datetime "updated_at", :null => false
500
+ create_table "item_has_use_restrictions", force: true do |t|
501
+ t.integer "item_id", null: false
502
+ t.integer "use_restriction_id", null: false
503
+ t.datetime "created_at"
504
+ t.datetime "updated_at"
490
505
  end
491
506
 
492
- add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
493
- add_index "item_has_use_restrictions", ["use_restriction_id"], :name => "index_item_has_use_restrictions_on_use_restriction_id"
507
+ add_index "item_has_use_restrictions", ["item_id"], name: "index_item_has_use_restrictions_on_item_id"
508
+ add_index "item_has_use_restrictions", ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
494
509
 
495
- create_table "items", :force => true do |t|
510
+ create_table "items", force: true do |t|
496
511
  t.string "call_number"
497
512
  t.string "item_identifier"
498
- t.datetime "created_at", :null => false
499
- t.datetime "updated_at", :null => false
513
+ t.datetime "created_at"
514
+ t.datetime "updated_at"
500
515
  t.datetime "deleted_at"
501
- t.integer "shelf_id", :default => 1, :null => false
502
- t.boolean "include_supplements", :default => false, :null => false
516
+ t.integer "shelf_id", default: 1, null: false
517
+ t.boolean "include_supplements", default: false, null: false
503
518
  t.text "note"
504
519
  t.string "url"
505
520
  t.integer "price"
506
- t.integer "lock_version", :default => 0, :null => false
507
- t.integer "required_role_id", :default => 1, :null => false
508
- t.integer "required_score", :default => 0, :null => false
521
+ t.integer "lock_version", default: 0, null: false
522
+ t.integer "required_role_id", default: 1, null: false
523
+ t.integer "required_score", default: 0, null: false
509
524
  t.datetime "acquired_at"
510
525
  t.integer "bookstore_id"
511
526
  t.integer "budget_type_id"
512
- t.integer "circulation_status_id", :default => 5, :null => false
513
- t.integer "checkout_type_id", :default => 1, :null => false
527
+ t.integer "circulation_status_id", default: 5, null: false
528
+ t.integer "checkout_type_id", default: 1, null: false
514
529
  t.string "binding_item_identifier"
515
530
  t.string "binding_call_number"
516
531
  t.datetime "binded_at"
517
532
  t.integer "manifestation_id"
518
533
  end
519
534
 
520
- add_index "items", ["binding_item_identifier"], :name => "index_items_on_binding_item_identifier"
521
- add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
522
- add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
523
- add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
524
- add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
525
- add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
526
- add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
527
- add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
535
+ add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
536
+ add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
537
+ add_index "items", ["checkout_type_id"], name: "index_items_on_checkout_type_id"
538
+ add_index "items", ["circulation_status_id"], name: "index_items_on_circulation_status_id"
539
+ add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
540
+ add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
541
+ add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
542
+ add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
528
543
 
529
- create_table "languages", :force => true do |t|
530
- t.string "name", :null => false
544
+ create_table "languages", force: true do |t|
545
+ t.string "name", null: false
531
546
  t.string "native_name"
532
547
  t.text "display_name"
533
548
  t.string "iso_639_1"
@@ -537,121 +552,120 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
537
552
  t.integer "position"
538
553
  end
539
554
 
540
- add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
541
- add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
542
- add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
543
- add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
555
+ add_index "languages", ["iso_639_1"], name: "index_languages_on_iso_639_1"
556
+ add_index "languages", ["iso_639_2"], name: "index_languages_on_iso_639_2"
557
+ add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
558
+ add_index "languages", ["name"], name: "index_languages_on_name", unique: true
544
559
 
545
- create_table "lending_policies", :force => true do |t|
546
- t.integer "item_id", :null => false
547
- t.integer "user_group_id", :null => false
548
- t.integer "loan_period", :default => 0, :null => false
560
+ create_table "lending_policies", force: true do |t|
561
+ t.integer "item_id", null: false
562
+ t.integer "user_group_id", null: false
563
+ t.integer "loan_period", default: 0, null: false
549
564
  t.datetime "fixed_due_date"
550
- t.integer "renewal", :default => 0, :null => false
551
- t.integer "fine", :default => 0, :null => false
565
+ t.integer "renewal", default: 0, null: false
566
+ t.integer "fine", default: 0, null: false
552
567
  t.text "note"
553
568
  t.integer "position"
554
- t.datetime "created_at", :null => false
555
- t.datetime "updated_at", :null => false
569
+ t.datetime "created_at"
570
+ t.datetime "updated_at"
556
571
  end
557
572
 
558
- add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
573
+ add_index "lending_policies", ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
559
574
 
560
- create_table "licenses", :force => true do |t|
561
- t.string "name", :null => false
575
+ create_table "licenses", force: true do |t|
576
+ t.string "name", null: false
562
577
  t.string "display_name"
563
578
  t.text "note"
564
579
  t.integer "position"
565
- t.datetime "created_at", :null => false
566
- t.datetime "updated_at", :null => false
580
+ t.datetime "created_at"
581
+ t.datetime "updated_at"
567
582
  end
568
583
 
569
- create_table "manifestation_checkout_stat_transitions", :force => true do |t|
584
+ create_table "manifestation_checkout_stat_transitions", force: true do |t|
570
585
  t.string "to_state"
571
- t.text "metadata", :default => "{}"
586
+ t.text "metadata", default: "{}"
572
587
  t.integer "sort_key"
573
588
  t.integer "manifestation_checkout_stat_id"
574
- t.datetime "created_at", :null => false
575
- t.datetime "updated_at", :null => false
589
+ t.datetime "created_at"
590
+ t.datetime "updated_at"
576
591
  end
577
592
 
578
- add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_stat_id"
579
- add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_transition", :unique => true
593
+ add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_stat_id"
594
+ add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_transition", unique: true
580
595
 
581
- create_table "manifestation_checkout_stats", :force => true do |t|
596
+ create_table "manifestation_checkout_stats", force: true do |t|
582
597
  t.datetime "start_date"
583
598
  t.datetime "end_date"
584
599
  t.text "note"
585
- t.datetime "created_at", :null => false
586
- t.datetime "updated_at", :null => false
600
+ t.datetime "created_at"
601
+ t.datetime "updated_at"
587
602
  t.datetime "started_at"
588
603
  t.datetime "completed_at"
589
604
  t.integer "user_id"
590
605
  end
591
606
 
592
- add_index "manifestation_checkout_stats", ["user_id"], :name => "index_manifestation_checkout_stats_on_user_id"
607
+ add_index "manifestation_checkout_stats", ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
593
608
 
594
- create_table "manifestation_relationship_types", :force => true do |t|
595
- t.string "name", :null => false
609
+ create_table "manifestation_relationship_types", force: true do |t|
610
+ t.string "name", null: false
596
611
  t.text "display_name"
597
612
  t.text "note"
598
613
  t.integer "position"
599
- t.datetime "created_at", :null => false
600
- t.datetime "updated_at", :null => false
614
+ t.datetime "created_at"
615
+ t.datetime "updated_at"
601
616
  end
602
617
 
603
- create_table "manifestation_relationships", :force => true do |t|
618
+ create_table "manifestation_relationships", force: true do |t|
604
619
  t.integer "parent_id"
605
620
  t.integer "child_id"
606
621
  t.integer "manifestation_relationship_type_id"
607
- t.datetime "created_at", :null => false
608
- t.datetime "updated_at", :null => false
622
+ t.datetime "created_at"
623
+ t.datetime "updated_at"
609
624
  t.integer "position"
610
625
  end
611
626
 
612
- add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
613
- add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
627
+ add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
628
+ add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
614
629
 
615
- create_table "manifestation_reserve_stat_transitions", :force => true do |t|
630
+ create_table "manifestation_reserve_stat_transitions", force: true do |t|
616
631
  t.string "to_state"
617
- t.text "metadata", :default => "{}"
632
+ t.text "metadata", default: "{}"
618
633
  t.integer "sort_key"
619
634
  t.integer "manifestation_reserve_stat_id"
620
- t.datetime "created_at", :null => false
621
- t.datetime "updated_at", :null => false
635
+ t.datetime "created_at"
636
+ t.datetime "updated_at"
622
637
  end
623
638
 
624
- add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_stat_id"
625
- add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_transition", :unique => true
639
+ add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_stat_id"
640
+ add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_transition", unique: true
626
641
 
627
- create_table "manifestation_reserve_stats", :force => true do |t|
642
+ create_table "manifestation_reserve_stats", force: true do |t|
628
643
  t.datetime "start_date"
629
644
  t.datetime "end_date"
630
645
  t.text "note"
631
- t.datetime "created_at", :null => false
632
- t.datetime "updated_at", :null => false
646
+ t.datetime "created_at"
647
+ t.datetime "updated_at"
633
648
  t.datetime "started_at"
634
649
  t.datetime "completed_at"
635
650
  t.integer "user_id"
636
651
  end
637
652
 
638
- add_index "manifestation_reserve_stats", ["user_id"], :name => "index_manifestation_reserve_stats_on_user_id"
653
+ add_index "manifestation_reserve_stats", ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
639
654
 
640
- create_table "manifestations", :force => true do |t|
641
- t.text "original_title", :null => false
655
+ create_table "manifestations", force: true do |t|
656
+ t.text "original_title", null: false
642
657
  t.text "title_alternative"
643
658
  t.text "title_transcription"
644
659
  t.string "classification_number"
645
660
  t.string "manifestation_identifier"
646
661
  t.datetime "date_of_publication"
647
662
  t.datetime "date_copyrighted"
648
- t.datetime "created_at", :null => false
649
- t.datetime "updated_at", :null => false
663
+ t.datetime "created_at"
664
+ t.datetime "updated_at"
650
665
  t.datetime "deleted_at"
651
666
  t.string "access_address"
652
- t.integer "language_id", :default => 1, :null => false
653
- t.integer "carrier_type_id", :default => 1, :null => false
654
- t.integer "extent_id", :default => 1, :null => false
667
+ t.integer "language_id", default: 1, null: false
668
+ t.integer "carrier_type_id", default: 1, null: false
655
669
  t.integer "start_page"
656
670
  t.integer "end_page"
657
671
  t.integer "height"
@@ -664,12 +678,12 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
664
678
  t.string "serial_number_string"
665
679
  t.integer "edition"
666
680
  t.text "note"
667
- t.boolean "repository_content", :default => false, :null => false
668
- t.integer "lock_version", :default => 0, :null => false
669
- t.integer "required_role_id", :default => 1, :null => false
670
- t.integer "required_score", :default => 0, :null => false
671
- t.integer "frequency_id", :default => 1, :null => false
672
- t.boolean "subscription_master", :default => false, :null => false
681
+ t.boolean "repository_content", default: false, null: false
682
+ t.integer "lock_version", default: 0, null: false
683
+ t.integer "required_role_id", default: 1, null: false
684
+ t.integer "required_score", default: 0, null: false
685
+ t.integer "frequency_id", default: 1, null: false
686
+ t.boolean "subscription_master", default: false, null: false
673
687
  t.string "attachment_file_name"
674
688
  t.string "attachment_content_type"
675
689
  t.integer "attachment_file_size"
@@ -687,130 +701,132 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
687
701
  t.integer "volume_number"
688
702
  t.integer "issue_number"
689
703
  t.integer "serial_number"
690
- t.integer "content_type_id", :default => 1
704
+ t.integer "content_type_id", default: 1
691
705
  t.integer "year_of_publication"
692
706
  t.text "attachment_meta"
693
707
  t.integer "month_of_publication"
694
708
  t.boolean "fulltext_content"
695
709
  t.string "doi"
696
- t.boolean "periodical"
710
+ t.boolean "serial"
697
711
  t.text "statement_of_responsibility"
698
712
  t.text "publication_place"
713
+ t.text "extent"
714
+ t.text "dimensions"
699
715
  end
700
716
 
701
- add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
702
- add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
703
- add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
704
- add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
705
- add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
717
+ add_index "manifestations", ["access_address"], name: "index_manifestations_on_access_address"
718
+ add_index "manifestations", ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
719
+ add_index "manifestations", ["doi"], name: "index_manifestations_on_doi"
720
+ add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
721
+ add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
706
722
 
707
- create_table "medium_of_performances", :force => true do |t|
708
- t.string "name", :null => false
723
+ create_table "medium_of_performances", force: true do |t|
724
+ t.string "name", null: false
709
725
  t.text "display_name"
710
726
  t.text "note"
711
727
  t.integer "position"
712
- t.datetime "created_at", :null => false
713
- t.datetime "updated_at", :null => false
728
+ t.datetime "created_at"
729
+ t.datetime "updated_at"
714
730
  end
715
731
 
716
- create_table "message_request_transitions", :force => true do |t|
732
+ create_table "message_request_transitions", force: true do |t|
717
733
  t.string "to_state"
718
- t.text "metadata", :default => "{}"
734
+ t.text "metadata", default: "{}"
719
735
  t.integer "sort_key"
720
736
  t.integer "message_request_id"
721
- t.datetime "created_at", :null => false
722
- t.datetime "updated_at", :null => false
737
+ t.datetime "created_at"
738
+ t.datetime "updated_at"
723
739
  end
724
740
 
725
- add_index "message_request_transitions", ["message_request_id"], :name => "index_message_request_transitions_on_message_request_id"
726
- add_index "message_request_transitions", ["sort_key", "message_request_id"], :name => "index_message_request_transitions_on_sort_key_and_request_id", :unique => true
741
+ add_index "message_request_transitions", ["message_request_id"], name: "index_message_request_transitions_on_message_request_id"
742
+ add_index "message_request_transitions", ["sort_key", "message_request_id"], name: "index_message_request_transitions_on_sort_key_and_request_id", unique: true
727
743
 
728
- create_table "message_requests", :force => true do |t|
744
+ create_table "message_requests", force: true do |t|
729
745
  t.integer "sender_id"
730
746
  t.integer "receiver_id"
731
747
  t.integer "message_template_id"
732
748
  t.datetime "sent_at"
733
749
  t.datetime "deleted_at"
734
750
  t.text "body"
735
- t.datetime "created_at", :null => false
736
- t.datetime "updated_at", :null => false
751
+ t.datetime "created_at"
752
+ t.datetime "updated_at"
737
753
  end
738
754
 
739
- create_table "message_templates", :force => true do |t|
740
- t.string "status", :null => false
741
- t.text "title", :null => false
742
- t.text "body", :null => false
755
+ create_table "message_templates", force: true do |t|
756
+ t.string "status", null: false
757
+ t.text "title", null: false
758
+ t.text "body", null: false
743
759
  t.integer "position"
744
- t.string "locale", :default => "en"
745
- t.datetime "created_at", :null => false
746
- t.datetime "updated_at", :null => false
760
+ t.string "locale", default: "en"
761
+ t.datetime "created_at"
762
+ t.datetime "updated_at"
747
763
  end
748
764
 
749
- add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
765
+ add_index "message_templates", ["status"], name: "index_message_templates_on_status", unique: true
750
766
 
751
- create_table "message_transitions", :force => true do |t|
767
+ create_table "message_transitions", force: true do |t|
752
768
  t.string "to_state"
753
- t.text "metadata", :default => "{}"
769
+ t.text "metadata", default: "{}"
754
770
  t.integer "sort_key"
755
771
  t.integer "message_id"
756
- t.datetime "created_at", :null => false
757
- t.datetime "updated_at", :null => false
772
+ t.datetime "created_at"
773
+ t.datetime "updated_at"
758
774
  end
759
775
 
760
- add_index "message_transitions", ["message_id"], :name => "index_message_transitions_on_message_id"
761
- add_index "message_transitions", ["sort_key", "message_id"], :name => "index_message_transitions_on_sort_key_and_message_id", :unique => true
776
+ add_index "message_transitions", ["message_id"], name: "index_message_transitions_on_message_id"
777
+ add_index "message_transitions", ["sort_key", "message_id"], name: "index_message_transitions_on_sort_key_and_message_id", unique: true
762
778
 
763
- create_table "messages", :force => true do |t|
779
+ create_table "messages", force: true do |t|
764
780
  t.datetime "read_at"
765
781
  t.integer "receiver_id"
766
782
  t.integer "sender_id"
767
- t.string "subject", :null => false
783
+ t.string "subject", null: false
768
784
  t.text "body"
769
785
  t.integer "message_request_id"
770
786
  t.integer "parent_id"
771
- t.datetime "created_at", :null => false
772
- t.datetime "updated_at", :null => false
787
+ t.datetime "created_at"
788
+ t.datetime "updated_at"
773
789
  t.integer "lft"
774
790
  t.integer "rgt"
775
791
  t.integer "depth"
776
792
  end
777
793
 
778
- add_index "messages", ["message_request_id"], :name => "index_messages_on_message_request_id"
779
- add_index "messages", ["parent_id"], :name => "index_messages_on_parent_id"
780
- add_index "messages", ["receiver_id"], :name => "index_messages_on_receiver_id"
781
- add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
794
+ add_index "messages", ["message_request_id"], name: "index_messages_on_message_request_id"
795
+ add_index "messages", ["parent_id"], name: "index_messages_on_parent_id"
796
+ add_index "messages", ["receiver_id"], name: "index_messages_on_receiver_id"
797
+ add_index "messages", ["sender_id"], name: "index_messages_on_sender_id"
782
798
 
783
- create_table "owns", :force => true do |t|
784
- t.integer "agent_id", :null => false
785
- t.integer "item_id", :null => false
799
+ create_table "owns", force: true do |t|
800
+ t.integer "agent_id", null: false
801
+ t.integer "item_id", null: false
786
802
  t.integer "position"
787
- t.datetime "created_at", :null => false
788
- t.datetime "updated_at", :null => false
803
+ t.datetime "created_at"
804
+ t.datetime "updated_at"
789
805
  end
790
806
 
791
- add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
792
- add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
807
+ add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
808
+ add_index "owns", ["item_id"], name: "index_owns_on_item_id"
793
809
 
794
- create_table "participates", :force => true do |t|
795
- t.integer "agent_id", :null => false
796
- t.integer "event_id", :null => false
810
+ create_table "participates", force: true do |t|
811
+ t.integer "agent_id", null: false
812
+ t.integer "event_id", null: false
797
813
  t.integer "position"
798
- t.datetime "created_at", :null => false
799
- t.datetime "updated_at", :null => false
814
+ t.datetime "created_at"
815
+ t.datetime "updated_at"
800
816
  end
801
817
 
802
- add_index "participates", ["agent_id"], :name => "index_participates_on_agent_id"
803
- add_index "participates", ["event_id"], :name => "index_participates_on_event_id"
818
+ add_index "participates", ["agent_id"], name: "index_participates_on_agent_id"
819
+ add_index "participates", ["event_id"], name: "index_participates_on_event_id"
804
820
 
805
- create_table "picture_files", :force => true do |t|
821
+ create_table "picture_files", force: true do |t|
806
822
  t.integer "picture_attachable_id"
807
823
  t.string "picture_attachable_type"
808
824
  t.string "content_type"
809
825
  t.text "title"
810
826
  t.string "thumbnail"
811
827
  t.integer "position"
812
- t.datetime "created_at", :null => false
813
- t.datetime "updated_at", :null => false
828
+ t.datetime "created_at"
829
+ t.datetime "updated_at"
814
830
  t.string "picture_file_name"
815
831
  t.string "picture_content_type"
816
832
  t.integer "picture_file_size"
@@ -819,30 +835,30 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
819
835
  t.string "picture_fingerprint"
820
836
  end
821
837
 
822
- add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
838
+ add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
823
839
 
824
- create_table "produce_types", :force => true do |t|
840
+ create_table "produce_types", force: true do |t|
825
841
  t.string "name"
826
842
  t.text "display_name"
827
843
  t.text "note"
828
844
  t.integer "position"
829
- t.datetime "created_at", :null => false
830
- t.datetime "updated_at", :null => false
845
+ t.datetime "created_at"
846
+ t.datetime "updated_at"
831
847
  end
832
848
 
833
- create_table "produces", :force => true do |t|
834
- t.integer "agent_id", :null => false
835
- t.integer "manifestation_id", :null => false
849
+ create_table "produces", force: true do |t|
850
+ t.integer "agent_id", null: false
851
+ t.integer "manifestation_id", null: false
836
852
  t.integer "position"
837
- t.datetime "created_at", :null => false
838
- t.datetime "updated_at", :null => false
853
+ t.datetime "created_at"
854
+ t.datetime "updated_at"
839
855
  t.integer "produce_type_id"
840
856
  end
841
857
 
842
- add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
843
- add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
858
+ add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
859
+ add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
844
860
 
845
- create_table "profiles", :force => true do |t|
861
+ create_table "profiles", force: true do |t|
846
862
  t.integer "user_id"
847
863
  t.integer "user_group_id"
848
864
  t.integer "library_id"
@@ -852,133 +868,133 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
852
868
  t.text "note"
853
869
  t.text "keyword_list"
854
870
  t.integer "required_role_id"
855
- t.datetime "created_at", :null => false
856
- t.datetime "updated_at", :null => false
871
+ t.datetime "created_at"
872
+ t.datetime "updated_at"
857
873
  t.string "checkout_icalendar_token"
858
- t.boolean "save_checkout_history", :default => false, :null => false
874
+ t.boolean "save_checkout_history", default: false, null: false
859
875
  t.datetime "expired_at"
860
876
  end
861
877
 
862
- add_index "profiles", ["checkout_icalendar_token"], :name => "index_profiles_on_checkout_icalendar_token", :unique => true
863
- add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
864
- add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
878
+ add_index "profiles", ["checkout_icalendar_token"], name: "index_profiles_on_checkout_icalendar_token", unique: true
879
+ add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
880
+ add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
865
881
 
866
- create_table "realize_types", :force => true do |t|
882
+ create_table "realize_types", force: true do |t|
867
883
  t.string "name"
868
884
  t.text "display_name"
869
885
  t.text "note"
870
886
  t.integer "position"
871
- t.datetime "created_at", :null => false
872
- t.datetime "updated_at", :null => false
887
+ t.datetime "created_at"
888
+ t.datetime "updated_at"
873
889
  end
874
890
 
875
- create_table "realizes", :force => true do |t|
876
- t.integer "agent_id", :null => false
877
- t.integer "expression_id", :null => false
891
+ create_table "realizes", force: true do |t|
892
+ t.integer "agent_id", null: false
893
+ t.integer "expression_id", null: false
878
894
  t.integer "position"
879
- t.datetime "created_at", :null => false
880
- t.datetime "updated_at", :null => false
895
+ t.datetime "created_at"
896
+ t.datetime "updated_at"
881
897
  t.integer "realize_type_id"
882
898
  end
883
899
 
884
- add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
885
- add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
900
+ add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
901
+ add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
886
902
 
887
- create_table "reserve_stat_has_manifestations", :force => true do |t|
888
- t.integer "manifestation_reserve_stat_id", :null => false
889
- t.integer "manifestation_id", :null => false
903
+ create_table "reserve_stat_has_manifestations", force: true do |t|
904
+ t.integer "manifestation_reserve_stat_id", null: false
905
+ t.integer "manifestation_id", null: false
890
906
  t.integer "reserves_count"
891
- t.datetime "created_at", :null => false
892
- t.datetime "updated_at", :null => false
907
+ t.datetime "created_at"
908
+ t.datetime "updated_at"
893
909
  end
894
910
 
895
- add_index "reserve_stat_has_manifestations", ["manifestation_id"], :name => "index_reserve_stat_has_manifestations_on_manifestation_id"
896
- add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], :name => "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
911
+ add_index "reserve_stat_has_manifestations", ["manifestation_id"], name: "index_reserve_stat_has_manifestations_on_manifestation_id"
912
+ add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], name: "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
897
913
 
898
- create_table "reserve_stat_has_users", :force => true do |t|
899
- t.integer "user_reserve_stat_id", :null => false
900
- t.integer "user_id", :null => false
914
+ create_table "reserve_stat_has_users", force: true do |t|
915
+ t.integer "user_reserve_stat_id", null: false
916
+ t.integer "user_id", null: false
901
917
  t.integer "reserves_count"
902
- t.datetime "created_at", :null => false
903
- t.datetime "updated_at", :null => false
918
+ t.datetime "created_at"
919
+ t.datetime "updated_at"
904
920
  end
905
921
 
906
- add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
907
- add_index "reserve_stat_has_users", ["user_reserve_stat_id"], :name => "index_reserve_stat_has_users_on_user_reserve_stat_id"
922
+ add_index "reserve_stat_has_users", ["user_id"], name: "index_reserve_stat_has_users_on_user_id"
923
+ add_index "reserve_stat_has_users", ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
908
924
 
909
- create_table "reserve_transitions", :force => true do |t|
925
+ create_table "reserve_transitions", force: true do |t|
910
926
  t.string "to_state"
911
- t.text "metadata", :default => "{}"
927
+ t.text "metadata", default: "{}"
912
928
  t.integer "sort_key"
913
929
  t.integer "reserve_id"
914
- t.datetime "created_at", :null => false
915
- t.datetime "updated_at", :null => false
930
+ t.datetime "created_at"
931
+ t.datetime "updated_at"
916
932
  end
917
933
 
918
- add_index "reserve_transitions", ["reserve_id"], :name => "index_reserve_transitions_on_reserve_id"
919
- add_index "reserve_transitions", ["sort_key", "reserve_id"], :name => "index_reserve_transitions_on_sort_key_and_reserve_id", :unique => true
934
+ add_index "reserve_transitions", ["reserve_id"], name: "index_reserve_transitions_on_reserve_id"
935
+ add_index "reserve_transitions", ["sort_key", "reserve_id"], name: "index_reserve_transitions_on_sort_key_and_reserve_id", unique: true
920
936
 
921
- create_table "reserves", :force => true do |t|
922
- t.integer "user_id", :null => false
923
- t.integer "manifestation_id", :null => false
937
+ create_table "reserves", force: true do |t|
938
+ t.integer "user_id", null: false
939
+ t.integer "manifestation_id", null: false
924
940
  t.integer "item_id"
925
- t.integer "request_status_type_id", :null => false
941
+ t.integer "request_status_type_id", null: false
926
942
  t.datetime "checked_out_at"
927
- t.datetime "created_at", :null => false
928
- t.datetime "updated_at", :null => false
943
+ t.datetime "created_at"
944
+ t.datetime "updated_at"
929
945
  t.datetime "canceled_at"
930
946
  t.datetime "expired_at"
931
947
  t.datetime "deleted_at"
932
948
  t.string "state"
933
- t.boolean "expiration_notice_to_patron", :default => false
934
- t.boolean "expiration_notice_to_library", :default => false
949
+ t.boolean "expiration_notice_to_patron", default: false
950
+ t.boolean "expiration_notice_to_library", default: false
935
951
  t.datetime "retained_at"
936
952
  t.datetime "postponed_at"
937
- t.integer "lock_version", :default => 0, :null => false
953
+ t.integer "lock_version", default: 0, null: false
938
954
  end
939
955
 
940
- add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
941
- add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
942
- add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
943
- add_index "reserves", ["state"], :name => "index_reserves_on_state"
944
- add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
956
+ add_index "reserves", ["item_id"], name: "index_reserves_on_item_id"
957
+ add_index "reserves", ["manifestation_id"], name: "index_reserves_on_manifestation_id"
958
+ add_index "reserves", ["request_status_type_id"], name: "index_reserves_on_request_status_type_id"
959
+ add_index "reserves", ["state"], name: "index_reserves_on_state"
960
+ add_index "reserves", ["user_id"], name: "index_reserves_on_user_id"
945
961
 
946
- create_table "resource_export_file_transitions", :force => true do |t|
962
+ create_table "resource_export_file_transitions", force: true do |t|
947
963
  t.string "to_state"
948
- t.text "metadata", :default => "{}"
964
+ t.text "metadata", default: "{}"
949
965
  t.integer "sort_key"
950
966
  t.integer "resource_export_file_id"
951
- t.datetime "created_at", :null => false
952
- t.datetime "updated_at", :null => false
967
+ t.datetime "created_at"
968
+ t.datetime "updated_at"
953
969
  end
954
970
 
955
- add_index "resource_export_file_transitions", ["resource_export_file_id"], :name => "index_resource_export_file_transitions_on_file_id"
956
- 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
971
+ add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
972
+ 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
957
973
 
958
- create_table "resource_export_files", :force => true do |t|
974
+ create_table "resource_export_files", force: true do |t|
959
975
  t.integer "user_id"
960
976
  t.string "resource_export_file_name"
961
977
  t.string "resource_export_content_type"
962
978
  t.integer "resource_export_file_size"
963
979
  t.datetime "resource_export_updated_at"
964
980
  t.datetime "executed_at"
965
- t.datetime "created_at", :null => false
966
- t.datetime "updated_at", :null => false
981
+ t.datetime "created_at"
982
+ t.datetime "updated_at"
967
983
  end
968
984
 
969
- create_table "resource_import_file_transitions", :force => true do |t|
985
+ create_table "resource_import_file_transitions", force: true do |t|
970
986
  t.string "to_state"
971
- t.text "metadata", :default => "{}"
987
+ t.text "metadata", default: "{}"
972
988
  t.integer "sort_key"
973
989
  t.integer "resource_import_file_id"
974
- t.datetime "created_at", :null => false
975
- t.datetime "updated_at", :null => false
990
+ t.datetime "created_at"
991
+ t.datetime "updated_at"
976
992
  end
977
993
 
978
- add_index "resource_import_file_transitions", ["resource_import_file_id"], :name => "index_resource_import_file_transitions_on_file_id"
979
- 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
994
+ add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
995
+ 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
980
996
 
981
- create_table "resource_import_files", :force => true do |t|
997
+ create_table "resource_import_files", force: true do |t|
982
998
  t.integer "parent_id"
983
999
  t.string "content_type"
984
1000
  t.integer "size"
@@ -989,8 +1005,8 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
989
1005
  t.string "resource_import_content_type"
990
1006
  t.integer "resource_import_file_size"
991
1007
  t.datetime "resource_import_updated_at"
992
- t.datetime "created_at", :null => false
993
- t.datetime "updated_at", :null => false
1008
+ t.datetime "created_at"
1009
+ t.datetime "updated_at"
994
1010
  t.string "edit_mode"
995
1011
  t.string "resource_import_fingerprint"
996
1012
  t.text "error_message"
@@ -998,56 +1014,57 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
998
1014
  t.integer "default_shelf_id"
999
1015
  end
1000
1016
 
1001
- add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
1002
- add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
1017
+ add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
1018
+ add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
1003
1019
 
1004
- create_table "resource_import_results", :force => true do |t|
1020
+ create_table "resource_import_results", force: true do |t|
1005
1021
  t.integer "resource_import_file_id"
1006
1022
  t.integer "manifestation_id"
1007
1023
  t.integer "item_id"
1008
1024
  t.text "body"
1009
- t.datetime "created_at", :null => false
1010
- t.datetime "updated_at", :null => false
1025
+ t.datetime "created_at"
1026
+ t.datetime "updated_at"
1027
+ t.text "error_message"
1011
1028
  end
1012
1029
 
1013
- add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
1014
- add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
1015
- add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
1030
+ add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
1031
+ add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
1032
+ add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
1016
1033
 
1017
- create_table "roles", :force => true do |t|
1018
- t.string "name", :null => false
1034
+ create_table "roles", force: true do |t|
1035
+ t.string "name", null: false
1019
1036
  t.string "display_name"
1020
1037
  t.text "note"
1021
1038
  t.datetime "created_at"
1022
1039
  t.datetime "updated_at"
1023
- t.integer "score", :default => 0, :null => false
1040
+ t.integer "score", default: 0, null: false
1024
1041
  t.integer "position"
1025
1042
  end
1026
1043
 
1027
- create_table "series_statement_merge_lists", :force => true do |t|
1044
+ create_table "series_statement_merge_lists", force: true do |t|
1028
1045
  t.string "title"
1029
- t.datetime "created_at", :null => false
1030
- t.datetime "updated_at", :null => false
1046
+ t.datetime "created_at"
1047
+ t.datetime "updated_at"
1031
1048
  end
1032
1049
 
1033
- create_table "series_statement_merges", :force => true do |t|
1034
- t.integer "series_statement_id", :null => false
1035
- t.integer "series_statement_merge_list_id", :null => false
1036
- t.datetime "created_at", :null => false
1037
- t.datetime "updated_at", :null => false
1050
+ create_table "series_statement_merges", force: true do |t|
1051
+ t.integer "series_statement_id", null: false
1052
+ t.integer "series_statement_merge_list_id", null: false
1053
+ t.datetime "created_at"
1054
+ t.datetime "updated_at"
1038
1055
  end
1039
1056
 
1040
- add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
1041
- add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
1057
+ add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
1058
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
1042
1059
 
1043
- create_table "series_statements", :force => true do |t|
1060
+ create_table "series_statements", force: true do |t|
1044
1061
  t.text "original_title"
1045
1062
  t.text "numbering"
1046
1063
  t.text "title_subseries"
1047
1064
  t.text "numbering_subseries"
1048
1065
  t.integer "position"
1049
- t.datetime "created_at", :null => false
1050
- t.datetime "updated_at", :null => false
1066
+ t.datetime "created_at"
1067
+ t.datetime "updated_at"
1051
1068
  t.text "title_transcription"
1052
1069
  t.text "title_alternative"
1053
1070
  t.string "series_statement_identifier"
@@ -1061,38 +1078,38 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
1061
1078
  t.integer "root_manifestation_id"
1062
1079
  end
1063
1080
 
1064
- add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
1065
- add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_root_manifestation_id"
1066
- add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
1081
+ add_index "series_statements", ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
1082
+ add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
1083
+ add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
1067
1084
 
1068
- create_table "subject_heading_types", :force => true do |t|
1069
- t.string "name", :null => false
1085
+ create_table "subject_heading_types", force: true do |t|
1086
+ t.string "name", null: false
1070
1087
  t.text "display_name"
1071
1088
  t.text "note"
1072
1089
  t.integer "position"
1073
- t.datetime "created_at", :null => false
1074
- t.datetime "updated_at", :null => false
1090
+ t.datetime "created_at"
1091
+ t.datetime "updated_at"
1075
1092
  end
1076
1093
 
1077
- create_table "subject_types", :force => true do |t|
1078
- t.string "name", :null => false
1094
+ create_table "subject_types", force: true do |t|
1095
+ t.string "name", null: false
1079
1096
  t.text "display_name"
1080
1097
  t.text "note"
1081
1098
  t.integer "position"
1082
- t.datetime "created_at", :null => false
1083
- t.datetime "updated_at", :null => false
1099
+ t.datetime "created_at"
1100
+ t.datetime "updated_at"
1084
1101
  end
1085
1102
 
1086
- create_table "subjects", :force => true do |t|
1103
+ create_table "subjects", force: true do |t|
1087
1104
  t.integer "parent_id"
1088
1105
  t.integer "use_term_id"
1089
1106
  t.string "term"
1090
1107
  t.text "term_transcription"
1091
- t.integer "subject_type_id", :null => false
1108
+ t.integer "subject_type_id", null: false
1092
1109
  t.text "scope_note"
1093
1110
  t.text "note"
1094
- t.integer "required_role_id", :default => 1, :null => false
1095
- t.integer "lock_version", :default => 0, :null => false
1111
+ t.integer "required_role_id", default: 1, null: false
1112
+ t.integer "lock_version", default: 0, null: false
1096
1113
  t.datetime "created_at"
1097
1114
  t.datetime "updated_at"
1098
1115
  t.datetime "deleted_at"
@@ -1101,128 +1118,128 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
1101
1118
  t.integer "subject_heading_type_id"
1102
1119
  end
1103
1120
 
1104
- add_index "subjects", ["manifestation_id"], :name => "index_subjects_on_manifestation_id"
1105
- add_index "subjects", ["parent_id"], :name => "index_subjects_on_parent_id"
1106
- add_index "subjects", ["required_role_id"], :name => "index_subjects_on_required_role_id"
1107
- add_index "subjects", ["subject_type_id"], :name => "index_subjects_on_subject_type_id"
1108
- add_index "subjects", ["term"], :name => "index_subjects_on_term"
1109
- add_index "subjects", ["use_term_id"], :name => "index_subjects_on_use_term_id"
1121
+ add_index "subjects", ["manifestation_id"], name: "index_subjects_on_manifestation_id"
1122
+ add_index "subjects", ["parent_id"], name: "index_subjects_on_parent_id"
1123
+ add_index "subjects", ["required_role_id"], name: "index_subjects_on_required_role_id"
1124
+ add_index "subjects", ["subject_type_id"], name: "index_subjects_on_subject_type_id"
1125
+ add_index "subjects", ["term"], name: "index_subjects_on_term"
1126
+ add_index "subjects", ["use_term_id"], name: "index_subjects_on_use_term_id"
1110
1127
 
1111
- create_table "use_restrictions", :force => true do |t|
1112
- t.string "name", :null => false
1128
+ create_table "use_restrictions", force: true do |t|
1129
+ t.string "name", null: false
1113
1130
  t.text "display_name"
1114
1131
  t.text "note"
1115
1132
  t.integer "position"
1116
- t.datetime "created_at", :null => false
1117
- t.datetime "updated_at", :null => false
1133
+ t.datetime "created_at"
1134
+ t.datetime "updated_at"
1118
1135
  end
1119
1136
 
1120
- create_table "user_checkout_stat_transitions", :force => true do |t|
1137
+ create_table "user_checkout_stat_transitions", force: true do |t|
1121
1138
  t.string "to_state"
1122
- t.text "metadata", :default => "{}"
1139
+ t.text "metadata", default: "{}"
1123
1140
  t.integer "sort_key"
1124
1141
  t.integer "user_checkout_stat_id"
1125
- t.datetime "created_at", :null => false
1126
- t.datetime "updated_at", :null => false
1142
+ t.datetime "created_at"
1143
+ t.datetime "updated_at"
1127
1144
  end
1128
1145
 
1129
- add_index "user_checkout_stat_transitions", ["sort_key", "user_checkout_stat_id"], :name => "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", :unique => true
1130
- add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], :name => "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1146
+ add_index "user_checkout_stat_transitions", ["sort_key", "user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", unique: true
1147
+ add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1131
1148
 
1132
- create_table "user_checkout_stats", :force => true do |t|
1149
+ create_table "user_checkout_stats", force: true do |t|
1133
1150
  t.datetime "start_date"
1134
1151
  t.datetime "end_date"
1135
1152
  t.text "note"
1136
- t.datetime "created_at", :null => false
1137
- t.datetime "updated_at", :null => false
1153
+ t.datetime "created_at"
1154
+ t.datetime "updated_at"
1138
1155
  t.datetime "started_at"
1139
1156
  t.datetime "completed_at"
1140
1157
  t.integer "user_id"
1141
1158
  end
1142
1159
 
1143
- add_index "user_checkout_stats", ["user_id"], :name => "index_user_checkout_stats_on_user_id"
1160
+ add_index "user_checkout_stats", ["user_id"], name: "index_user_checkout_stats_on_user_id"
1144
1161
 
1145
- create_table "user_export_file_transitions", :force => true do |t|
1162
+ create_table "user_export_file_transitions", force: true do |t|
1146
1163
  t.string "to_state"
1147
- t.text "metadata", :default => "{}"
1164
+ t.text "metadata", default: "{}"
1148
1165
  t.integer "sort_key"
1149
1166
  t.integer "user_export_file_id"
1150
- t.datetime "created_at", :null => false
1151
- t.datetime "updated_at", :null => false
1167
+ t.datetime "created_at"
1168
+ t.datetime "updated_at"
1152
1169
  end
1153
1170
 
1154
- 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
1155
- add_index "user_export_file_transitions", ["user_export_file_id"], :name => "index_user_export_file_transitions_on_file_id"
1171
+ 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
1172
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
1156
1173
 
1157
- create_table "user_export_files", :force => true do |t|
1174
+ create_table "user_export_files", force: true do |t|
1158
1175
  t.integer "user_id"
1159
1176
  t.string "user_export_file_name"
1160
1177
  t.string "user_export_content_type"
1161
1178
  t.integer "user_export_file_size"
1162
1179
  t.datetime "user_export_updated_at"
1163
1180
  t.datetime "executed_at"
1164
- t.datetime "created_at", :null => false
1165
- t.datetime "updated_at", :null => false
1166
- end
1167
-
1168
- create_table "user_group_has_checkout_types", :force => true do |t|
1169
- t.integer "user_group_id", :null => false
1170
- t.integer "checkout_type_id", :null => false
1171
- t.integer "checkout_limit", :default => 0, :null => false
1172
- t.integer "checkout_period", :default => 0, :null => false
1173
- t.integer "checkout_renewal_limit", :default => 0, :null => false
1174
- t.integer "reservation_limit", :default => 0, :null => false
1175
- t.integer "reservation_expired_period", :default => 7, :null => false
1176
- t.boolean "set_due_date_before_closing_day", :default => false, :null => false
1181
+ t.datetime "created_at"
1182
+ t.datetime "updated_at"
1183
+ end
1184
+
1185
+ create_table "user_group_has_checkout_types", force: true do |t|
1186
+ t.integer "user_group_id", null: false
1187
+ t.integer "checkout_type_id", null: false
1188
+ t.integer "checkout_limit", default: 0, null: false
1189
+ t.integer "checkout_period", default: 0, null: false
1190
+ t.integer "checkout_renewal_limit", default: 0, null: false
1191
+ t.integer "reservation_limit", default: 0, null: false
1192
+ t.integer "reservation_expired_period", default: 7, null: false
1193
+ t.boolean "set_due_date_before_closing_day", default: false, null: false
1177
1194
  t.datetime "fixed_due_date"
1178
1195
  t.text "note"
1179
1196
  t.integer "position"
1180
- t.datetime "created_at", :null => false
1181
- t.datetime "updated_at", :null => false
1197
+ t.datetime "created_at"
1198
+ t.datetime "updated_at"
1182
1199
  t.integer "current_checkout_count"
1183
1200
  end
1184
1201
 
1185
- add_index "user_group_has_checkout_types", ["checkout_type_id"], :name => "index_user_group_has_checkout_types_on_checkout_type_id"
1186
- add_index "user_group_has_checkout_types", ["user_group_id"], :name => "index_user_group_has_checkout_types_on_user_group_id"
1202
+ add_index "user_group_has_checkout_types", ["checkout_type_id"], name: "index_user_group_has_checkout_types_on_checkout_type_id"
1203
+ add_index "user_group_has_checkout_types", ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
1187
1204
 
1188
- create_table "user_groups", :force => true do |t|
1205
+ create_table "user_groups", force: true do |t|
1189
1206
  t.string "name"
1190
1207
  t.text "display_name"
1191
1208
  t.text "note"
1192
1209
  t.integer "position"
1193
- t.datetime "created_at", :null => false
1194
- t.datetime "updated_at", :null => false
1210
+ t.datetime "created_at"
1211
+ t.datetime "updated_at"
1195
1212
  t.datetime "deleted_at"
1196
- t.integer "valid_period_for_new_user", :default => 0, :null => false
1213
+ t.integer "valid_period_for_new_user", default: 0, null: false
1197
1214
  t.datetime "expired_at"
1198
- t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
1199
- t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
1200
- t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
1215
+ t.integer "number_of_day_to_notify_overdue", default: 1, null: false
1216
+ t.integer "number_of_day_to_notify_due_date", default: 7, null: false
1217
+ t.integer "number_of_time_to_notify_overdue", default: 3, null: false
1201
1218
  end
1202
1219
 
1203
- create_table "user_has_roles", :force => true do |t|
1220
+ create_table "user_has_roles", force: true do |t|
1204
1221
  t.integer "user_id"
1205
1222
  t.integer "role_id"
1206
- t.datetime "created_at", :null => false
1207
- t.datetime "updated_at", :null => false
1223
+ t.datetime "created_at"
1224
+ t.datetime "updated_at"
1208
1225
  end
1209
1226
 
1210
- add_index "user_has_roles", ["role_id"], :name => "index_user_has_roles_on_role_id"
1211
- add_index "user_has_roles", ["user_id"], :name => "index_user_has_roles_on_user_id"
1227
+ add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
1228
+ add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
1212
1229
 
1213
- create_table "user_import_file_transitions", :force => true do |t|
1230
+ create_table "user_import_file_transitions", force: true do |t|
1214
1231
  t.string "to_state"
1215
- t.text "metadata", :default => "{}"
1232
+ t.text "metadata", default: "{}"
1216
1233
  t.integer "sort_key"
1217
1234
  t.integer "user_import_file_id"
1218
- t.datetime "created_at", :null => false
1219
- t.datetime "updated_at", :null => false
1235
+ t.datetime "created_at"
1236
+ t.datetime "updated_at"
1220
1237
  end
1221
1238
 
1222
- 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
1223
- add_index "user_import_file_transitions", ["user_import_file_id"], :name => "index_user_import_file_transitions_on_user_import_file_id"
1239
+ 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
1240
+ add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1224
1241
 
1225
- create_table "user_import_files", :force => true do |t|
1242
+ create_table "user_import_files", force: true do |t|
1226
1243
  t.integer "user_id"
1227
1244
  t.text "note"
1228
1245
  t.datetime "executed_at"
@@ -1233,85 +1250,85 @@ ActiveRecord::Schema.define(:version => 20140813182425) do
1233
1250
  t.string "user_import_fingerprint"
1234
1251
  t.string "edit_mode"
1235
1252
  t.text "error_message"
1236
- t.datetime "created_at", :null => false
1237
- t.datetime "updated_at", :null => false
1253
+ t.datetime "created_at"
1254
+ t.datetime "updated_at"
1238
1255
  t.string "user_encoding"
1239
1256
  t.integer "default_library_id"
1240
1257
  t.integer "default_user_group_id"
1241
1258
  end
1242
1259
 
1243
- create_table "user_import_results", :force => true do |t|
1260
+ create_table "user_import_results", force: true do |t|
1244
1261
  t.integer "user_import_file_id"
1245
1262
  t.integer "user_id"
1246
1263
  t.text "body"
1247
- t.datetime "created_at", :null => false
1248
- t.datetime "updated_at", :null => false
1264
+ t.datetime "created_at"
1265
+ t.datetime "updated_at"
1249
1266
  end
1250
1267
 
1251
- create_table "user_reserve_stat_transitions", :force => true do |t|
1268
+ create_table "user_reserve_stat_transitions", force: true do |t|
1252
1269
  t.string "to_state"
1253
- t.text "metadata", :default => "{}"
1270
+ t.text "metadata", default: "{}"
1254
1271
  t.integer "sort_key"
1255
1272
  t.integer "user_reserve_stat_id"
1256
- t.datetime "created_at", :null => false
1257
- t.datetime "updated_at", :null => false
1273
+ t.datetime "created_at"
1274
+ t.datetime "updated_at"
1258
1275
  end
1259
1276
 
1260
- add_index "user_reserve_stat_transitions", ["sort_key", "user_reserve_stat_id"], :name => "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", :unique => true
1261
- add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], :name => "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1277
+ add_index "user_reserve_stat_transitions", ["sort_key", "user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", unique: true
1278
+ add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1262
1279
 
1263
- create_table "user_reserve_stats", :force => true do |t|
1280
+ create_table "user_reserve_stats", force: true do |t|
1264
1281
  t.datetime "start_date"
1265
1282
  t.datetime "end_date"
1266
1283
  t.text "note"
1267
- t.datetime "created_at", :null => false
1268
- t.datetime "updated_at", :null => false
1284
+ t.datetime "created_at"
1285
+ t.datetime "updated_at"
1269
1286
  t.datetime "started_at"
1270
1287
  t.datetime "completed_at"
1271
1288
  t.integer "user_id"
1272
1289
  end
1273
1290
 
1274
- add_index "user_reserve_stats", ["user_id"], :name => "index_user_reserve_stats_on_user_id"
1291
+ add_index "user_reserve_stats", ["user_id"], name: "index_user_reserve_stats_on_user_id"
1275
1292
 
1276
- create_table "users", :force => true do |t|
1277
- t.string "email", :default => "", :null => false
1278
- t.string "encrypted_password", :default => "", :null => false
1293
+ create_table "users", force: true do |t|
1294
+ t.string "email", default: "", null: false
1295
+ t.string "encrypted_password", default: "", null: false
1279
1296
  t.string "reset_password_token"
1280
1297
  t.datetime "reset_password_sent_at"
1281
1298
  t.datetime "remember_created_at"
1282
- t.integer "sign_in_count", :default => 0
1299
+ t.integer "sign_in_count", default: 0
1283
1300
  t.datetime "current_sign_in_at"
1284
1301
  t.datetime "last_sign_in_at"
1285
1302
  t.string "current_sign_in_ip"
1286
1303
  t.string "last_sign_in_ip"
1287
- t.datetime "created_at", :null => false
1288
- t.datetime "updated_at", :null => false
1289
- t.boolean "save_checkout_history", :default => false, :null => false
1304
+ t.datetime "created_at"
1305
+ t.datetime "updated_at"
1306
+ t.boolean "save_checkout_history", default: false, null: false
1290
1307
  t.string "checkout_icalendar_token"
1291
1308
  t.string "username"
1292
1309
  t.datetime "deleted_at"
1293
1310
  t.datetime "expired_at"
1294
- t.integer "failed_attempts", :default => 0
1311
+ t.integer "failed_attempts", default: 0
1295
1312
  t.string "unlock_token"
1296
1313
  t.datetime "locked_at"
1297
1314
  t.datetime "confirmed_at"
1298
1315
  end
1299
1316
 
1300
- add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
1301
- add_index "users", ["email"], :name => "index_users_on_email"
1302
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
1303
- add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
1304
- add_index "users", ["username"], :name => "index_users_on_username", :unique => true
1317
+ add_index "users", ["checkout_icalendar_token"], name: "index_users_on_checkout_icalendar_token", unique: true
1318
+ add_index "users", ["email"], name: "index_users_on_email"
1319
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
1320
+ add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1321
+ add_index "users", ["username"], name: "index_users_on_username", unique: true
1305
1322
 
1306
- create_table "versions", :force => true do |t|
1307
- t.string "item_type", :null => false
1308
- t.integer "item_id", :null => false
1309
- t.string "event", :null => false
1323
+ create_table "versions", force: true do |t|
1324
+ t.string "item_type", null: false
1325
+ t.integer "item_id", null: false
1326
+ t.string "event", null: false
1310
1327
  t.string "whodunnit"
1311
1328
  t.text "object"
1312
1329
  t.datetime "created_at"
1313
1330
  end
1314
1331
 
1315
- add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
1332
+ add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1316
1333
 
1317
1334
  end