Sha256: 8dfb26a3febedaf1fe6b6984540b2430e39e8b45927babaa0750d938453f536e

Contents?: true

Size: 303 Bytes

Versions: 8

Compression:

Stored size: 303 Bytes

Contents

class AddIndicesToHyraxCounterMetrics < ActiveRecord::Migration<%= migration_version %>
  def change
    add_index :hyrax_counter_metrics, :worktype
    add_index :hyrax_counter_metrics, :resource_type
    add_index :hyrax_counter_metrics, :work_id
    add_index :hyrax_counter_metrics, :date
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb
hyrax-5.0.4 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb
hyrax-5.0.3 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb
hyrax-5.0.2 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb
hyrax-5.0.1 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb
hyrax-5.0.0 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20230808102105_add_indices_to_hyrax_counter_metrics.rb.erb