class CreatePosts < ActiveRecord::Migration def self.up create_table :posts do |t| t.string :title t.string :slug t.text :body t.string :status t.datetime :created_at t.datetime :updated_at t.boolean :allow_comments t.timestamps end end def self.down drop_table :posts end end