enju_inventory 0.1.11.pre10 → 0.1.11.pre11

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