Class: AddIndexToPages

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/manifest/install/templates/add_index_to_pages.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
# File 'lib/generators/manifest/install/templates/add_index_to_pages.rb', line 2

def change
  add_index :pages, :slug, unique: true
end