Sha256: 02ef4a134bc56eae42bca5cf33063e54c6bc01cd8b3f65d61903a08bdf74049d
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
class CreateSpotlightExhibitFilters < ActiveRecord::Migration def change create_table :spotlight_filters do |t| t.string :field t.string :value t.references :exhibit, index: true, foreign_key: true t.timestamps null: false end reversible do |change| change.up do Spotlight::Exhibit.all.each { |exhibit| exhibit.send(:initialize_filter) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.16.0 | db/migrate/20151217211019_create_spotlight_exhibit_filters.rb |
blacklight-spotlight-0.15.0 | db/migrate/20151217211019_create_spotlight_exhibit_filters.rb |