Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-12-11 22:39:46 +0300
committerJeff King <peff@peff.net>2020-12-11 22:56:29 +0300
commit97d2d9a9d952dd755dfd556b78a580f075c3a6cd (patch)
tree729882561e95f7a64824a30eddaaac81cd44cb39 /db
parentb349b7e557091bfa5b06acdd6dbe23d457a68c76 (diff)
update rails files
This is basically "rake app:update", overwriting our versions in most cases (because we hadn't really changed anything substantive). The big exception is routes.rb, which is full of app logic.
Diffstat (limited to 'db')
-rw-r--r--db/schema.rb111
1 files changed, 52 insertions, 59 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 01c8bd94..bb5bfbfb 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1,115 +1,108 @@
-# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
-# Note that this schema.rb definition is the authoritative source for your
-# database schema. If you need to create the application database on another
-# system, you should be using db:schema:load, not running all the migrations
-# 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).
+# This file is the source Rails uses to define your schema when running `bin/rails
+# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
+# be faster and is potentially less error prone than running all of your
+# migrations from scratch. Old migrations may fail to apply correctly if those
+# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20190131210305) do
+ActiveRecord::Schema.define(version: 2019_01_31_210305) do
create_table "books", force: :cascade do |t|
- t.string "code"
+ t.string "code"
t.datetime "created_at"
t.datetime "updated_at"
- t.integer "edition", default: 1
- t.string "ebook_pdf"
- t.string "ebook_epub"
- t.string "ebook_mobi"
- t.string "ebook_html"
- t.boolean "processed"
- t.integer "percent_complete"
- t.string "language"
+ t.integer "edition", default: 1
+ t.string "ebook_pdf"
+ t.string "ebook_epub"
+ t.string "ebook_mobi"
+ t.string "ebook_html"
+ t.boolean "processed"
+ t.integer "percent_complete"
+ t.string "language"
+ t.index ["code"], name: "index_books_on_code"
end
- add_index "books", ["code"], name: "index_books_on_code"
-
create_table "chapters", force: :cascade do |t|
- t.string "title"
- t.integer "book_id"
+ t.string "title"
+ t.integer "book_id"
t.datetime "created_at"
t.datetime "updated_at"
- t.integer "number"
- t.string "sha"
- t.string "chapter_type", default: "chapter"
- t.string "chapter_number"
+ t.integer "number"
+ t.string "sha"
+ t.string "chapter_type", default: "chapter"
+ t.string "chapter_number"
+ t.index ["book_id"], name: "index_chapters_on_book_id"
end
- add_index "chapters", ["book_id"], name: "index_chapters_on_book_id"
-
create_table "doc_files", force: :cascade do |t|
- t.string "name"
+ t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
+ t.index ["name"], name: "index_doc_files_on_name"
end
- add_index "doc_files", ["name"], name: "index_doc_files_on_name"
-
create_table "doc_versions", force: :cascade do |t|
- t.integer "version_id"
- t.integer "doc_id"
- t.integer "doc_file_id"
+ t.integer "version_id"
+ t.integer "doc_id"
+ t.integer "doc_file_id"
t.datetime "created_at"
t.datetime "updated_at"
- t.string "language", default: "en"
+ t.string "language", default: "en"
end
create_table "docs", force: :cascade do |t|
- t.string "blob_sha"
- t.text "plain"
- t.text "html"
+ t.string "blob_sha"
+ t.text "plain"
+ t.text "html"
t.datetime "created_at"
t.datetime "updated_at"
+ t.index ["blob_sha"], name: "index_docs_on_blob_sha"
end
- add_index "docs", ["blob_sha"], name: "index_docs_on_blob_sha"
-
create_table "downloads", force: :cascade do |t|
- t.string "url"
- t.string "filename"
- t.string "platform"
- t.integer "version_id"
+ t.string "url"
+ t.string "filename"
+ t.string "platform"
+ t.integer "version_id"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "release_date"
end
create_table "sections", force: :cascade do |t|
- t.string "title"
- t.string "slug"
- t.text "plain"
- t.text "html"
- t.integer "chapter_id"
+ t.string "title"
+ t.string "slug"
+ t.text "plain"
+ t.text "html"
+ t.integer "chapter_id"
t.datetime "created_at"
t.datetime "updated_at"
- t.string "source_url"
- t.integer "number"
+ t.string "source_url"
+ t.integer "number"
+ t.index ["chapter_id"], name: "index_sections_on_chapter_id"
+ t.index ["slug"], name: "index_sections_on_slug"
end
- add_index "sections", ["chapter_id"], name: "index_sections_on_chapter_id"
- add_index "sections", ["slug"], name: "index_sections_on_slug"
-
create_table "versions", force: :cascade do |t|
- t.string "name"
- t.string "commit_sha"
- t.string "tree_sha"
+ t.string "name"
+ t.string "commit_sha"
+ t.string "tree_sha"
t.datetime "committed"
t.datetime "created_at"
t.datetime "updated_at"
- t.float "vorder"
+ t.float "vorder"
+ t.index ["name"], name: "index_versions_on_name"
end
- add_index "versions", ["name"], name: "index_versions_on_name"
-
create_table "xrefs", force: :cascade do |t|
t.integer "section_id"
t.integer "book_id"
- t.string "name"
+ t.string "name"
end
end