Skip to content
This repository
file 142 lines (122 sloc) 5.212 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
# 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).
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20120209231801) do

  create_table "assets", :force => true do |t|
    t.string "caption"
    t.string "title"
    t.string "asset_file_name"
    t.string "asset_content_type"
    t.integer "asset_file_size"
    t.integer "created_by_id"
    t.integer "updated_by_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string "uuid"
    t.integer "original_width"
    t.integer "original_height"
    t.string "original_extension"
  end

  create_table "config", :force => true do |t|
    t.string "key", :limit => 40, :default => "", :null => false
    t.string "value", :default => ""
  end

  add_index "config", ["key"], :name => "key", :unique => true

  create_table "extension_meta", :force => true do |t|
    t.string "name"
    t.integer "schema_version", :default => 0
    t.boolean "enabled", :default => true
  end

  create_table "layouts", :force => true do |t|
    t.string "name", :limit => 100
    t.text "content"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "created_by_id"
    t.integer "updated_by_id"
    t.string "content_type", :limit => 40
    t.integer "lock_version", :default => 0
  end

  create_table "page_attachments", :force => true do |t|
    t.integer "asset_id"
    t.integer "page_id"
    t.integer "position"
  end

  create_table "page_fields", :force => true do |t|
    t.integer "page_id"
    t.string "name"
    t.string "content"
  end

  add_index "page_fields", ["page_id", "name", "content"], :name => "index_page_fields_on_page_id_and_name_and_content"

  create_table "page_parts", :force => true do |t|
    t.string "name", :limit => 100
    t.string "filter_id", :limit => 25
    t.text "content"
    t.integer "page_id"
  end

  add_index "page_parts", ["page_id", "name"], :name => "parts_by_page"

  create_table "pages", :force => true do |t|
    t.string "title"
    t.string "slug", :limit => 100
    t.string "breadcrumb", :limit => 160
    t.string "class_name", :limit => 25
    t.integer "status_id", :default => 1, :null => false
    t.integer "parent_id"
    t.integer "layout_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.datetime "published_at"
    t.integer "created_by_id"
    t.integer "updated_by_id"
    t.boolean "virtual", :default => false, :null => false
    t.integer "lock_version", :default => 0
    t.text "allowed_children_cache", :limit => 1500, :default => ""
  end

  add_index "pages", ["class_name"], :name => "altered_pages_class_name"
  add_index "pages", ["parent_id"], :name => "altered_pages_parent_id"
  add_index "pages", ["slug", "parent_id"], :name => "altered_pages_child_slug"
  add_index "pages", ["virtual", "status_id"], :name => "altered_pages_published"

  create_table "sessions", :force => true do |t|
    t.string "session_id"
    t.text "data"
    t.datetime "updated_at"
  end

  add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
  add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"

  create_table "snippets", :force => true do |t|
    t.string "name", :limit => 100, :default => "", :null => false
    t.string "filter_id", :limit => 25
    t.text "content"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "created_by_id"
    t.integer "updated_by_id"
    t.integer "lock_version", :default => 0
  end

  add_index "snippets", ["name"], :name => "name", :unique => true

  create_table "users", :force => true do |t|
    t.string "name", :limit => 100
    t.string "email"
    t.string "login", :limit => 40, :default => "", :null => false
    t.string "password", :limit => 40
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "created_by_id"
    t.integer "updated_by_id"
    t.boolean "admin", :default => false, :null => false
    t.boolean "designer", :default => false, :null => false
    t.text "notes"
    t.integer "lock_version", :default => 0
    t.string "salt"
    t.string "session_token"
    t.string "locale"
  end

  add_index "users", ["login"], :name => "login", :unique => true

end
Something went wrong with that request. Please try again.