Sha256: 5ef995cac6cb1d4dd118a2766227fc12e3fc882a273149cc7affd7d44efc5543

Contents?: true

Size: 157 Bytes

Versions: 6

Compression:

Stored size: 157 Bytes

Contents

class AddIndexForPage < ActiveRecord::Migration
  def self.up
    add_index(:pages, :slug)
  end

  def self.down
    remove_index(:pages, :slug)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_static_content-0.60.1 lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb
spree_static_content-0.60.0 lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb
spree_static_content-0.40.2 lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb
spree_static_content-0.40.1 lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb
spree_static_content-0.40.0 lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb
spree_static_content-0.30.0 lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb