Skip to content

Commit

Permalink
fix (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
usernaimandrey committed May 19, 2023
1 parent eb443ba commit 17b6515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AddUniqIndexToCareerStepMembers < ActiveRecord::Migration[7.0]
def change
add_index :career_step_members, %i[career_member_id career_step_id], unique: true
add_index :career_step_members, %i[career_member_id career_step_id], unique: true, name: 'index_career_step_members_on_member_id_and_step_id'
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
t.string "state", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["career_member_id", "career_step_id"], name: "index_career_step_members_on_career_member_id_and_career_step_id", unique: true
t.index ["career_member_id", "career_step_id"], name: "index_career_step_members_on_member_id_and_step_id", unique: true
t.index ["career_step_id"], name: "index_career_step_members_on_career_step_id"
end

Expand Down

0 comments on commit 17b6515

Please sign in to comment.