Class: AddIndexToContentBlocks

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

Instance Method Summary collapse

Instance Method Details

#changeObject



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

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