|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[8.0].define(version: 2025_07_22_172833) do |
| 13 | +ActiveRecord::Schema[8.0].define(version: 2025_07_22_223841) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "pg_catalog.plpgsql" |
16 | 16 |
|
17 | | - # create_table "active_storage_attachments", force: :cascade do |t| |
18 | | - # t.string "name", null: false |
19 | | - # t.string "record_type", null: false |
20 | | - # t.bigint "record_id", null: false |
21 | | - # t.bigint "blob_id", null: false |
22 | | - # t.datetime "created_at", null: false |
23 | | - # t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
24 | | - # t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
25 | | - # end |
| 17 | + create_table "active_storage_attachments", force: :cascade do |t| |
| 18 | + t.string "name", null: false |
| 19 | + t.string "record_type", null: false |
| 20 | + t.bigint "record_id", null: false |
| 21 | + t.bigint "blob_id", null: false |
| 22 | + t.datetime "created_at", null: false |
| 23 | + t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
| 24 | + t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
| 25 | + end |
26 | 26 |
|
27 | | - # create_table "active_storage_blobs", force: :cascade do |t| |
28 | | - # t.string "key", null: false |
29 | | - # t.string "filename", null: false |
30 | | - # t.string "content_type" |
31 | | - # t.text "metadata" |
32 | | - # t.string "service_name", null: false |
33 | | - # t.bigint "byte_size", null: false |
34 | | - # t.string "checksum" |
35 | | - # t.datetime "created_at", null: false |
36 | | - # t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
37 | | - # end |
| 27 | + create_table "active_storage_blobs", force: :cascade do |t| |
| 28 | + t.string "key", null: false |
| 29 | + t.string "filename", null: false |
| 30 | + t.string "content_type" |
| 31 | + t.text "metadata" |
| 32 | + t.string "service_name", null: false |
| 33 | + t.bigint "byte_size", null: false |
| 34 | + t.string "checksum" |
| 35 | + t.datetime "created_at", null: false |
| 36 | + t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
| 37 | + end |
38 | 38 |
|
39 | | - # create_table "active_storage_variant_records", force: :cascade do |t| |
40 | | - # t.bigint "blob_id", null: false |
41 | | - # t.string "variation_digest", null: false |
42 | | - # t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true |
43 | | - # end |
| 39 | + create_table "active_storage_variant_records", force: :cascade do |t| |
| 40 | + t.bigint "blob_id", null: false |
| 41 | + t.string "variation_digest", null: false |
| 42 | + t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true |
| 43 | + end |
44 | 44 |
|
45 | 45 | create_table "sounds", force: :cascade do |t| |
46 | 46 | t.string "name", null: false |
47 | | - t.string "file_url", null: false |
48 | 47 | t.datetime "created_at", null: false |
49 | 48 | t.datetime "updated_at", null: false |
50 | 49 | end |
|
77 | 76 | t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true |
78 | 77 | end |
79 | 78 |
|
80 | | - # add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
81 | | - # add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" |
| 79 | + add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
| 80 | + add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" |
82 | 81 | end |
0 commit comments