spec/dummy/db/schema.rb in enju_manifestation_viewer-0.3.1 vs spec/dummy/db/schema.rb in enju_manifestation_viewer-0.3.2
- old
+ new
@@ -8,20 +8,21 @@
# 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: 20180107161410) do
+ActiveRecord::Schema.define(version: 2018_01_07_161410) do
create_table "accepts", force: :cascade do |t|
t.integer "basket_id"
t.integer "item_id"
t.integer "librarian_id"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["basket_id"], name: "index_accepts_on_basket_id"
t.index ["item_id"], name: "index_accepts_on_item_id"
+ t.index ["librarian_id"], name: "index_accepts_on_librarian_id"
end
create_table "agent_import_file_transitions", force: :cascade do |t|
t.string "to_state"
t.text "metadata", default: "{}"
@@ -399,11 +400,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"
@@ -411,11 +412,11 @@
t.text "opening_hour"
t.string "isil"
t.float "latitude"
t.float "longitude"
t.index ["library_group_id"], name: "index_libraries_on_library_group_id"
- t.index ["name"], name: "index_libraries_on_name", unique: true
+ t.index ["name"], name: "index_libraries_on_name"
end
create_table "library_group_translations", force: :cascade do |t|
t.integer "library_group_id", null: false
t.string "locale", null: false
@@ -528,11 +529,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"
@@ -681,10 +682,14 @@
t.index ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
end
create_table "resource_export_files", force: :cascade 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
@@ -801,11 +806,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"
@@ -846,17 +851,23 @@
t.datetime "updated_at"
t.boolean "most_recent", null: false
t.index ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
t.index ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
+ t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
end
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"
+ t.integer "user_export_file_size"
+ t.datetime "user_export_updated_at"
t.datetime "executed_at"
t.datetime "created_at"
t.datetime "updated_at"
+ t.index ["user_id"], name: "index_user_export_files_on_user_id"
end
create_table "user_groups", force: :cascade do |t|
t.string "name"
t.text "display_name"
@@ -895,28 +906,31 @@
t.integer "user_id"
t.text "note"
t.datetime "executed_at"
t.string "user_import_file_name"
t.string "user_import_content_type"
- t.string "user_import_file_size"
+ t.integer "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"
+ t.index ["user_id"], name: "index_user_import_files_on_user_id"
end
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"
+ t.index ["user_id"], name: "index_user_import_results_on_user_id"
+ t.index ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
end
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false