Sha256: f1b8b1586c45a4978c939297573a1a4ce5759cbdb734ad80f341d92f01418b76
Contents?: true
Size: 634 Bytes
Versions: 82
Compression:
Stored size: 634 Bytes
Contents
class AddIndexes < ActiveRecord::Migration def up # add performance indexes add_index :festivity_performances, :event_page_id add_index :festivity_performances, :location_page_id # add category indexes add_index :festivity_page_categories, [:page_id, :festivity_category_id], unique: true, name: "event_categories" end def down remove_index :festivity_performances, :event_page_id remove_index :festivity_performances, :location_page_id # add category indexes remove_index :festivity_page_categories, [:page_id, :festivity_category_id], unique: true, name: "event_categories" end end
Version data entries
82 entries across 82 versions & 1 rubygems