enju_message 0.1.14.pre16 → 0.1.14.pre17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/message_requests_controller.rb +3 -3
- data/app/controllers/message_templates_controller.rb +72 -6
- data/app/views/message_requests/index.html.erb +1 -0
- data/app/views/message_templates/index.html.erb +1 -0
- data/app/views/messages/index.html.erb +2 -0
- data/lib/enju_message/engine.rb +0 -1
- data/lib/enju_message/version.rb +1 -1
- data/spec/dummy/config/environments/test.rb +2 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -1
- data/spec/dummy/db/migrate/005_create_manifestations.rb +44 -0
- data/spec/dummy/db/migrate/006_create_items.rb +21 -0
- data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
- data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
- data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +0 -1
- data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
- data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
- data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +1 -5
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +14 -0
- data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
- data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
- data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
- data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
- data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
- data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20111124110059_create_create_types.rb} +2 -2
- data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -11
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20130506175303_create_identifier_types.rb +12 -0
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140817155043_add_extent_of_text_to_manifestation.rb +5 -0
- data/spec/dummy/db/schema.rb +547 -50
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/default/data/index/_q3.fdt +0 -0
- data/spec/dummy/solr/default/data/index/{_oj.si → _q3.si} +0 -0
- data/spec/dummy/solr/default/data/index/{_oj_Lucene41_0.tim → _q3_Lucene41_0.tim} +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_17z +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001572 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001573 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001574 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001575 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001576 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001577 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001578 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001579 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001580 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001581 +0 -0
- data/spec/factories/profile.rb +5 -1
- data/spec/factories/user.rb +0 -13
- data/spec/fixtures/library_groups.yml +0 -2
- metadata +216 -76
- data/spec/dummy/app/mailers/notifier.rb +0 -30
- data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +0 -9
- data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +0 -21
- data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +0 -11
- data/spec/dummy/db/migrate/20111201121636_create_languages.rb +0 -16
- data/spec/dummy/solr/default/data/index/_oj.fdt +0 -0
- data/spec/dummy/solr/default/data/index/segments_14v +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001460 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001461 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001462 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001463 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001464 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001465 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001466 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001467 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001468 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001469 +0 -0
- /data/spec/dummy/db/migrate/{20111201155456_devise_create_users.rb → 002_devise_create_users.rb} +0 -0
- /data/spec/dummy/solr/default/data/index/{_oj.fdx → _q3.fdx} +0 -0
- /data/spec/dummy/solr/default/data/index/{_oj.fnm → _q3.fnm} +0 -0
- /data/spec/dummy/solr/default/data/index/{_oj.nvd → _q3.nvd} +0 -0
- /data/spec/dummy/solr/default/data/index/{_oj.nvm → _q3.nvm} +0 -0
- /data/spec/dummy/solr/default/data/index/{_oj_Lucene41_0.doc → _q3_Lucene41_0.doc} +0 -0
- /data/spec/dummy/solr/default/data/index/{_oj_Lucene41_0.pos → _q3_Lucene41_0.pos} +0 -0
- /data/spec/dummy/solr/default/data/index/{_oj_Lucene41_0.tip → _q3_Lucene41_0.tip} +0 -0
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20140817155043) do
|
15
15
|
|
16
16
|
create_table "accepts", :force => true do |t|
|
17
17
|
t.integer "basket_id"
|
@@ -24,6 +24,69 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
24
24
|
add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
|
25
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|
|
28
|
+
t.string "to_state"
|
29
|
+
t.text "metadata", :default => "{}"
|
30
|
+
t.integer "sort_key"
|
31
|
+
t.integer "agent_import_file_id"
|
32
|
+
t.datetime "created_at", :null => false
|
33
|
+
t.datetime "updated_at", :null => false
|
34
|
+
end
|
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
|
38
|
+
|
39
|
+
create_table "agent_import_files", :force => true do |t|
|
40
|
+
t.integer "parent_id"
|
41
|
+
t.string "content_type"
|
42
|
+
t.integer "size"
|
43
|
+
t.integer "user_id"
|
44
|
+
t.text "note"
|
45
|
+
t.datetime "executed_at"
|
46
|
+
t.string "agent_import_file_name"
|
47
|
+
t.string "agent_import_content_type"
|
48
|
+
t.integer "agent_import_file_size"
|
49
|
+
t.datetime "agent_import_updated_at"
|
50
|
+
t.datetime "created_at", :null => false
|
51
|
+
t.datetime "updated_at", :null => false
|
52
|
+
t.string "agent_import_fingerprint"
|
53
|
+
t.text "error_message"
|
54
|
+
t.string "edit_mode"
|
55
|
+
t.string "user_encoding"
|
56
|
+
end
|
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"
|
60
|
+
|
61
|
+
create_table "agent_import_results", :force => true do |t|
|
62
|
+
t.integer "agent_import_file_id"
|
63
|
+
t.integer "agent_id"
|
64
|
+
t.text "body"
|
65
|
+
t.datetime "created_at", :null => false
|
66
|
+
t.datetime "updated_at", :null => false
|
67
|
+
end
|
68
|
+
|
69
|
+
create_table "agent_relationship_types", :force => true do |t|
|
70
|
+
t.string "name", :null => false
|
71
|
+
t.text "display_name"
|
72
|
+
t.text "note"
|
73
|
+
t.integer "position"
|
74
|
+
t.datetime "created_at", :null => false
|
75
|
+
t.datetime "updated_at", :null => false
|
76
|
+
end
|
77
|
+
|
78
|
+
create_table "agent_relationships", :force => true do |t|
|
79
|
+
t.integer "parent_id"
|
80
|
+
t.integer "child_id"
|
81
|
+
t.integer "agent_relationship_type_id"
|
82
|
+
t.datetime "created_at", :null => false
|
83
|
+
t.datetime "updated_at", :null => false
|
84
|
+
t.integer "position"
|
85
|
+
end
|
86
|
+
|
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"
|
89
|
+
|
27
90
|
create_table "agent_types", :force => true do |t|
|
28
91
|
t.string "name", :null => false
|
29
92
|
t.text "display_name"
|
@@ -45,8 +108,8 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
45
108
|
t.string "full_name"
|
46
109
|
t.text "full_name_transcription"
|
47
110
|
t.text "full_name_alternative"
|
48
|
-
t.datetime "created_at",
|
49
|
-
t.datetime "updated_at",
|
111
|
+
t.datetime "created_at", :null => false
|
112
|
+
t.datetime "updated_at", :null => false
|
50
113
|
t.datetime "deleted_at"
|
51
114
|
t.string "zip_code_1"
|
52
115
|
t.string "zip_code_2"
|
@@ -66,20 +129,22 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
66
129
|
t.text "region"
|
67
130
|
t.datetime "date_of_birth"
|
68
131
|
t.datetime "date_of_death"
|
69
|
-
t.integer "language_id",
|
70
|
-
t.integer "country_id",
|
71
|
-
t.integer "agent_type_id",
|
72
|
-
t.integer "lock_version",
|
73
|
-
t.text "note"
|
74
|
-
t.integer "required_role_id",
|
75
|
-
t.integer "required_score",
|
76
|
-
t.string "state"
|
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
|
136
|
+
t.text "note"
|
137
|
+
t.integer "required_role_id", :default => 1, :null => false
|
138
|
+
t.integer "required_score", :default => 0, :null => false
|
77
139
|
t.text "email"
|
78
140
|
t.text "url"
|
141
|
+
t.text "full_name_alternative_transcription"
|
79
142
|
t.string "birth_date"
|
80
143
|
t.string "death_date"
|
144
|
+
t.string "agent_identifier"
|
81
145
|
end
|
82
146
|
|
147
|
+
add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
|
83
148
|
add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
|
84
149
|
add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
|
85
150
|
add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
|
@@ -118,6 +183,24 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
118
183
|
t.datetime "updated_at", :null => false
|
119
184
|
end
|
120
185
|
|
186
|
+
create_table "carrier_types", :force => true do |t|
|
187
|
+
t.string "name", :null => false
|
188
|
+
t.text "display_name"
|
189
|
+
t.text "note"
|
190
|
+
t.integer "position"
|
191
|
+
t.datetime "created_at", :null => false
|
192
|
+
t.datetime "updated_at", :null => false
|
193
|
+
end
|
194
|
+
|
195
|
+
create_table "content_types", :force => true do |t|
|
196
|
+
t.string "name", :null => false
|
197
|
+
t.text "display_name"
|
198
|
+
t.text "note"
|
199
|
+
t.integer "position"
|
200
|
+
t.datetime "created_at", :null => false
|
201
|
+
t.datetime "updated_at", :null => false
|
202
|
+
end
|
203
|
+
|
121
204
|
create_table "countries", :force => true do |t|
|
122
205
|
t.string "name", :null => false
|
123
206
|
t.text "display_name"
|
@@ -133,34 +216,167 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
133
216
|
add_index "countries", ["name"], :name => "index_countries_on_name"
|
134
217
|
add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
|
135
218
|
|
136
|
-
create_table "
|
137
|
-
t.
|
138
|
-
t.
|
139
|
-
t.text "
|
140
|
-
t.
|
141
|
-
t.datetime "
|
142
|
-
t.datetime "
|
143
|
-
t.datetime "failed_at"
|
144
|
-
t.string "locked_by"
|
145
|
-
t.datetime "created_at", :null => false
|
146
|
-
t.datetime "updated_at", :null => false
|
219
|
+
create_table "create_types", :force => true do |t|
|
220
|
+
t.string "name"
|
221
|
+
t.text "display_name"
|
222
|
+
t.text "note"
|
223
|
+
t.integer "position"
|
224
|
+
t.datetime "created_at", :null => false
|
225
|
+
t.datetime "updated_at", :null => false
|
147
226
|
end
|
148
227
|
|
149
|
-
|
228
|
+
create_table "creates", :force => true do |t|
|
229
|
+
t.integer "agent_id", :null => false
|
230
|
+
t.integer "work_id", :null => false
|
231
|
+
t.integer "position"
|
232
|
+
t.datetime "created_at", :null => false
|
233
|
+
t.datetime "updated_at", :null => false
|
234
|
+
t.integer "create_type_id"
|
235
|
+
end
|
150
236
|
|
151
|
-
|
237
|
+
add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
|
238
|
+
add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
|
239
|
+
|
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
|
245
|
+
end
|
246
|
+
|
247
|
+
add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
|
248
|
+
add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
|
249
|
+
|
250
|
+
create_table "exemplifies", :force => true do |t|
|
251
|
+
t.integer "manifestation_id", :null => false
|
252
|
+
t.integer "item_id", :null => false
|
253
|
+
t.integer "position"
|
254
|
+
t.datetime "created_at", :null => false
|
255
|
+
t.datetime "updated_at", :null => false
|
256
|
+
end
|
257
|
+
|
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"
|
260
|
+
|
261
|
+
create_table "extents", :force => true do |t|
|
262
|
+
t.string "name", :null => false
|
263
|
+
t.text "display_name"
|
264
|
+
t.text "note"
|
265
|
+
t.integer "position"
|
266
|
+
t.datetime "created_at", :null => false
|
267
|
+
t.datetime "updated_at", :null => false
|
268
|
+
end
|
269
|
+
|
270
|
+
create_table "form_of_works", :force => true do |t|
|
271
|
+
t.string "name", :null => false
|
272
|
+
t.text "display_name"
|
273
|
+
t.text "note"
|
274
|
+
t.integer "position"
|
275
|
+
t.datetime "created_at", :null => false
|
276
|
+
t.datetime "updated_at", :null => false
|
277
|
+
end
|
278
|
+
|
279
|
+
create_table "frequencies", :force => true do |t|
|
280
|
+
t.string "name", :null => false
|
281
|
+
t.text "display_name"
|
282
|
+
t.text "note"
|
283
|
+
t.integer "position"
|
284
|
+
t.datetime "created_at", :null => false
|
285
|
+
t.datetime "updated_at", :null => false
|
286
|
+
end
|
287
|
+
|
288
|
+
create_table "identifier_types", :force => true do |t|
|
152
289
|
t.string "name"
|
153
|
-
t.string "native_name"
|
154
290
|
t.text "display_name"
|
155
|
-
t.string "iso_639_1"
|
156
|
-
t.string "iso_639_2"
|
157
|
-
t.string "iso_639_3"
|
158
291
|
t.text "note"
|
159
292
|
t.integer "position"
|
160
293
|
t.datetime "created_at", :null => false
|
161
294
|
t.datetime "updated_at", :null => false
|
162
295
|
end
|
163
296
|
|
297
|
+
create_table "identifiers", :force => true do |t|
|
298
|
+
t.string "body", :null => false
|
299
|
+
t.integer "identifier_type_id", :null => false
|
300
|
+
t.integer "manifestation_id"
|
301
|
+
t.boolean "primary"
|
302
|
+
t.integer "position"
|
303
|
+
t.datetime "created_at", :null => false
|
304
|
+
t.datetime "updated_at", :null => false
|
305
|
+
end
|
306
|
+
|
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"
|
309
|
+
|
310
|
+
create_table "import_request_transitions", :force => true do |t|
|
311
|
+
t.string "to_state"
|
312
|
+
t.text "metadata", :default => "{}"
|
313
|
+
t.integer "sort_key"
|
314
|
+
t.integer "import_request_id"
|
315
|
+
t.datetime "created_at", :null => false
|
316
|
+
t.datetime "updated_at", :null => false
|
317
|
+
end
|
318
|
+
|
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
|
321
|
+
|
322
|
+
create_table "import_requests", :force => true do |t|
|
323
|
+
t.string "isbn"
|
324
|
+
t.integer "manifestation_id"
|
325
|
+
t.integer "user_id"
|
326
|
+
t.datetime "created_at", :null => false
|
327
|
+
t.datetime "updated_at", :null => false
|
328
|
+
end
|
329
|
+
|
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"
|
333
|
+
|
334
|
+
create_table "items", :force => true do |t|
|
335
|
+
t.string "call_number"
|
336
|
+
t.string "item_identifier"
|
337
|
+
t.datetime "created_at", :null => false
|
338
|
+
t.datetime "updated_at", :null => false
|
339
|
+
t.datetime "deleted_at"
|
340
|
+
t.integer "shelf_id", :default => 1, :null => false
|
341
|
+
t.boolean "include_supplements", :default => false, :null => false
|
342
|
+
t.text "note"
|
343
|
+
t.string "url"
|
344
|
+
t.integer "price"
|
345
|
+
t.integer "lock_version", :default => 0, :null => false
|
346
|
+
t.integer "required_role_id", :default => 1, :null => false
|
347
|
+
t.integer "required_score", :default => 0, :null => false
|
348
|
+
t.datetime "acquired_at"
|
349
|
+
t.integer "bookstore_id"
|
350
|
+
t.integer "budget_type_id"
|
351
|
+
t.string "binding_item_identifier"
|
352
|
+
t.string "binding_call_number"
|
353
|
+
t.datetime "binded_at"
|
354
|
+
t.integer "manifestation_id"
|
355
|
+
end
|
356
|
+
|
357
|
+
add_index "items", ["binding_item_identifier"], :name => "index_items_on_binding_item_identifier"
|
358
|
+
add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
|
359
|
+
add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
|
360
|
+
add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
|
361
|
+
add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
|
362
|
+
add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
|
363
|
+
|
364
|
+
create_table "languages", :force => true do |t|
|
365
|
+
t.string "name", :null => false
|
366
|
+
t.string "native_name"
|
367
|
+
t.text "display_name"
|
368
|
+
t.string "iso_639_1"
|
369
|
+
t.string "iso_639_2"
|
370
|
+
t.string "iso_639_3"
|
371
|
+
t.text "note"
|
372
|
+
t.integer "position"
|
373
|
+
end
|
374
|
+
|
375
|
+
add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
|
376
|
+
add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
|
377
|
+
add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
|
378
|
+
add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
|
379
|
+
|
164
380
|
create_table "libraries", :force => true do |t|
|
165
381
|
t.string "name", :null => false
|
166
382
|
t.text "display_name"
|
@@ -192,24 +408,127 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
192
408
|
add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
|
193
409
|
|
194
410
|
create_table "library_groups", :force => true do |t|
|
195
|
-
t.string "name",
|
411
|
+
t.string "name", :null => false
|
196
412
|
t.text "display_name"
|
197
|
-
t.string "short_name",
|
198
|
-
t.string "email"
|
413
|
+
t.string "short_name", :null => false
|
199
414
|
t.text "my_networks"
|
200
415
|
t.text "login_banner"
|
201
416
|
t.text "note"
|
202
417
|
t.integer "country_id"
|
203
418
|
t.integer "position"
|
204
|
-
t.datetime "created_at",
|
205
|
-
t.datetime "updated_at",
|
419
|
+
t.datetime "created_at", :null => false
|
420
|
+
t.datetime "updated_at", :null => false
|
206
421
|
t.text "admin_networks"
|
207
|
-
t.
|
208
|
-
t.string "url", :default => "http://localhost:3000/"
|
422
|
+
t.string "url", :default => "http://localhost:3000/"
|
209
423
|
end
|
210
424
|
|
211
425
|
add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
|
212
426
|
|
427
|
+
create_table "licenses", :force => true do |t|
|
428
|
+
t.string "name", :null => false
|
429
|
+
t.string "display_name"
|
430
|
+
t.text "note"
|
431
|
+
t.integer "position"
|
432
|
+
t.datetime "created_at", :null => false
|
433
|
+
t.datetime "updated_at", :null => false
|
434
|
+
end
|
435
|
+
|
436
|
+
create_table "manifestation_relationship_types", :force => true do |t|
|
437
|
+
t.string "name", :null => false
|
438
|
+
t.text "display_name"
|
439
|
+
t.text "note"
|
440
|
+
t.integer "position"
|
441
|
+
t.datetime "created_at", :null => false
|
442
|
+
t.datetime "updated_at", :null => false
|
443
|
+
end
|
444
|
+
|
445
|
+
create_table "manifestation_relationships", :force => true do |t|
|
446
|
+
t.integer "parent_id"
|
447
|
+
t.integer "child_id"
|
448
|
+
t.integer "manifestation_relationship_type_id"
|
449
|
+
t.datetime "created_at", :null => false
|
450
|
+
t.datetime "updated_at", :null => false
|
451
|
+
t.integer "position"
|
452
|
+
end
|
453
|
+
|
454
|
+
add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
|
455
|
+
add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
|
456
|
+
|
457
|
+
create_table "manifestations", :force => true do |t|
|
458
|
+
t.text "original_title", :null => false
|
459
|
+
t.text "title_alternative"
|
460
|
+
t.text "title_transcription"
|
461
|
+
t.string "classification_number"
|
462
|
+
t.string "manifestation_identifier"
|
463
|
+
t.datetime "date_of_publication"
|
464
|
+
t.datetime "date_copyrighted"
|
465
|
+
t.datetime "created_at", :null => false
|
466
|
+
t.datetime "updated_at", :null => false
|
467
|
+
t.datetime "deleted_at"
|
468
|
+
t.string "access_address"
|
469
|
+
t.integer "language_id", :default => 1, :null => false
|
470
|
+
t.integer "carrier_type_id", :default => 1, :null => false
|
471
|
+
t.integer "extent_id", :default => 1, :null => false
|
472
|
+
t.integer "start_page"
|
473
|
+
t.integer "end_page"
|
474
|
+
t.integer "height"
|
475
|
+
t.integer "width"
|
476
|
+
t.integer "depth"
|
477
|
+
t.integer "price"
|
478
|
+
t.text "fulltext"
|
479
|
+
t.string "volume_number_string"
|
480
|
+
t.string "issue_number_string"
|
481
|
+
t.string "serial_number_string"
|
482
|
+
t.integer "edition"
|
483
|
+
t.text "note"
|
484
|
+
t.boolean "repository_content", :default => false, :null => false
|
485
|
+
t.integer "lock_version", :default => 0, :null => false
|
486
|
+
t.integer "required_role_id", :default => 1, :null => false
|
487
|
+
t.integer "required_score", :default => 0, :null => false
|
488
|
+
t.integer "frequency_id", :default => 1, :null => false
|
489
|
+
t.boolean "subscription_master", :default => false, :null => false
|
490
|
+
t.string "attachment_file_name"
|
491
|
+
t.string "attachment_content_type"
|
492
|
+
t.integer "attachment_file_size"
|
493
|
+
t.datetime "attachment_updated_at"
|
494
|
+
t.text "title_alternative_transcription"
|
495
|
+
t.text "description"
|
496
|
+
t.text "abstract"
|
497
|
+
t.datetime "available_at"
|
498
|
+
t.datetime "valid_until"
|
499
|
+
t.datetime "date_submitted"
|
500
|
+
t.datetime "date_accepted"
|
501
|
+
t.datetime "date_caputured"
|
502
|
+
t.string "pub_date"
|
503
|
+
t.string "edition_string"
|
504
|
+
t.integer "volume_number"
|
505
|
+
t.integer "issue_number"
|
506
|
+
t.integer "serial_number"
|
507
|
+
t.integer "content_type_id", :default => 1
|
508
|
+
t.integer "year_of_publication"
|
509
|
+
t.text "attachment_meta"
|
510
|
+
t.integer "month_of_publication"
|
511
|
+
t.boolean "fulltext_content"
|
512
|
+
t.boolean "periodical"
|
513
|
+
t.text "statement_of_responsibility"
|
514
|
+
t.text "publication_place"
|
515
|
+
t.text "extent_of_text"
|
516
|
+
end
|
517
|
+
|
518
|
+
add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
|
519
|
+
add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
|
520
|
+
add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
|
521
|
+
add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
|
522
|
+
|
523
|
+
create_table "medium_of_performances", :force => true do |t|
|
524
|
+
t.string "name", :null => false
|
525
|
+
t.text "display_name"
|
526
|
+
t.text "note"
|
527
|
+
t.integer "position"
|
528
|
+
t.datetime "created_at", :null => false
|
529
|
+
t.datetime "updated_at", :null => false
|
530
|
+
end
|
531
|
+
|
213
532
|
create_table "message_request_transitions", :force => true do |t|
|
214
533
|
t.string "to_state"
|
215
534
|
t.text "metadata", :default => "{}"
|
@@ -277,6 +596,57 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
277
596
|
add_index "messages", ["receiver_id"], :name => "index_messages_on_receiver_id"
|
278
597
|
add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
|
279
598
|
|
599
|
+
create_table "owns", :force => true do |t|
|
600
|
+
t.integer "agent_id", :null => false
|
601
|
+
t.integer "item_id", :null => false
|
602
|
+
t.integer "position"
|
603
|
+
t.datetime "created_at", :null => false
|
604
|
+
t.datetime "updated_at", :null => false
|
605
|
+
end
|
606
|
+
|
607
|
+
add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
|
608
|
+
add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
|
609
|
+
|
610
|
+
create_table "picture_files", :force => true do |t|
|
611
|
+
t.integer "picture_attachable_id"
|
612
|
+
t.string "picture_attachable_type"
|
613
|
+
t.string "content_type"
|
614
|
+
t.text "title"
|
615
|
+
t.string "thumbnail"
|
616
|
+
t.integer "position"
|
617
|
+
t.datetime "created_at", :null => false
|
618
|
+
t.datetime "updated_at", :null => false
|
619
|
+
t.string "picture_file_name"
|
620
|
+
t.string "picture_content_type"
|
621
|
+
t.integer "picture_file_size"
|
622
|
+
t.datetime "picture_updated_at"
|
623
|
+
t.text "picture_meta"
|
624
|
+
t.string "picture_fingerprint"
|
625
|
+
end
|
626
|
+
|
627
|
+
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
|
628
|
+
|
629
|
+
create_table "produce_types", :force => true do |t|
|
630
|
+
t.string "name"
|
631
|
+
t.text "display_name"
|
632
|
+
t.text "note"
|
633
|
+
t.integer "position"
|
634
|
+
t.datetime "created_at", :null => false
|
635
|
+
t.datetime "updated_at", :null => false
|
636
|
+
end
|
637
|
+
|
638
|
+
create_table "produces", :force => true do |t|
|
639
|
+
t.integer "agent_id", :null => false
|
640
|
+
t.integer "manifestation_id", :null => false
|
641
|
+
t.integer "position"
|
642
|
+
t.datetime "created_at", :null => false
|
643
|
+
t.datetime "updated_at", :null => false
|
644
|
+
t.integer "produce_type_id"
|
645
|
+
end
|
646
|
+
|
647
|
+
add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
|
648
|
+
add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
|
649
|
+
|
280
650
|
create_table "profiles", :force => true do |t|
|
281
651
|
t.integer "user_id"
|
282
652
|
t.integer "user_group_id"
|
@@ -295,6 +665,27 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
295
665
|
add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
|
296
666
|
add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
|
297
667
|
|
668
|
+
create_table "realize_types", :force => true do |t|
|
669
|
+
t.string "name"
|
670
|
+
t.text "display_name"
|
671
|
+
t.text "note"
|
672
|
+
t.integer "position"
|
673
|
+
t.datetime "created_at", :null => false
|
674
|
+
t.datetime "updated_at", :null => false
|
675
|
+
end
|
676
|
+
|
677
|
+
create_table "realizes", :force => true do |t|
|
678
|
+
t.integer "agent_id", :null => false
|
679
|
+
t.integer "expression_id", :null => false
|
680
|
+
t.integer "position"
|
681
|
+
t.datetime "created_at", :null => false
|
682
|
+
t.datetime "updated_at", :null => false
|
683
|
+
t.integer "realize_type_id"
|
684
|
+
end
|
685
|
+
|
686
|
+
add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
|
687
|
+
add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
|
688
|
+
|
298
689
|
create_table "request_status_types", :force => true do |t|
|
299
690
|
t.string "name", :null => false
|
300
691
|
t.text "display_name"
|
@@ -313,13 +704,85 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
313
704
|
t.datetime "updated_at", :null => false
|
314
705
|
end
|
315
706
|
|
707
|
+
create_table "resource_export_file_transitions", :force => true do |t|
|
708
|
+
t.string "to_state"
|
709
|
+
t.text "metadata", :default => "{}"
|
710
|
+
t.integer "sort_key"
|
711
|
+
t.integer "resource_export_file_id"
|
712
|
+
t.datetime "created_at", :null => false
|
713
|
+
t.datetime "updated_at", :null => false
|
714
|
+
end
|
715
|
+
|
716
|
+
add_index "resource_export_file_transitions", ["resource_export_file_id"], :name => "index_resource_export_file_transitions_on_file_id"
|
717
|
+
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
|
718
|
+
|
719
|
+
create_table "resource_export_files", :force => true do |t|
|
720
|
+
t.integer "user_id"
|
721
|
+
t.string "resource_export_file_name"
|
722
|
+
t.string "resource_export_content_type"
|
723
|
+
t.integer "resource_export_file_size"
|
724
|
+
t.datetime "resource_export_updated_at"
|
725
|
+
t.datetime "executed_at"
|
726
|
+
t.datetime "created_at", :null => false
|
727
|
+
t.datetime "updated_at", :null => false
|
728
|
+
end
|
729
|
+
|
730
|
+
create_table "resource_import_file_transitions", :force => true do |t|
|
731
|
+
t.string "to_state"
|
732
|
+
t.text "metadata", :default => "{}"
|
733
|
+
t.integer "sort_key"
|
734
|
+
t.integer "resource_import_file_id"
|
735
|
+
t.datetime "created_at", :null => false
|
736
|
+
t.datetime "updated_at", :null => false
|
737
|
+
end
|
738
|
+
|
739
|
+
add_index "resource_import_file_transitions", ["resource_import_file_id"], :name => "index_resource_import_file_transitions_on_file_id"
|
740
|
+
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
|
741
|
+
|
742
|
+
create_table "resource_import_files", :force => true do |t|
|
743
|
+
t.integer "parent_id"
|
744
|
+
t.string "content_type"
|
745
|
+
t.integer "size"
|
746
|
+
t.integer "user_id"
|
747
|
+
t.text "note"
|
748
|
+
t.datetime "executed_at"
|
749
|
+
t.string "resource_import_file_name"
|
750
|
+
t.string "resource_import_content_type"
|
751
|
+
t.integer "resource_import_file_size"
|
752
|
+
t.datetime "resource_import_updated_at"
|
753
|
+
t.datetime "created_at", :null => false
|
754
|
+
t.datetime "updated_at", :null => false
|
755
|
+
t.string "edit_mode"
|
756
|
+
t.string "resource_import_fingerprint"
|
757
|
+
t.text "error_message"
|
758
|
+
t.string "user_encoding"
|
759
|
+
t.integer "default_shelf_id"
|
760
|
+
end
|
761
|
+
|
762
|
+
add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
|
763
|
+
add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
|
764
|
+
|
765
|
+
create_table "resource_import_results", :force => true do |t|
|
766
|
+
t.integer "resource_import_file_id"
|
767
|
+
t.integer "manifestation_id"
|
768
|
+
t.integer "item_id"
|
769
|
+
t.text "body"
|
770
|
+
t.datetime "created_at", :null => false
|
771
|
+
t.datetime "updated_at", :null => false
|
772
|
+
end
|
773
|
+
|
774
|
+
add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
|
775
|
+
add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
|
776
|
+
add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
|
777
|
+
|
316
778
|
create_table "roles", :force => true do |t|
|
317
|
-
t.string "name"
|
318
|
-
t.
|
779
|
+
t.string "name", :null => false
|
780
|
+
t.string "display_name"
|
319
781
|
t.text "note"
|
782
|
+
t.datetime "created_at"
|
783
|
+
t.datetime "updated_at"
|
784
|
+
t.integer "score", :default => 0, :null => false
|
320
785
|
t.integer "position"
|
321
|
-
t.datetime "created_at", :null => false
|
322
|
-
t.datetime "updated_at", :null => false
|
323
786
|
end
|
324
787
|
|
325
788
|
create_table "search_engines", :force => true do |t|
|
@@ -336,6 +799,47 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
336
799
|
t.datetime "updated_at", :null => false
|
337
800
|
end
|
338
801
|
|
802
|
+
create_table "series_statement_merge_lists", :force => true do |t|
|
803
|
+
t.string "title"
|
804
|
+
t.datetime "created_at", :null => false
|
805
|
+
t.datetime "updated_at", :null => false
|
806
|
+
end
|
807
|
+
|
808
|
+
create_table "series_statement_merges", :force => true do |t|
|
809
|
+
t.integer "series_statement_id", :null => false
|
810
|
+
t.integer "series_statement_merge_list_id", :null => false
|
811
|
+
t.datetime "created_at", :null => false
|
812
|
+
t.datetime "updated_at", :null => false
|
813
|
+
end
|
814
|
+
|
815
|
+
add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
|
816
|
+
add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
|
817
|
+
|
818
|
+
create_table "series_statements", :force => true do |t|
|
819
|
+
t.text "original_title"
|
820
|
+
t.text "numbering"
|
821
|
+
t.text "title_subseries"
|
822
|
+
t.text "numbering_subseries"
|
823
|
+
t.integer "position"
|
824
|
+
t.datetime "created_at", :null => false
|
825
|
+
t.datetime "updated_at", :null => false
|
826
|
+
t.text "title_transcription"
|
827
|
+
t.text "title_alternative"
|
828
|
+
t.string "series_statement_identifier"
|
829
|
+
t.integer "manifestation_id"
|
830
|
+
t.text "note"
|
831
|
+
t.text "title_subseries_transcription"
|
832
|
+
t.text "creator_string"
|
833
|
+
t.text "volume_number_string"
|
834
|
+
t.text "volume_number_transcription_string"
|
835
|
+
t.boolean "series_master"
|
836
|
+
t.integer "root_manifestation_id"
|
837
|
+
end
|
838
|
+
|
839
|
+
add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
|
840
|
+
add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_root_manifestation_id"
|
841
|
+
add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
|
842
|
+
|
339
843
|
create_table "shelves", :force => true do |t|
|
340
844
|
t.string "name", :null => false
|
341
845
|
t.text "display_name"
|
@@ -419,6 +923,9 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
419
923
|
t.datetime "updated_at", :null => false
|
420
924
|
end
|
421
925
|
|
926
|
+
add_index "user_has_roles", ["role_id"], :name => "index_user_has_roles_on_role_id"
|
927
|
+
add_index "user_has_roles", ["user_id"], :name => "index_user_has_roles_on_user_id"
|
928
|
+
|
422
929
|
create_table "user_import_file_transitions", :force => true do |t|
|
423
930
|
t.string "to_state"
|
424
931
|
t.text "metadata", :default => "{}"
|
@@ -471,17 +978,9 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
471
978
|
t.datetime "created_at", :null => false
|
472
979
|
t.datetime "updated_at", :null => false
|
473
980
|
t.string "username"
|
474
|
-
t.string "user_number"
|
475
|
-
t.string "state"
|
476
|
-
t.string "locale"
|
477
981
|
t.datetime "deleted_at"
|
478
982
|
t.datetime "expired_at"
|
479
|
-
t.integer "
|
480
|
-
t.integer "required_role_id", :default => 1, :null => false
|
481
|
-
t.integer "user_group_id", :default => 1, :null => false
|
482
|
-
t.text "note"
|
483
|
-
t.text "keyword_list"
|
484
|
-
t.integer "failed_attempts"
|
983
|
+
t.integer "failed_attempts", :default => 0
|
485
984
|
t.string "unlock_token"
|
486
985
|
t.datetime "locked_at"
|
487
986
|
t.datetime "confirmed_at"
|
@@ -490,8 +989,6 @@ ActiveRecord::Schema.define(:version => 20140811031145) do
|
|
490
989
|
add_index "users", ["email"], :name => "index_users_on_email"
|
491
990
|
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
492
991
|
add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
|
493
|
-
add_index "users", ["user_group_id"], :name => "index_users_on_user_group_id"
|
494
|
-
add_index "users", ["user_number"], :name => "index_users_on_user_number", :unique => true
|
495
992
|
add_index "users", ["username"], :name => "index_users_on_username", :unique => true
|
496
993
|
|
497
994
|
create_table "versions", :force => true do |t|
|