|
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: 2012_02_22_083938) do |
| 13 | +ActiveRecord::Schema.define(version: 2021_02_04_190042) do |
14 | 14 |
|
15 | 15 | # These are extensions that must be enabled in order to support this database
|
16 | 16 | enable_extension "plpgsql"
|
|
29 | 29 | t.index ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id"
|
30 | 30 | end
|
31 | 31 |
|
| 32 | + create_table "active_storage_attachments", force: :cascade do |t| |
| 33 | + t.string "name", null: false |
| 34 | + t.string "record_type", null: false |
| 35 | + t.bigint "record_id", null: false |
| 36 | + t.bigint "blob_id", null: false |
| 37 | + t.datetime "created_at", null: false |
| 38 | + t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
| 39 | + t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
| 40 | + end |
| 41 | + |
| 42 | + create_table "active_storage_blobs", force: :cascade do |t| |
| 43 | + t.string "key", null: false |
| 44 | + t.string "filename", null: false |
| 45 | + t.string "content_type" |
| 46 | + t.text "metadata" |
| 47 | + t.bigint "byte_size", null: false |
| 48 | + t.string "checksum", null: false |
| 49 | + t.datetime "created_at", null: false |
| 50 | + t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
| 51 | + end |
| 52 | + |
32 | 53 | create_table "admin_users", force: :cascade do |t|
|
33 | 54 | t.string "email", default: "", null: false
|
34 | 55 | t.string "encrypted_password", default: "", null: false
|
|
103 | 124 | t.datetime "updated_at", null: false
|
104 | 125 | end
|
105 | 126 |
|
| 127 | + add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
106 | 128 | end
|
0 commit comments