spec/dummy/db/schema.rb in enju_manifestation_viewer-0.1.0.pre16 vs spec/dummy/db/schema.rb in enju_manifestation_viewer-0.1.0.pre17
- old
+ new
@@ -9,39 +9,60 @@
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20130509185724) do
+ActiveRecord::Schema.define(version: 20141003182825) do
+ create_table "accepts", force: true do |t|
+ t.integer "basket_id"
+ t.integer "item_id"
+ t.integer "librarian_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
+ add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
+
+ create_table "agent_import_file_transitions", force: true do |t|
+ t.string "to_state"
+ t.text "metadata", default: "{}"
+ t.integer "sort_key"
+ t.integer "agent_import_file_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
+ 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
+
create_table "agent_import_files", force: true do |t|
t.integer "parent_id"
t.string "content_type"
t.integer "size"
t.integer "user_id"
t.text "note"
t.datetime "executed_at"
- t.string "state"
t.string "agent_import_file_name"
t.string "agent_import_content_type"
t.integer "agent_import_file_size"
t.datetime "agent_import_updated_at"
t.datetime "created_at"
t.datetime "updated_at"
t.string "agent_import_fingerprint"
t.text "error_message"
t.string "edit_mode"
+ t.string "user_encoding"
end
add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
- add_index "agent_import_files", ["state"], name: "index_agent_import_files_on_state"
add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
create_table "agent_import_results", force: true do |t|
t.integer "agent_import_file_id"
t.integer "agent_id"
- t.integer "user_id"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
end
@@ -90,11 +111,10 @@
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "agents", force: true do |t|
- t.integer "user_id"
t.string "last_name"
t.string "middle_name"
t.string "first_name"
t.string "last_name_transcription"
t.string "middle_name_transcription"
@@ -130,11 +150,10 @@
t.integer "agent_type_id", default: 1, null: false
t.integer "lock_version", default: 0, null: false
t.text "note"
t.integer "required_role_id", default: 1, null: false
t.integer "required_score", default: 0, null: false
- t.string "state"
t.text "email"
t.text "url"
t.text "full_name_alternative_transcription"
t.string "birth_date"
t.string "death_date"
@@ -144,46 +163,63 @@
add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
add_index "agents", ["country_id"], name: "index_agents_on_country_id"
add_index "agents", ["full_name"], name: "index_agents_on_full_name"
add_index "agents", ["language_id"], name: "index_agents_on_language_id"
add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
- add_index "agents", ["user_id"], name: "index_agents_on_user_id", unique: true
- create_table "carrier_types", force: true do |t|
- t.string "name", null: false
+ create_table "baskets", force: true do |t|
+ t.integer "user_id"
+ t.text "note"
+ t.integer "lock_version", default: 0, null: false
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
+
+ create_table "bookstores", force: true do |t|
+ t.text "name", null: false
+ t.string "zip_code"
+ t.text "address"
+ t.text "note"
+ t.string "telephone_number"
+ t.string "fax_number"
+ t.string "url"
+ t.integer "position"
+ t.datetime "deleted_at"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "budget_types", force: true do |t|
+ t.string "name"
t.text "display_name"
t.text "note"
t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
end
- create_table "classification_types", force: true do |t|
+ create_table "carrier_types", force: true do |t|
t.string "name", null: false
t.text "display_name"
t.text "note"
t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
end
- create_table "classifications", force: true do |t|
- t.integer "parent_id"
- t.string "category", null: false
- t.text "note"
- t.integer "classification_type_id", null: false
+ create_table "colors", force: true do |t|
+ t.integer "library_group_id"
+ t.string "property"
+ t.string "code"
+ t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
- t.integer "lft"
- t.integer "rgt"
- t.integer "manifestation_id"
end
- add_index "classifications", ["category"], name: "index_classifications_on_category"
- add_index "classifications", ["classification_type_id"], name: "index_classifications_on_classification_type_id"
- add_index "classifications", ["manifestation_id"], name: "index_classifications_on_manifestation_id"
- add_index "classifications", ["parent_id"], name: "index_classifications_on_parent_id"
+ add_index "colors", ["library_group_id"], name: "index_colors_on_library_group_id"
create_table "content_types", force: true do |t|
t.string "name", null: false
t.text "display_name"
t.text "note"
@@ -247,19 +283,10 @@
end
add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
- create_table "extents", force: true do |t|
- t.string "name", null: false
- t.text "display_name"
- t.text "note"
- t.integer "position"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
create_table "form_of_works", force: true do |t|
t.string "name", null: false
t.text "display_name"
t.text "note"
t.integer "position"
@@ -296,13 +323,24 @@
end
add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
+ create_table "import_request_transitions", force: true do |t|
+ t.string "to_state"
+ t.text "metadata", default: "{}"
+ t.integer "sort_key"
+ t.integer "import_request_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
+ add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
+
create_table "import_requests", force: true do |t|
t.string "isbn"
- t.string "state"
t.integer "manifestation_id"
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
end
@@ -315,26 +353,31 @@
t.string "call_number"
t.string "item_identifier"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "deleted_at"
- t.integer "shelf_id", default: 1, null: false
- t.boolean "include_supplements", default: false, null: false
+ t.integer "shelf_id", default: 1, null: false
+ t.boolean "include_supplements", default: false, null: false
t.text "note"
t.string "url"
t.integer "price"
- t.integer "lock_version", default: 0, null: false
- t.integer "required_role_id", default: 1, null: false
- t.string "state"
- t.integer "required_score", default: 0, null: false
+ t.integer "lock_version", default: 0, null: false
+ t.integer "required_role_id", default: 1, null: false
+ t.integer "required_score", default: 0, null: false
t.datetime "acquired_at"
t.integer "bookstore_id"
t.integer "budget_type_id"
+ t.string "binding_item_identifier"
+ t.string "binding_call_number"
+ t.datetime "binded_at"
+ t.integer "manifestation_id"
end
+ add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
+ add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
create_table "languages", force: true do |t|
t.string "name", null: false
@@ -350,10 +393,57 @@
add_index "languages", ["iso_639_1"], name: "index_languages_on_iso_639_1"
add_index "languages", ["iso_639_2"], name: "index_languages_on_iso_639_2"
add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
add_index "languages", ["name"], name: "index_languages_on_name", unique: true
+ create_table "libraries", force: true do |t|
+ t.string "name", null: false
+ t.text "display_name"
+ t.string "short_display_name", null: false
+ t.string "zip_code"
+ t.text "street"
+ t.text "locality"
+ t.text "region"
+ t.string "telephone_number_1"
+ t.string "telephone_number_2"
+ t.string "fax_number"
+ t.text "note"
+ t.integer "call_number_rows", default: 1, null: false
+ t.string "call_number_delimiter", default: "|", null: false
+ t.integer "library_group_id", default: 1, null: false
+ t.integer "users_count", default: 0, null: false
+ t.integer "position"
+ t.integer "country_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.datetime "deleted_at"
+ t.text "opening_hour"
+ t.string "isil"
+ t.float "latitude"
+ t.float "longitude"
+ end
+
+ add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
+ add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
+
+ create_table "library_groups", force: true do |t|
+ t.string "name", null: false
+ t.text "display_name"
+ t.string "short_name", null: false
+ t.text "my_networks"
+ t.text "login_banner"
+ t.text "note"
+ t.integer "country_id"
+ t.integer "position"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.text "admin_networks"
+ t.string "url", default: "http://localhost:3000/"
+ end
+
+ add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
+
create_table "licenses", force: true do |t|
t.string "name", null: false
t.string "display_name"
t.text "note"
t.integer "position"
@@ -394,11 +484,10 @@
t.datetime "updated_at"
t.datetime "deleted_at"
t.string "access_address"
t.integer "language_id", default: 1, null: false
t.integer "carrier_type_id", default: 1, null: false
- t.integer "extent_id", default: 1, null: false
t.integer "start_page"
t.integer "end_page"
t.integer "height"
t.integer "width"
t.integer "depth"
@@ -410,11 +499,10 @@
t.integer "edition"
t.text "note"
t.boolean "repository_content", default: false, null: false
t.integer "lock_version", default: 0, null: false
t.integer "required_role_id", default: 1, null: false
- t.string "state"
t.integer "required_score", default: 0, null: false
t.integer "frequency_id", default: 1, null: false
t.boolean "subscription_master", default: false, null: false
t.string "attachment_file_name"
t.string "attachment_content_type"
@@ -431,26 +519,25 @@
t.string "pub_date"
t.string "edition_string"
t.integer "volume_number"
t.integer "issue_number"
t.integer "serial_number"
- t.string "ndc"
t.integer "content_type_id", default: 1
t.integer "year_of_publication"
t.text "attachment_meta"
t.integer "month_of_publication"
- t.string "doi"
- t.boolean "periodical"
+ t.boolean "fulltext_content"
+ t.boolean "serial"
t.text "statement_of_responsibility"
+ t.text "publication_place"
+ t.text "extent"
+ t.text "dimensions"
end
add_index "manifestations", ["access_address"], name: "index_manifestations_on_access_address"
- add_index "manifestations", ["carrier_type_id"], name: "index_manifestations_on_carrier_type_id"
- add_index "manifestations", ["doi"], name: "index_manifestations_on_doi"
- add_index "manifestations", ["frequency_id"], name: "index_manifestations_on_frequency_id"
+ add_index "manifestations", ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
- add_index "manifestations", ["required_role_id"], name: "index_manifestations_on_required_role_id"
add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
create_table "medium_of_performances", force: true do |t|
t.string "name", null: false
t.text "display_name"
@@ -509,10 +596,30 @@
end
add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
+ create_table "profiles", force: true do |t|
+ t.integer "user_id"
+ t.integer "user_group_id"
+ t.integer "library_id"
+ t.string "locale"
+ t.string "user_number"
+ t.text "full_name"
+ t.text "note"
+ t.text "keyword_list"
+ t.integer "required_role_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.datetime "expired_at"
+ t.text "full_name_transcription"
+ t.datetime "date_of_birth"
+ end
+
+ add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
+ add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
+
create_table "realize_types", force: true do |t|
t.string "name"
t.text "display_name"
t.text "note"
t.integer "position"
@@ -530,66 +637,124 @@
end
add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
+ create_table "request_status_types", force: true do |t|
+ t.string "name", null: false
+ t.text "display_name"
+ t.text "note"
+ t.integer "position"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "request_types", force: true do |t|
+ t.string "name", null: false
+ t.text "display_name"
+ t.text "note"
+ t.integer "position"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "resource_export_file_transitions", force: true do |t|
+ t.string "to_state"
+ t.text "metadata", default: "{}"
+ t.integer "sort_key"
+ t.integer "resource_export_file_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
+ 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
+
+ create_table "resource_export_files", force: true do |t|
+ t.integer "user_id"
+ t.string "resource_export_file_name"
+ t.string "resource_export_content_type"
+ t.integer "resource_export_file_size"
+ t.datetime "resource_export_updated_at"
+ t.datetime "executed_at"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "resource_import_file_transitions", force: true do |t|
+ t.string "to_state"
+ t.text "metadata", default: "{}"
+ t.integer "sort_key"
+ t.integer "resource_import_file_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
+ 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
+
create_table "resource_import_files", force: true do |t|
t.integer "parent_id"
t.string "content_type"
t.integer "size"
t.integer "user_id"
t.text "note"
t.datetime "executed_at"
- t.string "state"
t.string "resource_import_file_name"
t.string "resource_import_content_type"
t.integer "resource_import_file_size"
t.datetime "resource_import_updated_at"
t.datetime "created_at"
t.datetime "updated_at"
t.string "edit_mode"
t.string "resource_import_fingerprint"
t.text "error_message"
+ t.string "user_encoding"
+ t.integer "default_shelf_id"
end
add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
- add_index "resource_import_files", ["state"], name: "index_resource_import_files_on_state"
add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
create_table "resource_import_results", force: true do |t|
t.integer "resource_import_file_id"
t.integer "manifestation_id"
t.integer "item_id"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
+ t.text "error_message"
end
add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
create_table "roles", force: true do |t|
- t.string "name"
- t.text "display_name"
+ t.string "name", null: false
+ t.string "display_name"
t.text "note"
- t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
+ t.integer "score", default: 0, null: false
+ t.integer "position"
end
- create_table "series_has_manifestations", force: true do |t|
- t.integer "series_statement_id"
- t.integer "manifestation_id"
+ create_table "search_engines", force: true do |t|
+ t.string "name", null: false
+ t.text "display_name"
+ t.string "url", null: false
+ t.text "base_url", null: false
+ t.text "http_method", null: false
+ t.text "query_param", null: false
+ t.text "additional_param"
+ t.text "note"
t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
end
- add_index "series_has_manifestations", ["manifestation_id"], name: "index_series_has_manifestations_on_manifestation_id"
- add_index "series_has_manifestations", ["series_statement_id"], name: "index_series_has_manifestations_on_series_statement_id"
-
create_table "series_statement_merge_lists", force: true do |t|
t.string "title"
t.datetime "created_at"
t.datetime "updated_at"
end
@@ -613,12 +778,10 @@
t.datetime "created_at"
t.datetime "updated_at"
t.text "title_transcription"
t.text "title_alternative"
t.string "series_statement_identifier"
- t.string "issn"
- t.boolean "periodical"
t.integer "manifestation_id"
t.text "note"
t.text "title_subseries_transcription"
t.text "creator_string"
t.text "volume_number_string"
@@ -629,112 +792,160 @@
add_index "series_statements", ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
- create_table "subject_has_classifications", force: true do |t|
- t.integer "subject_id"
- t.string "subject_type"
- t.integer "classification_id", null: false
+ create_table "shelves", force: true do |t|
+ t.string "name", null: false
+ t.text "display_name"
+ t.text "note"
+ t.integer "library_id", default: 1, null: false
+ t.integer "items_count", default: 0, null: false
+ t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
+ t.datetime "deleted_at"
+ t.boolean "closed", default: false, null: false
end
- add_index "subject_has_classifications", ["classification_id"], name: "index_subject_has_classifications_on_classification_id"
- add_index "subject_has_classifications", ["subject_id"], name: "index_subject_has_classifications_on_subject_id"
+ add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
- create_table "subject_heading_type_has_subjects", force: true do |t|
- t.integer "subject_id", null: false
- t.string "subject_type"
- t.integer "subject_heading_type_id", null: false
+ create_table "subscribes", force: true do |t|
+ t.integer "subscription_id", null: false
+ t.integer "work_id", null: false
+ t.datetime "start_at", null: false
+ t.datetime "end_at", null: false
t.datetime "created_at"
t.datetime "updated_at"
end
- add_index "subject_heading_type_has_subjects", ["subject_id"], name: "index_subject_heading_type_has_subjects_on_subject_id"
+ add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
+ add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
- create_table "subject_heading_types", force: true do |t|
- t.string "name", null: false
- t.text "display_name"
+ create_table "subscriptions", force: true do |t|
+ t.text "title", null: false
t.text "note"
- t.integer "position"
+ t.integer "user_id"
+ t.integer "order_list_id"
+ t.datetime "deleted_at"
+ t.integer "subscribes_count", default: 0, null: false
t.datetime "created_at"
t.datetime "updated_at"
end
- create_table "subject_types", force: true do |t|
- t.string "name", null: false
- t.text "display_name"
- t.text "note"
- t.integer "position"
+ add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
+ add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
+
+ create_table "user_export_file_transitions", force: true do |t|
+ t.string "to_state"
+ t.text "metadata", default: "{}"
+ t.integer "sort_key"
+ t.integer "user_export_file_id"
t.datetime "created_at"
t.datetime "updated_at"
end
- create_table "subjects", force: true do |t|
- t.integer "parent_id"
- t.integer "use_term_id"
- t.string "term"
- t.text "term_transcription"
- t.integer "subject_type_id", null: false
- t.text "scope_note"
+ 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
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
+
+ create_table "user_export_files", force: true do |t|
+ t.integer "user_id"
+ t.string "user_export_file_name"
+ t.string "user_export_content_type"
+ t.integer "user_export_file_size"
+ t.datetime "user_export_updated_at"
+ t.datetime "executed_at"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "user_groups", force: true do |t|
+ t.string "name"
+ t.text "display_name"
t.text "note"
- t.integer "required_role_id", default: 1, null: false
- t.integer "lock_version", default: 0, null: false
+ t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "deleted_at"
- t.string "url"
- t.integer "manifestation_id"
- t.integer "subject_heading_type_id"
+ t.integer "valid_period_for_new_user", default: 0, null: false
+ t.datetime "expired_at"
end
- add_index "subjects", ["manifestation_id"], name: "index_subjects_on_manifestation_id"
- add_index "subjects", ["parent_id"], name: "index_subjects_on_parent_id"
- add_index "subjects", ["required_role_id"], name: "index_subjects_on_required_role_id"
- add_index "subjects", ["subject_type_id"], name: "index_subjects_on_subject_type_id"
- add_index "subjects", ["term"], name: "index_subjects_on_term"
- add_index "subjects", ["use_term_id"], name: "index_subjects_on_use_term_id"
-
create_table "user_has_roles", force: true do |t|
t.integer "user_id"
t.integer "role_id"
t.datetime "created_at"
t.datetime "updated_at"
end
- create_table "users", force: true do |t|
- t.integer "user_group_id"
- t.integer "required_role_id"
- t.string "username"
+ add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
+ add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
+
+ create_table "user_import_file_transitions", force: true do |t|
+ t.string "to_state"
+ t.text "metadata", default: "{}"
+ t.integer "sort_key"
+ t.integer "user_import_file_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ 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
+ add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
+
+ create_table "user_import_files", force: true do |t|
+ t.integer "user_id"
t.text "note"
- t.string "locale"
+ t.datetime "executed_at"
+ t.string "user_import_file_name"
+ t.string "user_import_content_type"
+ t.string "user_import_file_size"
+ t.datetime "user_import_updated_at"
+ t.string "user_import_fingerprint"
+ t.string "edit_mode"
+ t.text "error_message"
t.datetime "created_at"
t.datetime "updated_at"
+ t.string "user_encoding"
+ t.integer "default_library_id"
+ t.integer "default_user_group_id"
+ end
+
+ create_table "user_import_results", force: true do |t|
+ t.integer "user_import_file_id"
+ t.integer "user_id"
+ t.text "body"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "users", force: true do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", default: 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
- t.string "password_salt"
- t.string "confirmation_token"
- t.datetime "confirmed_at"
- t.datetime "confirmation_sent_at"
- t.string "unconfirmed_email"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.string "username"
+ t.datetime "deleted_at"
+ t.datetime "expired_at"
t.integer "failed_attempts", default: 0
t.string "unlock_token"
t.datetime "locked_at"
- t.string "authentication_token"
+ t.datetime "confirmed_at"
end
add_index "users", ["email"], name: "index_users_on_email"
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
+ add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
+ add_index "users", ["username"], name: "index_users_on_username", unique: true
create_table "versions", force: true do |t|
t.string "item_type", null: false
t.integer "item_id", null: false
t.string "event", null: false
@@ -742,19 +953,7 @@
t.text "object"
t.datetime "created_at"
end
add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
-
- create_table "work_has_subjects", force: true do |t|
- t.integer "subject_id"
- t.string "subject_type"
- t.integer "work_id"
- t.integer "position"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "work_has_subjects", ["subject_id"], name: "index_work_has_subjects_on_subject_id"
- add_index "work_has_subjects", ["work_id"], name: "index_work_has_subjects_on_work_id"
end