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
|
# 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: 20130413042256) 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"
end
add_index "accounts", ["user_id"], name: "index_accounts_on_user_id", unique: true
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
add_index "favorites", ["tweet_id"], name: "index_favorites_on_tweet_id"
add_index "favorites", ["user_id"], name: "index_favorites_on_user_id"
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"
add_index "issues", ["status"], name: "index_issues_on_status"
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
add_index "retweets", ["tweet_id"], name: "index_retweets_on_tweet_id"
add_index "retweets", ["user_id"], name: "index_retweets_on_user_id"
create_table "stolen_tweets", force: true do |t|
t.integer "tweet_id", limit: 8
t.integer "original_id", limit: 8
end
add_index "stolen_tweets", ["original_id"], name: "index_stolen_tweets_on_original_id"
add_index "stolen_tweets", ["tweet_id"], name: "index_stolen_tweets_on_tweet_id", unique: true
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"
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}
end
|