|
2 | 2 | # of editing this file, please use the migrations feature of Active Record to
|
3 | 3 | # incrementally modify your database, and then regenerate this schema definition.
|
4 | 4 | #
|
5 |
| -# Note that this schema.rb definition is the authoritative source for your |
6 |
| -# database schema. If you need to create the application database on another |
7 |
| -# system, you should be using db:schema:load, not running all the migrations |
8 |
| -# from scratch. The latter is a flawed and unsustainable approach (the more migrations |
9 |
| -# you'll amass, the slower it'll run and the greater likelihood for issues). |
| 5 | +# This file is the source Rails uses to define your schema when running `bin/rails |
| 6 | +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to |
| 7 | +# be faster and is potentially less error prone than running all of your |
| 8 | +# migrations from scratch. Old migrations may fail to apply correctly if those |
| 9 | +# migrations use external dependencies or application code. |
10 | 10 | #
|
11 | 11 | # It's strongly recommended that you check this file into your version control system.
|
12 | 12 |
|
13 |
| -ActiveRecord::Schema.define(version: 20141102103617) do |
| 13 | +ActiveRecord::Schema.define(version: 2014_11_02_103617) do |
14 | 14 |
|
15 | 15 | # These are extensions that must be enabled in order to support this database
|
16 | 16 | enable_extension "plpgsql"
|
17 | 17 |
|
18 | 18 | create_table "delayed_jobs", force: :cascade do |t|
|
19 |
| - t.integer "priority", default: 0 |
20 |
| - t.integer "attempts", default: 0 |
21 |
| - t.text "handler" |
22 |
| - t.text "last_error" |
| 19 | + t.integer "priority", default: 0 |
| 20 | + t.integer "attempts", default: 0 |
| 21 | + t.text "handler" |
| 22 | + t.text "last_error" |
23 | 23 | t.datetime "run_at"
|
24 | 24 | t.datetime "locked_at"
|
25 | 25 | t.datetime "failed_at"
|
26 |
| - t.string "locked_by" |
27 |
| - t.string "queue" |
| 26 | + t.string "locked_by" |
| 27 | + t.string "queue" |
28 | 28 | t.datetime "created_at"
|
29 | 29 | t.datetime "updated_at"
|
| 30 | + t.index ["priority", "run_at"], name: "delayed_jobs_priority" |
30 | 31 | end
|
31 | 32 |
|
32 |
| - add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree |
33 |
| - |
34 | 33 | create_table "feeds", force: :cascade do |t|
|
35 |
| - t.string "name" |
36 |
| - t.text "url" |
| 34 | + t.string "name" |
| 35 | + t.text "url" |
37 | 36 | t.datetime "last_fetched"
|
38 | 37 | t.datetime "created_at"
|
39 | 38 | t.datetime "updated_at"
|
40 |
| - t.integer "status" |
41 |
| - t.integer "group_id" |
| 39 | + t.integer "status" |
| 40 | + t.integer "group_id" |
| 41 | + t.index ["url"], name: "index_feeds_on_url", unique: true |
42 | 42 | end
|
43 | 43 |
|
44 |
| - add_index "feeds", ["url"], name: "index_feeds_on_url", unique: true, using: :btree |
45 |
| - |
46 | 44 | create_table "groups", force: :cascade do |t|
|
47 |
| - t.string "name", null: false |
| 45 | + t.string "name", null: false |
48 | 46 | t.datetime "created_at", null: false
|
49 | 47 | t.datetime "updated_at", null: false
|
50 | 48 | end
|
51 | 49 |
|
52 | 50 | create_table "stories", force: :cascade do |t|
|
53 |
| - t.text "title" |
54 |
| - t.text "permalink" |
55 |
| - t.text "body" |
56 |
| - t.integer "feed_id" |
| 51 | + t.text "title" |
| 52 | + t.text "permalink" |
| 53 | + t.text "body" |
| 54 | + t.integer "feed_id" |
57 | 55 | t.datetime "created_at"
|
58 | 56 | t.datetime "updated_at"
|
59 | 57 | t.datetime "published"
|
60 |
| - t.boolean "is_read" |
61 |
| - t.boolean "keep_unread", default: false |
62 |
| - t.boolean "is_starred", default: false |
63 |
| - t.text "entry_id" |
| 58 | + t.boolean "is_read" |
| 59 | + t.boolean "keep_unread", default: false |
| 60 | + t.boolean "is_starred", default: false |
| 61 | + t.text "entry_id" |
| 62 | + t.index ["entry_id", "feed_id"], name: "index_stories_on_entry_id_and_feed_id", unique: true |
64 | 63 | end
|
65 | 64 |
|
66 |
| - add_index "stories", ["entry_id", "feed_id"], name: "index_stories_on_entry_id_and_feed_id", unique: true, using: :btree |
67 |
| - |
68 | 65 | create_table "users", force: :cascade do |t|
|
69 |
| - t.string "password_digest" |
| 66 | + t.string "password_digest" |
70 | 67 | t.datetime "created_at"
|
71 | 68 | t.datetime "updated_at"
|
72 |
| - t.boolean "setup_complete" |
73 |
| - t.string "api_key" |
| 69 | + t.boolean "setup_complete" |
| 70 | + t.string "api_key" |
74 | 71 | end
|
75 | 72 |
|
76 | 73 | end
|
0 commit comments