Sha256: b80310cd5c3d86e68e7bc18cb7b89f60d98ec747a9f7403ae70163e54d94a166
Contents?: true
Size: 401 Bytes
Versions: 33
Compression:
Stored size: 401 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 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
33 entries across 33 versions & 1 rubygems