diff options
author | bry4n <bryann83@gmail.com> | 2014-07-30 08:09:46 +0400 |
---|---|---|
committer | bry4n <bryann83@gmail.com> | 2014-07-30 08:09:46 +0400 |
commit | 2d7109f1ef86b15170a68c7d8e352b649f2f78f5 (patch) | |
tree | 06f99f3c717a73abab8d1eb7e8594fdb0b4a1ce0 /db | |
parent | 189ab3ad5ad48e24d5aa1db1784ab293b23dcfa1 (diff) |
Add git-rev to Patching [#424]
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/db/schema.rb b/db/schema.rb index 10359179..4d62523d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -13,13 +13,16 @@ ActiveRecord::Schema.define(version: 20121211011752) do + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + create_table "books", force: true do |t| t.string "code" t.datetime "created_at" t.datetime "updated_at" end - add_index "books", ["code"], name: "index_books_on_code" + add_index "books", ["code"], name: "index_books_on_code", using: :btree create_table "chapters", force: true do |t| t.string "title" @@ -30,7 +33,7 @@ ActiveRecord::Schema.define(version: 20121211011752) do t.string "sha" end - add_index "chapters", ["book_id"], name: "index_chapters_on_book_id" + add_index "chapters", ["book_id"], name: "index_chapters_on_book_id", using: :btree create_table "doc_files", force: true do |t| t.string "name" @@ -38,7 +41,7 @@ ActiveRecord::Schema.define(version: 20121211011752) do t.datetime "updated_at" end - add_index "doc_files", ["name"], name: "index_doc_files_on_name" + add_index "doc_files", ["name"], name: "index_doc_files_on_name", using: :btree create_table "doc_versions", force: true do |t| t.integer "version_id" @@ -56,7 +59,7 @@ ActiveRecord::Schema.define(version: 20121211011752) do t.datetime "updated_at" end - add_index "docs", ["blob_sha"], name: "index_docs_on_blob_sha" + add_index "docs", ["blob_sha"], name: "index_docs_on_blob_sha", using: :btree create_table "downloads", force: true do |t| t.string "url" @@ -91,8 +94,8 @@ ActiveRecord::Schema.define(version: 20121211011752) do t.integer "number" end - add_index "sections", ["chapter_id"], name: "index_sections_on_chapter_id" - add_index "sections", ["slug"], name: "index_sections_on_slug" + add_index "sections", ["chapter_id"], name: "index_sections_on_chapter_id", using: :btree + add_index "sections", ["slug"], name: "index_sections_on_slug", using: :btree create_table "versions", force: true do |t| t.string "name" @@ -104,6 +107,6 @@ ActiveRecord::Schema.define(version: 20121211011752) do t.float "vorder" end - add_index "versions", ["name"], name: "index_versions_on_name" + add_index "versions", ["name"], name: "index_versions_on_name", using: :btree end |