diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-09 18:57:01 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-09 18:57:01 -0600 |
commit | e7c54136f8bba9951fe8e538c91463e7eee09d83 (patch) | |
tree | d5204f7047d9476d55ed7596b4a25cc06730c502 /db | |
parent | 6cf54e76f0ca4b30f6883f15c3a64aca4f4eddd2 (diff) |
Añade configuración de storage
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.rb | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index afe279a..144bd82 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,43 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_02_22_012901) do +ActiveRecord::Schema[7.0].define(version: 2023_03_09_235713) do + create_table "active_storage_attachments", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| + t.string "name", null: false + t.string "record_type", null: false + t.bigint "record_id", null: false + t.bigint "blob_id", null: false + t.datetime "created_at", null: false + t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" + t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true + end + + create_table "active_storage_blobs", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| + t.string "key", null: false + t.string "filename", null: false + t.string "content_type" + t.text "metadata" + t.string "service_name", null: false + t.bigint "byte_size", null: false + t.string "checksum" + t.datetime "created_at", null: false + t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true + end + + create_table "active_storage_variant_records", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| + t.bigint "blob_id", null: false + t.string "variation_digest", null: false + t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true + end + + create_table "companies", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| + t.string "name" + t.string "country" + t.string "short_name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "user_accounts", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| t.string "email" t.string "password_digest" @@ -22,4 +58,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_02_22_012901) do t.string "role" end + add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" + add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" end |