Permalink
Browse files

Re-generate schema

  • Loading branch information...
1 parent a7b945c commit 7ef4fe348c87161529a95f606465857809786535 @mvz mvz committed Dec 1, 2016
Showing with 21 additions and 32 deletions.
  1. +21 −32 db/schema.rb
View
@@ -1,4 +1,3 @@
-# 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.
@@ -19,11 +18,10 @@
create_table "articles_tags", id: false, force: :cascade do |t|
t.integer "article_id"
t.integer "tag_id"
+ t.index ["article_id"], name: "index_articles_tags_on_article_id", using: :btree
+ t.index ["tag_id"], name: "index_articles_tags_on_tag_id", using: :btree
end
- add_index "articles_tags", ["article_id"], name: "index_articles_tags_on_article_id", using: :btree
- add_index "articles_tags", ["tag_id"], name: "index_articles_tags_on_tag_id", using: :btree
-
create_table "blogs", force: :cascade do |t|
t.text "settings"
t.string "base_url"
@@ -53,13 +51,12 @@
t.text "settings"
t.string "post_type", default: "read"
t.integer "blog_id", null: false
+ t.index ["id", "type"], name: "index_contents_on_id_and_type", using: :btree
+ t.index ["published"], name: "index_contents_on_published", using: :btree
+ t.index ["text_filter_id"], name: "index_contents_on_text_filter_id", using: :btree
+ t.index ["user_id"], name: "index_contents_on_user_id", using: :btree
end
- add_index "contents", ["id", "type"], name: "index_contents_on_id_and_type", using: :btree
- add_index "contents", ["published"], name: "index_contents_on_published", using: :btree
- add_index "contents", ["text_filter_id"], name: "index_contents_on_text_filter_id", using: :btree
- add_index "contents", ["user_id"], name: "index_contents_on_user_id", using: :btree
-
create_table "feedback", force: :cascade do |t|
t.string "type"
t.string "title"
@@ -82,27 +79,24 @@
t.string "state"
t.boolean "status_confirmed"
t.string "user_agent"
+ t.index ["article_id"], name: "index_feedback_on_article_id", using: :btree
+ t.index ["id", "type"], name: "index_feedback_on_id_and_type", using: :btree
+ t.index ["text_filter_id"], name: "index_feedback_on_text_filter_id", using: :btree
+ t.index ["user_id"], name: "index_feedback_on_user_id", using: :btree
end
- add_index "feedback", ["article_id"], name: "index_feedback_on_article_id", using: :btree
- add_index "feedback", ["id", "type"], name: "index_feedback_on_id_and_type", using: :btree
- add_index "feedback", ["text_filter_id"], name: "index_feedback_on_text_filter_id", using: :btree
- add_index "feedback", ["user_id"], name: "index_feedback_on_user_id", using: :btree
-
create_table "page_caches", force: :cascade do |t|
t.string "name"
+ t.index ["name"], name: "index_page_caches_on_name", using: :btree
end
- add_index "page_caches", ["name"], name: "index_page_caches_on_name", using: :btree
-
create_table "pings", force: :cascade do |t|
t.integer "article_id"
t.string "url"
t.datetime "created_at"
+ t.index ["article_id"], name: "index_pings_on_article_id", using: :btree
end
- add_index "pings", ["article_id"], name: "index_pings_on_article_id", using: :btree
-
create_table "post_types", force: :cascade do |t|
t.string "name"
t.string "permalink"
@@ -134,30 +128,27 @@
t.string "itunes_category"
t.boolean "itunes_explicit"
t.integer "blog_id", null: false
+ t.index ["article_id"], name: "index_resources_on_article_id", using: :btree
end
- add_index "resources", ["article_id"], name: "index_resources_on_article_id", using: :btree
-
create_table "sessions", force: :cascade do |t|
t.string "session_id", null: false
t.text "data"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.index ["session_id"], name: "index_sessions_on_session_id", unique: true, using: :btree
+ t.index ["updated_at"], name: "index_sessions_on_updated_at", using: :btree
end
- add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", unique: true, using: :btree
- add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree
-
create_table "sidebars", force: :cascade do |t|
t.integer "active_position"
t.text "config"
t.integer "staged_position"
t.string "type"
t.integer "blog_id", null: false
+ t.index ["id", "type"], name: "index_sidebars_on_id_and_type", using: :btree
end
- add_index "sidebars", ["id", "type"], name: "index_sidebars_on_id_and_type", using: :btree
-
create_table "sitealizer", force: :cascade do |t|
t.string "path"
t.string "ip"
@@ -189,10 +180,9 @@
t.string "pending_item_type"
t.datetime "due_at"
t.string "trigger_method"
+ t.index ["pending_item_id", "pending_item_type"], name: "index_triggers_on_pending_item_id_and_pending_item_type", using: :btree
end
- add_index "triggers", ["pending_item_id", "pending_item_type"], name: "index_triggers_on_pending_item_id_and_pending_item_type", using: :btree
-
create_table "users", force: :cascade do |t|
t.string "login"
t.string "encrypted_password", default: "", null: false
@@ -219,11 +209,10 @@
t.datetime "created_at"
t.datetime "updated_at"
t.string "profile"
+ t.index ["email"], name: "index_users_on_email", unique: true, using: :btree
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
+ t.index ["resource_id"], name: "index_users_on_resource_id", using: :btree
+ t.index ["text_filter_id"], name: "index_users_on_text_filter_id", using: :btree
end
- add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
- add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
- add_index "users", ["resource_id"], name: "index_users_on_resource_id", using: :btree
- add_index "users", ["text_filter_id"], name: "index_users_on_text_filter_id", using: :btree
-
end

0 comments on commit 7ef4fe3

Please sign in to comment.