|
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 | | -# 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 |
| 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 | 7 | # be faster and is potentially less error prone than running all of your |
8 | 8 | # migrations from scratch. Old migrations may fail to apply correctly if those |
9 | 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: 2021_10_07_234707) do |
| 13 | +ActiveRecord::Schema.define(version: 2021_10_27_065954) do |
14 | 14 |
|
15 | 15 | create_table "active_storage_attachments", force: :cascade do |t| |
16 | 16 | t.string "name", null: false |
|
27 | 27 | t.string "filename", null: false |
28 | 28 | t.string "content_type" |
29 | 29 | t.text "metadata" |
30 | | - t.bigint "byte_size", null: false |
| 30 | + t.integer "byte_size", null: false |
31 | 31 | t.string "checksum", null: false |
32 | 32 | t.datetime "created_at", null: false |
| 33 | + t.string "service_name", null: false |
33 | 34 | t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
34 | 35 | end |
35 | 36 |
|
| 37 | + create_table "active_storage_variant_records", force: :cascade do |t| |
| 38 | + t.bigint "blob_id", null: false |
| 39 | + t.string "variation_digest", null: false |
| 40 | + t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true |
| 41 | + end |
| 42 | + |
36 | 43 | create_table "api_keys", force: :cascade do |t| |
37 | 44 | t.integer "user_id" |
38 | 45 | t.string "key" |
|
3650 | 3657 | end |
3651 | 3658 |
|
3652 | 3659 | add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
| 3660 | + add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" |
3653 | 3661 | add_foreign_key "api_keys", "users" |
3654 | 3662 | add_foreign_key "api_requests", "application_integrations" |
3655 | 3663 | add_foreign_key "api_requests", "integration_authorizations" |
|
0 commit comments