|
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 `rails |
| 6 | +# db:schema:load`. When creating a new database, `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: 20150610135235) do |
| 13 | +ActiveRecord::Schema.define(version: 2015_06_10_135235) do |
14 | 14 |
|
15 | 15 | create_table "administrators", force: :cascade do |t| |
16 | 16 | t.datetime "created_at" |
17 | 17 | t.datetime "updated_at" |
18 | | - t.string "email", null: false |
19 | | - t.string "name", null: false |
20 | | - t.string "organization", null: false |
21 | | - t.string "passcode", limit: 60, null: false |
22 | | - t.datetime "passcode_expires_at", null: false |
23 | | - t.string "auth_token", limit: 32, null: false |
24 | | - t.datetime "account_unlocks_at", null: false |
25 | | - t.integer "lockout_strikes", default: 0, null: false |
26 | | - t.integer "total_strikes", default: 0, null: false |
27 | | - t.integer "sessions_created", default: 0, null: false |
| 18 | + t.string "email", null: false |
| 19 | + t.string "name", null: false |
| 20 | + t.string "organization", null: false |
| 21 | + t.string "passcode", limit: 60, null: false |
| 22 | + t.datetime "passcode_expires_at", null: false |
| 23 | + t.string "auth_token", limit: 32, null: false |
| 24 | + t.datetime "account_unlocks_at", null: false |
| 25 | + t.integer "lockout_strikes", default: 0, null: false |
| 26 | + t.integer "total_strikes", default: 0, null: false |
| 27 | + t.integer "sessions_created", default: 0, null: false |
28 | 28 | t.index ["auth_token"], name: "index_administrators_on_auth_token" |
29 | 29 | t.index ["email"], name: "index_administrators_on_email" |
30 | 30 | end |
31 | 31 |
|
32 | 32 | create_table "blog_post_topics", force: :cascade do |t| |
33 | 33 | t.integer "blog_post_id", null: false |
34 | | - t.integer "topic_id", null: false |
| 34 | + t.integer "topic_id", null: false |
35 | 35 | t.index ["blog_post_id"], name: "index_blog_post_topics_on_blog_post_id" |
36 | 36 | t.index ["topic_id"], name: "index_blog_post_topics_on_topic_id" |
37 | 37 | end |
38 | 38 |
|
39 | 39 | create_table "blog_posts", force: :cascade do |t| |
40 | | - t.datetime "created_at", null: false |
41 | | - t.datetime "updated_at", null: false |
42 | | - t.string "title", null: false |
| 40 | + t.datetime "created_at", null: false |
| 41 | + t.datetime "updated_at", null: false |
| 42 | + t.string "title", null: false |
43 | 43 | t.datetime "published_at", null: false |
44 | | - t.text "summary" |
45 | | - t.text "body" |
46 | | - t.string "color" |
47 | | - t.text "portrait" |
48 | | - t.text "attachment" |
| 44 | + t.text "summary" |
| 45 | + t.text "body" |
| 46 | + t.string "color" |
| 47 | + t.text "portrait" |
| 48 | + t.text "attachment" |
49 | 49 | end |
50 | 50 |
|
51 | 51 | create_table "footnotes", force: :cascade do |t| |
52 | | - t.datetime "created_at", null: false |
53 | | - t.datetime "updated_at", null: false |
54 | | - t.integer "blog_post_id", null: false |
55 | | - t.text "description" |
56 | | - t.text "url" |
| 52 | + t.datetime "created_at", null: false |
| 53 | + t.datetime "updated_at", null: false |
| 54 | + t.integer "blog_post_id", null: false |
| 55 | + t.text "description" |
| 56 | + t.text "url" |
57 | 57 | t.index ["blog_post_id"], name: "index_footnotes_on_blog_post_id" |
58 | 58 | end |
59 | 59 |
|
60 | 60 | create_table "images", force: :cascade do |t| |
61 | | - t.datetime "created_at", null: false |
62 | | - t.datetime "updated_at", null: false |
63 | | - t.string "title", null: false |
64 | | - t.text "alternate_text" |
65 | | - t.text "credit" |
66 | | - t.text "keywords" |
67 | | - t.text "attachment_address", null: false |
| 61 | + t.datetime "created_at", null: false |
| 62 | + t.datetime "updated_at", null: false |
| 63 | + t.string "title", null: false |
| 64 | + t.text "alternate_text" |
| 65 | + t.text "credit" |
| 66 | + t.text "keywords" |
| 67 | + t.text "attachment_address", null: false |
68 | 68 | end |
69 | 69 |
|
70 | 70 | create_table "legal_pages", force: :cascade do |t| |
71 | 71 | t.datetime "created_at", null: false |
72 | 72 | t.datetime "updated_at", null: false |
73 | | - t.string "title", null: false |
74 | | - t.string "slug", null: false |
75 | | - t.text "summary", null: false |
76 | | - t.text "body" |
| 73 | + t.string "title", null: false |
| 74 | + t.string "slug", null: false |
| 75 | + t.text "summary", null: false |
| 76 | + t.text "body" |
77 | 77 | t.index ["slug"], name: "index_legal_pages_on_slug" |
78 | 78 | end |
79 | 79 |
|
80 | 80 | create_table "miscellany", force: :cascade do |t| |
81 | | - t.datetime "created_at", null: false |
82 | | - t.datetime "updated_at", null: false |
83 | | - t.string "key", null: false |
84 | | - t.text "value", null: false |
85 | | - t.text "description", null: false |
| 81 | + t.datetime "created_at", null: false |
| 82 | + t.datetime "updated_at", null: false |
| 83 | + t.string "key", null: false |
| 84 | + t.text "value", null: false |
| 85 | + t.text "description", null: false |
86 | 86 | t.index ["key"], name: "index_miscellany_on_key" |
87 | 87 | end |
88 | 88 |
|
89 | 89 | create_table "topics", force: :cascade do |t| |
90 | 90 | t.datetime "created_at" |
91 | 91 | t.datetime "updated_at" |
92 | | - t.string "label", null: false |
93 | | - t.string "slug", null: false |
| 92 | + t.string "label", null: false |
| 93 | + t.string "slug", null: false |
94 | 94 | t.index ["slug"], name: "index_topics_on_slug" |
95 | 95 | end |
96 | 96 |
|
97 | 97 | create_table "videos", force: :cascade do |t| |
98 | | - t.datetime "created_at", null: false |
99 | | - t.datetime "updated_at", null: false |
100 | | - t.string "title", null: false |
101 | | - t.string "youtube_id", null: false |
102 | | - t.string "description" |
| 98 | + t.datetime "created_at", null: false |
| 99 | + t.datetime "updated_at", null: false |
| 100 | + t.string "title", null: false |
| 101 | + t.string "youtube_id", null: false |
| 102 | + t.string "description" |
103 | 103 | end |
104 | 104 |
|
105 | 105 | end |
0 commit comments