Skip to content

Instantly share code, notes, and snippets.

@andyhawthorne
Created December 9, 2012 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyhawthorne/4247318 to your computer and use it in GitHub Desktop.
Save andyhawthorne/4247318 to your computer and use it in GitHub Desktop.
class AddSlugToArticles < ActiveRecord::Migration
def change
add_column :articles, :slug, :string
add_index :articles, :slug
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment