class CreateSimpleContents
Public Instance Methods
change()
click to toggle source
# File lib/generators/happy_seed/simple_cms/templates/create_simple_contents.rb, line 2 def change create_table :simple_contents do |t| t.string :key t.string :title t.text :body t.integer :priority t.timestamps end add_index :simple_contents, :key end