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:
authorbry4n <bryann83@gmail.com>2014-07-29 04:08:41 +0400
committerbry4n <bryann83@gmail.com>2014-07-29 04:08:41 +0400
commit5f3af6ffbb5378cfc243a97829e7999d9aab13f0 (patch)
treec5b577d05d6412d22f99779768a88fa1c9b36e9a /db
parent1060b5cb158195a14d0c76acd934754c6dc1a0a3 (diff)
Rename database.yml
Diffstat (limited to 'db')
-rw-r--r--db/schema.rb75
1 files changed, 39 insertions, 36 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 8549b90f..4d62523d 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,101 +9,104 @@
# 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.
+# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20121211011752) do
+ActiveRecord::Schema.define(version: 20121211011752) do
- create_table "books", :force => true do |t|
+ # 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", :null => false
- t.datetime "updated_at", :null => false
+ 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|
+ create_table "chapters", force: true do |t|
t.string "title"
t.integer "book_id"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.integer "number"
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|
+ create_table "doc_files", force: true do |t|
t.string "name"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ 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|
+ create_table "doc_versions", force: true do |t|
t.integer "version_id"
t.integer "doc_id"
t.integer "doc_file_id"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
- create_table "docs", :force => true do |t|
+ create_table "docs", force: true do |t|
t.string "blob_sha"
t.text "plain"
t.text "html"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ 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|
+ create_table "downloads", force: true do |t|
t.string "url"
t.string "filename"
t.string "platform"
t.integer "version_id"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.datetime "release_date"
end
- create_table "related_items", :force => true do |t|
+ create_table "related_items", force: true do |t|
t.string "name"
t.string "content_type"
t.string "content_url"
t.string "related_type"
t.string "related_id"
t.integer "score"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
- create_table "sections", :force => true do |t|
+ create_table "sections", force: true do |t|
t.string "title"
t.string "slug"
t.text "plain"
t.text "html"
t.integer "chapter_id"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.string "source_url"
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|
+ create_table "versions", force: true do |t|
t.string "name"
t.string "commit_sha"
t.string "tree_sha"
t.datetime "committed"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
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