scinote-web/db/migrate/20230426112548_add_missing_indexes_on_archived.rb
Soufiane a5c8c61733
Create an index for all archived columns [SCI-8162] (#5212)
Create an index for all archived columns [SCI-8162]
2023-05-03 11:36:23 +02:00

13 lines
386 B
Ruby

# frozen_string_literal: true
class AddMissingIndexesOnArchived < ActiveRecord::Migration[6.1]
def change
add_index :repositories, :archived
add_index :repository_rows, :archived
add_index :experiments, :archived
add_index :my_modules, :archived
add_index :projects, :archived
add_index :results, :archived
add_index :project_folders, :archived
end
end