summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-09 18:57:01 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-09 18:57:01 -0600
commite7c54136f8bba9951fe8e538c91463e7eee09d83 (patch)
treed5204f7047d9476d55ed7596b4a25cc06730c502
parent6cf54e76f0ca4b30f6883f15c3a64aca4f4eddd2 (diff)
Añade configuración de storage
-rw-r--r--config/storage.yml35
-rw-r--r--db/schema.rb40
2 files changed, 43 insertions, 32 deletions
diff --git a/config/storage.yml b/config/storage.yml
index 4942ab6..077b15d 100644
--- a/config/storage.yml
+++ b/config/storage.yml
@@ -1,34 +1,7 @@
-test:
- service: Disk
- root: <%= Rails.root.join("tmp/storage") %>
-
local:
service: Disk
- root: <%= Rails.root.join("storage") %>
-
-# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
-# amazon:
-# service: S3
-# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
-# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
-# region: us-east-1
-# bucket: your_own_bucket-<%= Rails.env %>
+ #root: <%= Rails.root.join("storage") %>
-# Remember not to checkin your GCS keyfile to a repository
-# google:
-# service: GCS
-# project: your_project
-# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
-# bucket: your_own_bucket-<%= Rails.env %>
-
-# Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
-# microsoft:
-# service: AzureStorage
-# storage_account_name: your_account_name
-# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
-# container: your_container_name-<%= Rails.env %>
-
-# mirror:
-# service: Mirror
-# primary: local
-# mirrors: [ amazon, google, microsoft ]
+test:
+ service: Disk
+ root: <%= Rails.root.join("tmp/storage") %> \ No newline at end of file
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