Class: CreateContentBlocks
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateContentBlocks
- Defined in:
- lib/generators/sufia/models/templates/migrations/create_content_blocks.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/sufia/models/templates/migrations/create_content_blocks.rb', line 2 def change create_table :content_blocks do |t| t.string :name t.text :value t. end add_index :content_blocks, :name, unique: true end |