Sha256: 5e2e0f3fa73a1c0f15de6581083c25129c34968510c5b66ac669550873d8e11e

Contents?: true

Size: 355 Bytes

Versions: 103

Compression:

Stored size: 355 Bytes

Contents

class RemoveDefaultFromSpotlightExhibit < ActiveRecord::Migration[4.2]
  def up
    return unless Spotlight::Exhibit.column_names.include? 'default'

    remove_column :spotlight_exhibits, :default
  end
  
  def down
    add_column :spotlight_exhibits, :default, :boolean, default: true
    add_index :spotlight_exhibits, :default, unique: true
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 db/migrate/20151124101123_remove_default_from_spotlight_exhibit.rb
blacklight-spotlight-1.0.0.alpha2 db/migrate/20151124101123_remove_default_from_spotlight_exhibit.rb
blacklight-spotlight-1.0.0.alpha1 db/migrate/20151124101123_remove_default_from_spotlight_exhibit.rb