diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-27 20:04:00 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-27 20:04:00 -0600 |
commit | 35ec25dcb3d57b17a3dc174503b7d20dd4c46e43 (patch) | |
tree | 4bf53848d7460947b9c70aa74dc934279d94af55 /db | |
parent | 7b5d00f1bf262cc40b6b9dc21bb42e2dc7c80afe (diff) |
Añade specs de Card
Diffstat (limited to 'db')
-rw-r--r-- | db/schema.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 26cf4a6..11c178a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_03_25_024534) do +ActiveRecord::Schema[7.0].define(version: 2023_03_25_061452) 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 @@ -49,6 +49,18 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_25_024534) do t.datetime "updated_at", null: false end + create_table "cards", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| + t.string "number" + t.integer "expiration_month" + t.integer "expiration_year" + t.integer "expiration_day" + t.integer "security_code" + t.bigint "user_account_id", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_account_id"], name: "index_cards_on_user_account_id" + end + create_table "companies", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "country" @@ -93,5 +105,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_25_024534) do 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" + add_foreign_key "cards", "user_accounts" add_foreign_key "products", "companies" end |