class CreateContents
Public Instance Methods
change()
click to toggle source
# File lib/generators/active_content/templates/content.rb, line 2 def change create_table :contents do |t| t.string :type t.string :title, null: false t.text :content t.text :excerpt t.string :ancestry t.timestamps end add_index :contents, :ancestry end