spec/dummy/db/schema.rb in enju_leaf-1.1.0.rc9 vs spec/dummy/db/schema.rb in enju_leaf-1.1.0.rc10

- 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 to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20140110131010) do +ActiveRecord::Schema.define(:version => 20140610123439) do create_table "accepts", :force => true do |t| t.integer "basket_id" t.integer "item_id" t.integer "librarian_id" @@ -276,10 +276,32 @@ t.integer "position" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end + create_table "identifier_types", :force => true do |t| + t.string "name" + t.text "display_name" + t.text "note" + t.integer "position" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "identifiers", :force => true do |t| + t.string "body", :null => false + t.integer "identifier_type_id", :null => false + t.integer "manifestation_id" + t.boolean "primary" + t.integer "position" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + 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_requests", :force => true do |t| t.string "isbn" t.string "state" t.integer "manifestation_id" t.integer "user_id" @@ -472,10 +494,11 @@ t.integer "year_of_publication" t.text "attachment_meta" t.integer "month_of_publication" t.boolean "fulltext_content" t.string "doi" + t.boolean "periodical" end add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address" add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi" add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn" @@ -544,10 +567,28 @@ 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.string "state" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id" + add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number" + create_table "realize_types", :force => true do |t| t.string "name" t.text "display_name" t.text "note" t.integer "position" @@ -694,13 +735,15 @@ t.string "issn" t.boolean "periodical", :default => false, :null => false t.integer "manifestation_id" t.text "note" t.text "title_subseries_transcription" + t.integer "root_manifestation_id" end 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 "shelves", :force => true do |t| t.string "name", :null => false t.text "display_name" @@ -765,10 +808,22 @@ end 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", :null => false + t.datetime "updated_at", :null => false + 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.datetime "executed_at" t.string "state" @@ -819,10 +874,10 @@ t.string "unlock_token" t.datetime "locked_at" t.datetime "confirmed_at" end - add_index "users", ["email"], :name => "index_users_on_email", :unique => true + 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", ["user_group_id"], :name => "index_users_on_user_group_id" add_index "users", ["user_number"], :name => "index_users_on_user_number", :unique => true add_index "users", ["username"], :name => "index_users_on_username", :unique => true