obdev/db/migrate/20240206215704_add_indexes_...

6 lines
123 B
Ruby

class AddIndexesToWorkers < ActiveRecord::Migration[7.1]
def change
add_index :workers, :ssn, unique: true
end
end