From 44041da07b0445b5ab636c9886f3c6cd42e92fdc Mon Sep 17 00:00:00 2001 From: Raquel Roman-Rodriguez Date: Fri, 6 Dec 2024 12:30:48 -0500 Subject: [PATCH] testing test suite --- app/models/testing_migration_ci.rb | 2 ++ ...1206172931_create_testing_migration_cis.rb | 9 +++++++++ db/schema.rb | 19 ++++++++++++++++++- spec/factories/testing_migration_cis.rb | 5 +++++ spec/models/testing_migration_ci_spec.rb | 5 +++++ 5 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 app/models/testing_migration_ci.rb create mode 100644 db/migrate/20241206172931_create_testing_migration_cis.rb create mode 100644 spec/factories/testing_migration_cis.rb create mode 100644 spec/models/testing_migration_ci_spec.rb diff --git a/app/models/testing_migration_ci.rb b/app/models/testing_migration_ci.rb new file mode 100644 index 00000000..33d483a5 --- /dev/null +++ b/app/models/testing_migration_ci.rb @@ -0,0 +1,2 @@ +class TestingMigrationCi < ApplicationRecord +end diff --git a/db/migrate/20241206172931_create_testing_migration_cis.rb b/db/migrate/20241206172931_create_testing_migration_cis.rb new file mode 100644 index 00000000..ed427db5 --- /dev/null +++ b/db/migrate/20241206172931_create_testing_migration_cis.rb @@ -0,0 +1,9 @@ +class CreateTestingMigrationCis < ActiveRecord::Migration[7.2] + def change + create_table :testing_migration_cis do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index fc48cd26..9b4ee196 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.2].define(version: 2024_11_24_035858) do +ActiveRecord::Schema[7.2].define(version: 2024_12_06_172931) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -84,6 +84,15 @@ t.string "grade_level" end + create_table "my_model_links", force: :cascade do |t| + t.integer "parent_id", null: false + t.integer "child_id", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["child_id"], name: "index_my_model_links_on_child_id" + t.index ["parent_id"], name: "index_my_model_links_on_parent_id" + end + create_table "orders", force: :cascade do |t| t.string "school_year" t.integer "kit_id", null: false @@ -98,6 +107,12 @@ t.index ["user_id"], name: "index_orders_on_user_id" end + create_table "testing_migration_cis", force: :cascade do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "users", force: :cascade do |t| t.string "email", default: "", null: false t.string "encrypted_password", default: "", null: false @@ -119,6 +134,8 @@ add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" add_foreign_key "contacts", "users" add_foreign_key "donations", "users" + add_foreign_key "my_model_links", "children" + add_foreign_key "my_model_links", "parents" add_foreign_key "orders", "kits" add_foreign_key "orders", "users" end diff --git a/spec/factories/testing_migration_cis.rb b/spec/factories/testing_migration_cis.rb new file mode 100644 index 00000000..c11a32b3 --- /dev/null +++ b/spec/factories/testing_migration_cis.rb @@ -0,0 +1,5 @@ +FactoryBot.define do + factory :testing_migration_ci do + name { "MyString" } + end +end diff --git a/spec/models/testing_migration_ci_spec.rb b/spec/models/testing_migration_ci_spec.rb new file mode 100644 index 00000000..5aeb10aa --- /dev/null +++ b/spec/models/testing_migration_ci_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe TestingMigrationCi, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end