Sha256: bcf2cf66c73708bc17f44d218b1ab618b54a9bf2aa4a65fdaf3f4c826087fca0

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 Bytes

Contents

class AddFieldsToCounterMetric < ActiveRecord::Migration<%= migration_version %>
  def change
    add_column :hyrax_counter_metrics, :title, :string
    add_column :hyrax_counter_metrics, :year_of_publication, :integer, index: true
    add_column :hyrax_counter_metrics, :publisher, :string, index: true
    add_column :hyrax_counter_metrics, :author, :string, index: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-5.0.2 lib/generators/hyrax/templates/db/migrate/20230821153635_add_fields_to_counter_metric.rb.erb
hyrax-5.0.1 lib/generators/hyrax/templates/db/migrate/20230821153635_add_fields_to_counter_metric.rb.erb
hyrax-5.0.0 lib/generators/hyrax/templates/db/migrate/20230821153635_add_fields_to_counter_metric.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20230821153635_add_fields_to_counter_metric.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20230821153635_add_fields_to_counter_metric.rb.erb