# encoding: UTF-8 # 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 that you check this file into your version control system. ActiveRecord::Schema.define(version: 20130525142430) do create_table "accounts", force: true do |t| t.integer "user_id", limit: 8, null: false t.string "oauth_token", null: false t.string "oauth_token_secret", null: false t.datetime "created_at" t.datetime "updated_at" t.integer "consumer_version", null: false t.boolean "notification", default: false, null: false t.boolean "private", default: false, null: false t.integer "status", limit: 2, default: 0, null: false end add_index "accounts", ["user_id"], name: "index_accounts_on_user_id", unique: true, using: :btree create_table "favorites", force: true do |t| t.integer "tweet_id", limit: 8, null: false t.integer "user_id", limit: 8, null: false end add_index "favorites", ["tweet_id", "user_id"], name: "index_favorites_on_tweet_id_and_user_id", unique: true, using: :btree add_index "favorites", ["tweet_id"], name: "index_favorites_on_tweet_id", using: :btree add_index "favorites", ["user_id"], name: "index_favorites_on_user_id", using: :btree create_table "issues", force: true do |t| t.integer "issue_type", limit: 2 t.integer "status", limit: 2 t.text "data" t.datetime "created_at" t.datetime "updated_at" end add_index "issues", ["issue_type"], name: "index_issues_on_issue_type", using: :btree add_index "issues", ["status"], name: "index_issues_on_status", using: :btree create_table "retweets", force: true do |t| t.integer "tweet_id", limit: 8, null: false t.integer "user_id", limit: 8, null: false end add_index "retweets", ["tweet_id", "user_id"], name: "index_retweets_on_tweet_id_and_user_id", unique: true, using: :btree add_index "retweets", ["tweet_id"], name: "index_retweets_on_tweet_id", using: :btree add_index "retweets", ["user_id"], name: "index_retweets_on_user_id", using: :btree create_table "tweets", force: true do |t| t.text "text", limit: 16777215, null: false t.text "source", limit: 16777215 t.integer "user_id", limit: 8, null: false t.datetime "tweeted_at" t.integer "favorites_count", default: 0 t.integer "retweets_count", default: 0 end add_index "tweets", ["user_id"], name: "index_tweets_on_user_id", using: :btree create_table "users", force: true do |t| t.string "screen_name" t.string "name" t.text "profile_image_url", limit: 16777215 t.datetime "created_at" t.datetime "updated_at" t.boolean "protected" end add_index "users", ["screen_name"], name: "index_users_on_screen_name", length: {"screen_name"=>191}, using: :btree end