class CreateContentBlocks
Public Instance Methods
change()
click to toggle source
# 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.timestamps end add_index :content_blocks, :name, unique: true end