Sha256: 65cdfe92a5bda2de14b47e659b4c2fbfd4ced30bfd136da08ccdee07dd4e42f6
Contents?: true
Size: 406 Bytes
Versions: 104
Compression:
Stored size: 406 Bytes
Contents
class CreateSpotlightExhibitFilters < ActiveRecord::Migration[4.2] 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
104 entries across 104 versions & 1 rubygems