enju_question 0.1.0.pre12 → 0.1.0.pre13

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