class CreateEntries < ActiveRecord::Migration
  def change
    create_table :entries do |t|
      t.string :title
      t.text :body
      t.text :rendered
      t.datetime :published_at
      t.integer :user_id
    end

    add_index :entries, :published_at
    add_index :entries, :user_id
  end
end

class CreateEntries < ActiveRecord::Migration
  def change
    create_table :entries do |t|
      t.string :title
      t.text :body
      t.text :rendered
      t.datetime :published_at
      t.integer :user_id
      t.string :slug
    end

    add_index :entries, :published_at
    add_index :entries, :user_id
    add_index :entries, :slug
  end
end

Add slug column on entries
Add slug column on entries
