Skip to content

Commit

Permalink
Fix typoe
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Dec 1, 2023
1 parent 56ce1ea commit e233a1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ class AddCommunityCheckedByToSamples < ActiveRecord::Migration[7.0]
def change
return if Rails.env.production?

add_reference :training_data_code_tags_samples, :community_checked_by, null: true, foreign_key: { to_table: :users }, index: { name: "index_code_tags_samples_on_community_tagged_by_id" }, if_not_exists: true
add_reference :training_data_code_tags_samples, :community_checked_by, null: true, foreign_key: { to_table: :users }, index: { name: "index_code_tags_samples_on_community_checked_by_id" }, if_not_exists: true
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1208,8 +1208,8 @@
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 ["community_checked_by_id"], name: "index_code_tags_samples_on_community_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_checked_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"
t.index ["track_id"], name: "index_training_data_code_tags_samples_on_track_id"
Expand Down

0 comments on commit e233a1c

Please sign in to comment.