Sha256: 41df9b1d57a16392dd7058f4a17a5d27ab8d482f94c98e093b98c2f8f7123f0c
Contents?: true
Size: 796 Bytes
Versions: 17
Compression:
Stored size: 796 Bytes
Contents
class AddIndexes < ActiveRecord::Migration def self.up add_index :pages, :class_name, :name => :pages_class_name add_index :pages, :parent_id, :name => :pages_parent_id add_index :pages, %w{slug parent_id}, :name => :pages_child_slug add_index :pages, %w{virtual status_id}, :name => :pages_published add_index :page_parts, %w{page_id name}, :name => :parts_by_page end def self.down remove_index :page_parts, :name => :parts_by_page remove_index :pages, :name => :pages_published remove_index :pages, :name => :pages_child_slug remove_index :pages, :name => :pages_parent_id remove_index :pages, :name => :pages_class_name end end
Version data entries
17 entries across 17 versions & 3 rubygems