# 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 => 20090704220120) do create_table "activities", :force => true do |t| t.integer "item_id" t.string "item_type" t.string "template" t.integer "source_id" t.string "source_type" t.text "content" t.string "title" t.boolean "is_status_update", :default => false t.boolean "is_public", :default => true t.datetime "created_at" t.datetime "updated_at" end add_index "activities", ["item_id", "item_type"], :name => "index_activities_on_item_id_and_item_type" create_table "activity_feeds", :force => true do |t| t.integer "activity_id" t.integer "ownable_id" t.string "ownable_type" end add_index "activity_feeds", ["activity_id"], :name => "index_activity_feeds_on_activity_id" add_index "activity_feeds", ["ownable_id", "ownable_type"], :name => "index_activity_feeds_on_ownable_id_and_ownable_type" create_table "content_permissions", :force => true do |t| t.integer "content_id" t.integer "user_id" t.datetime "created_at" t.datetime "updated_at" end add_index "content_permissions", ["content_id", "user_id"], :name => "index_content_permissions_on_content_id_and_user_id" create_table "content_translations", :force => true do |t| t.integer "content_id" t.string "title" t.text "body" t.string "locale" t.boolean "user_edited" t.datetime "created_at" t.datetime "updated_at" end add_index "content_translations", ["content_id"], :name => "index_content_translations_on_content_id" add_index "content_translations", ["locale"], :name => "index_content_translations_on_locale" create_table "contents", :force => true do |t| t.integer "creator_id" t.string "title" t.text "body" t.string "locale" t.text "body_raw" t.integer "contentable_id" t.string "contentable_type" t.integer "parent_id" t.integer "lft" t.integer "rgt" t.boolean "is_public" t.string "state" t.datetime "created_at" t.datetime "updated_at" end add_index "contents", ["creator_id"], :name => "index_contents_on_creator_id" add_index "contents", ["parent_id"], :name => "index_contents_on_parent_id" create_table "friends", :force => true do |t| t.integer "inviter_id" t.integer "invited_id" t.integer "status", :default => 0 t.datetime "created_at" t.datetime "updated_at" end add_index "friends", ["invited_id", "inviter_id"], :name => "index_friends_on_invited_id_and_inviter_id" add_index "friends", ["inviter_id", "invited_id"], :name => "index_friends_on_inviter_id_and_invited_id" create_table "permissions", :force => true do |t| t.integer "role_id", :null => false t.integer "user_id", :null => false t.datetime "created_at" t.datetime "updated_at" end create_table "roles", :force => true do |t| t.string "rolename" t.datetime "created_at" t.datetime "updated_at" end create_table "slugs", :force => true do |t| t.string "name" t.integer "sluggable_id" t.integer "sequence", :default => 1, :null => false t.string "sluggable_type", :limit => 40 t.string "scope", :limit => 40 t.datetime "created_at" end add_index "slugs", ["name", "sluggable_type", "scope", "sequence"], :name => "index_slugs_on_name_and_sluggable_type_and_scope_and_sequence", :unique => true add_index "slugs", ["sluggable_id"], :name => "index_slugs_on_sluggable_id" create_table "taggings", :force => true do |t| t.integer "tag_id" t.integer "taggable_id" t.integer "tagger_id" t.string "tagger_type" t.string "taggable_type" t.string "context" t.datetime "created_at" end add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id" add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context" create_table "tags", :force => true do |t| t.string "name" end create_table "users", :force => true do |t| t.string "login" t.string "email" t.string "first_name" t.string "last_name" t.string "crypted_password" t.string "password_salt" t.string "persistence_token" t.string "single_access_token" t.string "perishable_token" t.integer "login_count", :default => 0, :null => false t.integer "failed_login_count", :default => 0, :null => false t.datetime "last_request_at" t.datetime "last_login_at" t.datetime "current_login_at" t.string "current_login_ip" t.string "last_login_ip" t.boolean "terms_of_service", :default => false, :null => false t.string "time_zone", :default => "UTC" t.datetime "disabled_at" t.datetime "activated_at" t.datetime "created_at" t.datetime "updated_at" end add_index "users", ["email"], :name => "index_users_on_email" add_index "users", ["last_request_at"], :name => "index_users_on_last_request_at" add_index "users", ["login"], :name => "index_users_on_login" add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token" add_index "users", ["persistence_token"], :name => "index_users_on_persistence_token" add_index "users", ["single_access_token"], :name => "index_users_on_single_access_token" end