Revision: 17144
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 25, 2009 00:34 by stephen
Initial Code
(defun rails-reverse-rename-column () "In a rails migration, from point to end of buffer, reverse the order of renamed columns" (interactive) (save-excursion (while (re-search-forward "rename_column *\"\\([^\"]*\\)\" *, *\"\\([^\"]*\\)\" *, *\"\\([^\"]*\\)\" *$" nil t) (replace-match "rename_column \"\\1\", \"\\3\", \"\\2\""))))
Initial URL
Initial Description
Initial Title
rails-reverse-rename-column
Initial Tags
rails
Initial Language
Emacs Lisp