spec/dummy/db/schema.rb in knowledge_base-0.1.0 vs spec/dummy/db/schema.rb in knowledge_base-0.2.0

- 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 that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20140307092719) do +ActiveRecord::Schema.define(version: 20140930121510) do create_table "knowledge_base_articles", force: true do |t| t.string "title" t.string "slug" t.text "description" @@ -25,11 +25,11 @@ create_table "knowledge_base_categories", force: true do |t| t.string "title" t.string "slug" t.text "description" t.integer "category_id" - t.integer "position" + t.integer "position", default: 0 t.datetime "published_at" t.datetime "created_at" t.datetime "updated_at" end @@ -37,29 +37,46 @@ add_index "knowledge_base_categories", ["slug"], name: "index_knowledge_base_categories_on_slug", unique: true create_table "knowledge_base_category_article_associations", force: true do |t| t.integer "category_id" t.integer "article_id" - t.integer "position" + t.integer "position", default: 0 t.datetime "created_at" t.datetime "updated_at" end add_index "knowledge_base_category_article_associations", ["article_id"], name: "index_knowledge_base_c_a_association_on_article_id" add_index "knowledge_base_category_article_associations", ["category_id"], name: "index_knowledge_base_c_a_association_on_category_id" + create_table "knowledge_base_sectionables_attachments_attachments", force: true do |t| + t.string "title" + t.string "file" + t.integer "attachment_list_id" + t.text "description" + end + + add_index "knowledge_base_sectionables_attachments_attachments", ["attachment_list_id"], name: "index_knowledge_base_attachments_on_attachment_list_id" + + create_table "knowledge_base_sectionables_attachments_lists", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + t.string "style" + t.string "title" + end + create_table "knowledge_base_sectionables_galleries", force: true do |t| t.string "title" - t.string "description" + t.text "description" t.datetime "created_at" t.datetime "updated_at" + t.string "style" end create_table "knowledge_base_sectionables_gallery_images", force: true do |t| t.string "caption" t.string "image" - t.integer "position" + t.integer "position", default: 0 t.integer "gallery_id" t.datetime "created_at" t.datetime "updated_at" end @@ -68,30 +85,33 @@ create_table "knowledge_base_sectionables_images", force: true do |t| t.text "caption" t.string "image" t.datetime "created_at" t.datetime "updated_at" + t.string "style" end - create_table "knowledge_base_sectionables_links", force: true do |t| - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "knowledge_base_sectionables_links_links", force: true do |t| t.string "title" t.string "url" - t.integer "position" + t.integer "position", default: 0 t.integer "links_id" t.datetime "created_at" t.datetime "updated_at" + t.text "description" end + create_table "knowledge_base_sectionables_links_lists", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + t.string "style" + end + create_table "knowledge_base_sectionables_list_items", force: true do |t| t.string "title" t.text "body" - t.integer "position" + t.integer "position", default: 0 t.integer "list_id" t.datetime "created_at" t.datetime "updated_at" end @@ -100,29 +120,35 @@ create_table "knowledge_base_sectionables_lists", force: true do |t| t.string "title" t.text "description" t.datetime "created_at" t.datetime "updated_at" + t.string "image" + t.string "style" end create_table "knowledge_base_sectionables_texts", force: true do |t| t.string "heading" t.text "lead" t.text "body" t.datetime "created_at" t.datetime "updated_at" + t.string "image" + t.string "style" end create_table "knowledge_base_sectionables_videos", force: true do |t| t.string "url" t.datetime "created_at" t.datetime "updated_at" + t.string "style" + t.string "title" end create_table "knowledge_base_sections", force: true do |t| t.integer "sectionable_id" t.string "sectionable_type" - t.integer "position" + t.integer "position", default: 0 t.datetime "created_at" t.datetime "updated_at" t.integer "container_id" t.string "container_type" end