Class: AddVariousIndicesToPages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddVariousIndicesToPages
- Defined in:
- lib/generators/tkh_content/create_or_update_migrations/templates/add_various_indices_to_pages.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
9 10 11 12 13 |
# File 'lib/generators/tkh_content/create_or_update_migrations/templates/add_various_indices_to_pages.rb', line 9 def self.down remove_index :pages, :updated_at remove_index :pages, :for_blog remove_index :pages, :title end |
.up ⇒ Object
3 4 5 6 7 |
# File 'lib/generators/tkh_content/create_or_update_migrations/templates/add_various_indices_to_pages.rb', line 3 def self.up add_index :pages, :updated_at add_index :pages, :for_blog add_index :pages, :title end |