|
1 |
| -# frozen_string_literal: true |
2 |
| - |
3 | 1 | # This file is auto-generated from the current state of the database. Instead
|
4 | 2 | # of editing this file, please use the migrations feature of Active Record to
|
5 | 3 | # incrementally modify your database, and then regenerate this schema definition.
|
|
12 | 10 | #
|
13 | 11 | # It's strongly recommended that you check this file into your version control system.
|
14 | 12 |
|
15 |
| -ActiveRecord::Schema.define(version: 20_180_207_180_008) do |
| 13 | +ActiveRecord::Schema.define(version: 2018_02_07_180008) do |
| 14 | + |
16 | 15 | # These are extensions that must be enabled in order to support this database
|
17 |
| - enable_extension 'plpgsql' |
| 16 | + enable_extension "plpgsql" |
18 | 17 |
|
19 |
| - create_table 'articles', force: :cascade do |t| |
20 |
| - t.string 'title' |
21 |
| - t.text 'text' |
22 |
| - t.string 'created_by' |
23 |
| - t.string 'slug' |
24 |
| - t.datetime 'created_at', null: false |
25 |
| - t.datetime 'updated_at', null: false |
26 |
| - t.integer 'user_id' |
27 |
| - t.string 'meta_description' |
| 18 | + create_table "articles", force: :cascade do |t| |
| 19 | + t.string "title" |
| 20 | + t.text "text" |
| 21 | + t.string "created_by" |
| 22 | + t.string "slug" |
| 23 | + t.datetime "created_at", null: false |
| 24 | + t.datetime "updated_at", null: false |
| 25 | + t.integer "user_id" |
| 26 | + t.string "meta_description" |
28 | 27 | end
|
29 | 28 |
|
30 |
| - create_table 'attachments', force: :cascade do |t| |
31 |
| - t.string 'filename' |
32 |
| - t.string 'content_type' |
33 |
| - t.binary 'file_contents' |
34 |
| - t.datetime 'created_at', null: false |
35 |
| - t.datetime 'updated_at', null: false |
36 |
| - t.integer 'article_id' |
| 29 | + create_table "attachments", force: :cascade do |t| |
| 30 | + t.string "filename" |
| 31 | + t.string "content_type" |
| 32 | + t.binary "file_contents" |
| 33 | + t.datetime "created_at", null: false |
| 34 | + t.datetime "updated_at", null: false |
| 35 | + t.integer "article_id" |
37 | 36 | end
|
38 | 37 |
|
39 |
| - create_table 'comments', force: :cascade do |t| |
40 |
| - t.string 'commenter' |
41 |
| - t.text 'body' |
42 |
| - t.bigint 'article_id' |
43 |
| - t.datetime 'created_at', null: false |
44 |
| - t.datetime 'updated_at', null: false |
45 |
| - t.index ['article_id'], name: 'index_comments_on_article_id' |
| 38 | + create_table "comments", force: :cascade do |t| |
| 39 | + t.string "commenter" |
| 40 | + t.text "body" |
| 41 | + t.bigint "article_id" |
| 42 | + t.datetime "created_at", null: false |
| 43 | + t.datetime "updated_at", null: false |
| 44 | + t.index ["article_id"], name: "index_comments_on_article_id" |
46 | 45 | end
|
47 | 46 |
|
48 |
| - create_table 'users', force: :cascade do |t| |
49 |
| - t.string 'email' |
50 |
| - t.string 'password_digest' |
51 |
| - t.datetime 'created_at', null: false |
52 |
| - t.datetime 'updated_at', null: false |
53 |
| - t.integer 'user_id' |
54 |
| - t.boolean 'admin_user', default: false |
55 |
| - t.string 'password_reset_token' |
56 |
| - t.datetime 'password_reset_sent_at' |
57 |
| - t.string 'confirmation_token' |
58 |
| - t.datetime 'confirmation_sent_at' |
59 |
| - t.boolean 'confirmed', default: false |
| 47 | + create_table "users", force: :cascade do |t| |
| 48 | + t.string "email" |
| 49 | + t.string "password_digest" |
| 50 | + t.datetime "created_at", null: false |
| 51 | + t.datetime "updated_at", null: false |
| 52 | + t.integer "user_id" |
| 53 | + t.boolean "admin_user", default: false |
| 54 | + t.string "password_reset_token" |
| 55 | + t.datetime "password_reset_sent_at" |
| 56 | + t.string "confirmation_token" |
| 57 | + t.datetime "confirmation_sent_at" |
| 58 | + t.boolean "confirmed", default: false |
60 | 59 | end
|
61 | 60 |
|
62 |
| - add_foreign_key 'articles', 'users' |
| 61 | + add_foreign_key "articles", "users" |
63 | 62 | end
|
0 commit comments