Commit d483de08efdc9fa442a994602f34ff782618e69f

Authored by AntonioTerceiro
1 parent 3f31c186

ActionItem392: adding database schema to VCS


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1957 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 269 additions and 0 deletions   Show diff stats
db/schema.rb 0 → 100644
... ... @@ -0,0 +1,269 @@
  1 +# This file is auto-generated from the current state of the database. Instead of editing this file,
  2 +# please use the migrations feature of ActiveRecord to incrementally modify your database, and
  3 +# then regenerate this schema definition.
  4 +#
  5 +# Note that this schema.rb definition is the authoritative source for your database schema. If you need
  6 +# to create the application database on another system, you should be using db:schema:load, not running
  7 +# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
  8 +# you'll amass, the slower it'll run and the greater likelihood for issues).
  9 +#
  10 +# It's strongly recommended to check this file into your version control system.
  11 +
  12 +ActiveRecord::Schema.define(:version => 38) do
  13 +
  14 + create_table "article_versions", :force => true do |t|
  15 + t.integer "article_id"
  16 + t.integer "version"
  17 + t.string "name"
  18 + t.string "slug"
  19 + t.text "path", :default => ""
  20 + t.integer "parent_id"
  21 + t.text "body"
  22 + t.text "abstract"
  23 + t.integer "profile_id"
  24 + t.datetime "updated_at"
  25 + t.datetime "created_at"
  26 + t.integer "last_changed_by_id"
  27 + t.integer "size"
  28 + t.string "content_type"
  29 + t.string "filename"
  30 + t.integer "height"
  31 + t.integer "width"
  32 + t.string "versioned_type"
  33 + t.integer "comments_count"
  34 + t.boolean "advertise", :default => true
  35 + t.boolean "published", :default => true
  36 + t.date "start_date"
  37 + t.date "end_date"
  38 + end
  39 +
  40 + create_table "articles", :force => true do |t|
  41 + t.string "name"
  42 + t.string "slug"
  43 + t.text "path", :default => ""
  44 + t.integer "parent_id"
  45 + t.text "body"
  46 + t.text "abstract"
  47 + t.integer "profile_id"
  48 + t.datetime "updated_at"
  49 + t.datetime "created_at"
  50 + t.integer "last_changed_by_id"
  51 + t.integer "version"
  52 + t.integer "lock_version"
  53 + t.string "type"
  54 + t.integer "size"
  55 + t.string "content_type"
  56 + t.string "filename"
  57 + t.integer "height"
  58 + t.integer "width"
  59 + t.integer "comments_count", :default => 0
  60 + t.boolean "advertise", :default => true
  61 + t.boolean "published", :default => true
  62 + t.date "start_date"
  63 + t.date "end_date"
  64 + end
  65 +
  66 + create_table "articles_categories", :id => false, :force => true do |t|
  67 + t.integer "article_id"
  68 + t.integer "category_id"
  69 + end
  70 +
  71 + add_index "articles_categories", ["category_id"], :name => "index_articles_categories_on_category_id"
  72 + add_index "articles_categories", ["article_id"], :name => "index_articles_categories_on_article_id"
  73 +
  74 + create_table "blocks", :force => true do |t|
  75 + t.string "title"
  76 + t.integer "box_id"
  77 + t.string "type"
  78 + t.text "settings"
  79 + t.integer "position"
  80 + end
  81 +
  82 + create_table "boxes", :force => true do |t|
  83 + t.string "owner_type"
  84 + t.integer "owner_id"
  85 + t.integer "position"
  86 + end
  87 +
  88 + create_table "categories", :force => true do |t|
  89 + t.string "name"
  90 + t.string "slug"
  91 + t.text "path", :default => ""
  92 + t.integer "display_color"
  93 + t.integer "environment_id"
  94 + t.integer "parent_id"
  95 + t.string "type"
  96 + t.float "lat"
  97 + t.float "lng"
  98 + end
  99 +
  100 + create_table "categories_profiles", :id => false, :force => true do |t|
  101 + t.integer "profile_id"
  102 + t.integer "category_id"
  103 + end
  104 +
  105 + create_table "comments", :force => true do |t|
  106 + t.string "title"
  107 + t.text "body"
  108 + t.integer "article_id"
  109 + t.integer "author_id"
  110 + t.string "name"
  111 + t.string "email"
  112 + t.datetime "created_at"
  113 + end
  114 +
  115 + create_table "consumptions", :force => true do |t|
  116 + t.integer "product_category_id"
  117 + t.integer "profile_id"
  118 + t.text "aditional_specifications"
  119 + end
  120 +
  121 + create_table "domains", :force => true do |t|
  122 + t.string "name"
  123 + t.string "owner_type"
  124 + t.integer "owner_id"
  125 + end
  126 +
  127 + create_table "environments", :force => true do |t|
  128 + t.string "name"
  129 + t.string "contact_email"
  130 + t.boolean "is_default"
  131 + t.text "settings"
  132 + t.text "design_data"
  133 + end
  134 +
  135 + create_table "favorite_enteprises_people", :id => false, :force => true do |t|
  136 + t.integer "person_id"
  137 + t.integer "enterprise_id"
  138 + end
  139 +
  140 + create_table "friendships", :force => true do |t|
  141 + t.integer "person_id"
  142 + t.integer "friend_id"
  143 + t.datetime "created_at"
  144 + t.string "group"
  145 + end
  146 +
  147 + create_table "images", :force => true do |t|
  148 + t.string "owner_type"
  149 + t.integer "owner_id"
  150 + t.integer "parent_id"
  151 + t.string "content_type"
  152 + t.string "filename"
  153 + t.string "thumbnail"
  154 + t.integer "size"
  155 + t.integer "width"
  156 + t.integer "height"
  157 + end
  158 +
  159 + create_table "products", :force => true do |t|
  160 + t.integer "enterprise_id"
  161 + t.integer "product_category_id"
  162 + t.string "name"
  163 + t.decimal "price"
  164 + t.text "description"
  165 + t.string "image"
  166 + t.datetime "created_at"
  167 + t.datetime "updated_at"
  168 + t.float "lat"
  169 + t.float "lng"
  170 + end
  171 +
  172 + create_table "profiles", :force => true do |t|
  173 + t.string "name"
  174 + t.string "type"
  175 + t.string "identifier"
  176 + t.integer "environment_id"
  177 + t.boolean "active", :default => true
  178 + t.string "address"
  179 + t.string "contact_phone"
  180 + t.integer "home_page_id"
  181 + t.integer "user_id"
  182 + t.integer "region_id"
  183 + t.text "data"
  184 + t.datetime "created_at"
  185 + t.float "lat"
  186 + t.float "lng"
  187 + t.integer "geocode_precision"
  188 + end
  189 +
  190 + create_table "region_validators", :id => false, :force => true do |t|
  191 + t.integer "region_id"
  192 + t.integer "organization_id"
  193 + end
  194 +
  195 + create_table "role_assignments", :force => true do |t|
  196 + t.integer "accessor_id"
  197 + t.string "accessor_type"
  198 + t.integer "resource_id"
  199 + t.string "resource_type"
  200 + t.integer "role_id"
  201 + t.boolean "is_global"
  202 + end
  203 +
  204 + create_table "roles", :force => true do |t|
  205 + t.string "name"
  206 + t.string "permissions"
  207 + t.string "key"
  208 + t.boolean "system", :default => false
  209 + end
  210 +
  211 + create_table "taggings", :force => true do |t|
  212 + t.integer "tag_id"
  213 + t.integer "taggable_id"
  214 + t.string "taggable_type"
  215 + t.datetime "created_at"
  216 + end
  217 +
  218 + add_index "taggings", ["taggable_id", "taggable_type"], :name => "index_taggings_on_taggable_id_and_taggable_type"
  219 + add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
  220 +
  221 + create_table "tags", :force => true do |t|
  222 + t.string "name"
  223 + t.integer "parent_id"
  224 + t.boolean "pending", :default => false
  225 + end
  226 +
  227 + create_table "tasks", :force => true do |t|
  228 + t.text "data"
  229 + t.integer "status"
  230 + t.date "end_date"
  231 + t.integer "requestor_id"
  232 + t.integer "target_id"
  233 + t.string "code", :limit => 40
  234 + t.string "type"
  235 + t.datetime "created_at"
  236 + end
  237 +
  238 + create_table "thumbnails", :force => true do |t|
  239 + t.integer "size"
  240 + t.string "content_type"
  241 + t.string "filename"
  242 + t.integer "height"
  243 + t.integer "width"
  244 + t.integer "parent_id"
  245 + t.string "thumbnail"
  246 + end
  247 +
  248 + create_table "users", :force => true do |t|
  249 + t.string "login"
  250 + t.string "email"
  251 + t.string "crypted_password", :limit => 40
  252 + t.string "salt", :limit => 40
  253 + t.datetime "created_at"
  254 + t.datetime "updated_at"
  255 + t.string "remember_token"
  256 + t.datetime "remember_token_expires_at"
  257 + t.text "terms_of_use"
  258 + t.string "terms_accepted", :limit => 1
  259 + t.integer "environment_id"
  260 + t.string "password_type"
  261 + end
  262 +
  263 + create_table "validation_infos", :force => true do |t|
  264 + t.text "validation_methodology"
  265 + t.text "restrictions"
  266 + t.integer "organization_id"
  267 + end
  268 +
  269 +end
... ...