Sha256: a723ed5f81b85306cb72a92a04301c0e576b1f098370394b3fe929184a1603de

Contents?: true

Size: 328 Bytes

Versions: 103

Compression:

Stored size: 328 Bytes

Contents

class AddFieldTypeToCustomFields < ActiveRecord::Migration[4.2]
  def up
    add_column :spotlight_custom_fields, :field_type, :string

    Spotlight::CustomField.reset_column_information
    Spotlight::CustomField.update_all field_type: 'text'
  end
  def down
    remove_column :spotlight_custom_fields, :field_type
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 db/migrate/20150313175432_add_field_type_to_custom_fields.rb
blacklight-spotlight-1.0.0.alpha2 db/migrate/20150313175432_add_field_type_to_custom_fields.rb
blacklight-spotlight-1.0.0.alpha1 db/migrate/20150313175432_add_field_type_to_custom_fields.rb