# 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 => 20090613173314) 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 "comments", :force => true do |t| t.integer "commentable_id", :default => 0 t.string "commentable_type", :limit => 15, :default => "" t.text "body", :default => "" t.integer "user_id", :default => 0, :null => false t.integer "parent_id" t.integer "lft" t.integer "rgt" t.integer "is_denied", :default => 0, :null => false t.boolean "is_reviewed", :default => false t.datetime "created_at" t.datetime "updated_at" end add_index "comments", ["commentable_id", "commentable_type"], :name => "index_comments_on_commentable_id_and_commentable_type" add_index "comments", ["user_id"], :name => "index_comments_on_user_id" create_table "countries", :force => true do |t| t.string "name", :limit => 128, :default => "", :null => false t.string "abbreviation", :limit => 3, :default => "", :null => false t.integer "sort", :default => 1000, :null => false end add_index "countries", ["abbreviation"], :name => "index_countries_on_abbreviation" add_index "countries", ["name"], :name => "index_countries_on_name" 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 "languages", :force => true do |t| t.string "name" t.string "english_name" t.string "locale" t.boolean "supported", :default => true t.integer "is_default", :default => 0 end add_index "languages", ["locale"], :name => "index_languages_on_locale" add_index "languages", ["name"], :name => "index_languages_on_name" 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 "profiles", :force => true do |t| t.integer "user_id" t.string "photo_file_name" t.string "photo_content_type" t.integer "photo_file_size" t.datetime "created_at" t.datetime "updated_at" end add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id" create_table "roles", :force => true do |t| t.string "rolename" t.datetime "created_at" t.datetime "updated_at" end create_table "states", :force => true do |t| t.string "name", :limit => 128, :default => "", :null => false t.string "abbreviation", :limit => 3, :default => "", :null => false t.integer "country_id", :limit => 8, :null => false end add_index "states", ["abbreviation"], :name => "index_states_on_abbreviation" add_index "states", ["country_id"], :name => "index_states_on_country_id" add_index "states", ["name"], :name => "index_states_on_name" 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