Class: AddIndexToContentBlocks
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddIndexToContentBlocks
- Defined in:
- lib/generators/manifest/install/templates/add_index_to_content_blocks.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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 |