spec/dummy/db/schema.rb in enju_leaf-1.2.1 vs spec/dummy/db/schema.rb in enju_leaf-1.2.2
- old
+ new
@@ -9,11 +9,11 @@
# 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: 20160813203039) do
+ActiveRecord::Schema.define(version: 20180102162311) do
create_table "accepts", force: :cascade do |t|
t.integer "basket_id"
t.integer "item_id"
t.integer "librarian_id"
@@ -21,18 +21,20 @@
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"
+ add_index "accepts", ["librarian_id"], name: "index_accepts_on_librarian_id"
create_table "agent_import_file_transitions", force: :cascade 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"
+ t.boolean "most_recent"
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
@@ -156,16 +158,18 @@
t.text "url"
t.text "full_name_alternative_transcription"
t.string "birth_date"
t.string "death_date"
t.string "agent_identifier"
+ t.integer "profile_id"
end
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", ["profile_id"], name: "index_agents_on_profile_id"
add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
create_table "baskets", force: :cascade do |t|
t.integer "user_id"
t.text "note"
@@ -258,16 +262,20 @@
add_index "carrier_type_has_checkout_types", ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
create_table "carrier_types", force: :cascade do |t|
- t.string "name", null: false
+ t.string "name", null: false
t.text "display_name"
t.text "note"
t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
+ t.string "attachment_file_name"
+ t.string "attachment_content_type"
+ t.integer "attachment_file_size"
+ t.datetime "attachment_updated_at"
end
create_table "checked_items", force: :cascade do |t|
t.integer "item_id", null: false
t.integer "basket_id", null: false
@@ -542,10 +550,11 @@
t.text "metadata", default: "{}"
t.integer "sort_key"
t.integer "import_request_id"
t.datetime "created_at"
t.datetime "updated_at"
+ t.boolean "most_recent"
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
@@ -603,11 +612,11 @@
t.integer "circulation_status_id", default: 5, null: false
t.integer "checkout_type_id", default: 1, null: false
t.string "binding_item_identifier"
t.string "binding_call_number"
t.datetime "binded_at"
- t.integer "manifestation_id"
+ t.integer "manifestation_id", null: false
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", ["checkout_type_id"], name: "index_items_on_checkout_type_id"
@@ -660,11 +669,11 @@
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 "library_group_id", 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"
@@ -674,11 +683,11 @@
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
+ add_index "libraries", ["name"], name: "index_libraries_on_name"
create_table "library_group_translations", force: :cascade do |t|
t.integer "library_group_id", null: false
t.string "locale", null: false
t.datetime "created_at", null: false
@@ -693,11 +702,11 @@
create_table "library_groups", force: :cascade 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 "old_login_banner"
t.text "note"
t.integer "country_id"
t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
@@ -710,10 +719,16 @@
t.integer "max_number_of_results", default: 500
t.boolean "family_name_first", default: true
t.string "screenshot_generator"
t.integer "pub_year_facet_range_interval", default: 10
t.integer "user_id"
+ t.boolean "csv_charset_conversion", default: false, null: false
+ t.string "header_logo_file_name"
+ t.string "header_logo_content_type"
+ t.integer "header_logo_file_size"
+ t.datetime "header_logo_updated_at"
+ t.text "header_logo_meta"
end
add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
add_index "library_groups", ["user_id"], name: "index_library_groups_on_user_id"
@@ -840,11 +855,11 @@
t.text "abstract"
t.datetime "available_at"
t.datetime "valid_until"
t.datetime "date_submitted"
t.datetime "date_accepted"
- t.datetime "date_caputured"
+ t.datetime "date_captured"
t.string "pub_date"
t.string "edition_string"
t.integer "volume_number"
t.integer "issue_number"
t.integer "serial_number"
@@ -969,10 +984,12 @@
t.string "picture_content_type"
t.integer "picture_file_size"
t.datetime "picture_updated_at"
t.text "picture_meta"
t.string "picture_fingerprint"
+ t.integer "picture_width"
+ t.integer "picture_height"
end
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
create_table "produce_types", force: :cascade do |t|
@@ -1125,10 +1142,11 @@
t.text "metadata", default: "{}"
t.integer "sort_key"
t.integer "resource_export_file_id"
t.datetime "created_at"
t.datetime "updated_at"
+ t.boolean "most_recent"
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
@@ -1148,10 +1166,11 @@
t.text "metadata", default: "{}"
t.integer "sort_key"
t.integer "resource_import_file_id"
t.datetime "created_at"
t.datetime "updated_at"
+ t.boolean "most_recent"
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
@@ -1306,11 +1325,11 @@
create_table "shelves", force: :cascade do |t|
t.string "name", null: false
t.text "display_name"
t.text "note"
- t.integer "library_id", default: 1, null: false
+ t.integer "library_id", 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"
@@ -1411,10 +1430,11 @@
t.boolean "most_recent"
end
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"
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
create_table "user_export_files", force: :cascade do |t|
t.integer "user_id"
t.string "user_export_file_name"
t.string "user_export_content_type"
@@ -1423,10 +1443,12 @@
t.datetime "executed_at"
t.datetime "created_at"
t.datetime "updated_at"
end
+ add_index "user_export_files", ["user_id"], name: "index_user_export_files_on_user_id"
+
create_table "user_group_has_checkout_types", force: :cascade do |t|
t.integer "user_group_id", null: false
t.integer "checkout_type_id", null: false
t.integer "checkout_limit", default: 0, null: false
t.integer "checkout_period", default: 0, null: false
@@ -1499,19 +1521,24 @@
t.string "user_encoding"
t.integer "default_library_id"
t.integer "default_user_group_id"
end
+ add_index "user_import_files", ["user_id"], name: "index_user_import_files_on_user_id"
+
create_table "user_import_results", force: :cascade do |t|
t.integer "user_import_file_id"
t.integer "user_id"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
t.text "error_message"
end
+ add_index "user_import_results", ["user_id"], name: "index_user_import_results_on_user_id"
+ add_index "user_import_results", ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
+
create_table "user_reserve_stat_transitions", force: :cascade do |t|
t.string "to_state"
t.text "metadata", default: "{}"
t.integer "sort_key"
t.integer "user_reserve_stat_id"
@@ -1576,7 +1603,8 @@
t.datetime "updated_at", null: false
end
add_index "withdraws", ["basket_id"], name: "index_withdraws_on_basket_id"
add_index "withdraws", ["item_id"], name: "index_withdraws_on_item_id"
+ add_index "withdraws", ["librarian_id"], name: "index_withdraws_on_librarian_id"
end