diff --git a/db/migrate/20231201115917_add_admin_checked_by_to_samples.rb b/db/migrate/20231201115917_add_admin_checked_by_to_samples.rb index 106786455d..65216609d4 100644 --- a/db/migrate/20231201115917_add_admin_checked_by_to_samples.rb +++ b/db/migrate/20231201115917_add_admin_checked_by_to_samples.rb @@ -2,6 +2,6 @@ class AddAdminCheckedByToSamples < ActiveRecord::Migration[7.0] def change return if Rails.env.production? - add_reference :training_data_code_tags_samples, :admin_checked_by, null: true, foreign_key: { to_table: :users }, index: { name: "index_code_tags_samples_on_admin_tagged_by_id" }, if_not_exists: true + add_reference :training_data_code_tags_samples, :admin_checked_by, null: true, foreign_key: { to_table: :users }, index: { name: "index_code_tags_samples_on_admin_checked_by_id" }, if_not_exists: true end end diff --git a/db/schema.rb b/db/schema.rb index eace5bc432..7a297d0687 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1208,7 +1208,7 @@ t.text "llm_tags" t.bigint "community_checked_by_id" t.bigint "admin_checked_by_id" - t.index ["admin_checked_by_id"], name: "index_code_tags_samples_on_admin_tagged_by_id" + t.index ["admin_checked_by_id"], name: "index_code_tags_samples_on_admin_checked_by_id" t.index ["community_checked_by_id"], name: "index_code_tags_samples_on_community_tagged_by_id" t.index ["exercise_id"], name: "index_training_data_code_tags_samples_on_exercise_id" t.index ["solution_id"], name: "index_training_data_code_tags_samples_on_solution_id"