<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -94,6 +94,38 @@
      (when (&lt; 2  (length versions))
        (nth 1 versions)))))
 
+(defun rails-rake:migrate-version (&amp;optional version direction)
+  &quot;Run the db:migration:(up|down) task&quot;
+  (interactive)
+  (if (string-equal &quot;&quot; version)
+      (setq version (rails-core:current-migration-version)))
+  (rails-rake:task
+   (concat
+    &quot;db:migrate&quot;
+    (cond ((string-equal direction &quot;up&quot;) &quot;:up&quot;)
+          ((string-equal direction &quot;down&quot;) &quot;:down&quot;))
+    (typecase version
+      (integer (format &quot; VERSION=%.3i&quot; version))
+      (string (format &quot; VERSION=%s&quot; version))))))
+
+(defun rails-rake:migration-version-up (&amp;optional version)
+  &quot;Run up migration with VERSION.&quot;
+  (interactive (rails-completing-read &quot;Version of migration&quot;
+                                      (rails-core:migration-versions t)
+                                      nil
+                                      t))
+  (when version
+    (rails-rake:migrate-version version &quot;up&quot;)))
+
+(defun rails-rake:migration-version-down (&amp;optional version)
+  &quot;Run up migration with VERSION.&quot;
+  (interactive (rails-completing-read &quot;Version of migration&quot;
+                                      (rails-core:migration-versions t)
+                                      nil
+                                      t))
+  (when version
+    (rails-rake:migrate-version version &quot;down&quot;)))
+
 ;; This function was originally defined anonymously in ui. It was defined here so keys
 ;; can be added to it dryly
 (defun rails-rake:clone-development-db-to-test-db ()</diff>
      <filename>rails-rake.el</filename>
    </modified>
    <modified>
      <diff>@@ -159,6 +159,8 @@
        (&quot;h&quot; &quot;&lt;h1 id=\&quot;$${alpha}\&quot;&gt;$${paste}&lt;/h1&gt;&quot; &quot;heading&quot;)
        (&quot;ft&quot; &quot;&lt;%= form_tag :action =&gt; \&quot;$${update}\&quot; %&gt;\n$.\n&lt;%= end_form_tag %&gt;&quot; &quot;form_tag&quot;)
        (&quot;ff&quot; &quot;&lt;% form_for :$${item}, :action =&gt; \&quot;$${update}\&quot; do |f| -%&gt;\n$.\n&lt;% end -%&gt;&quot; &quot;form_for&quot;)
+       (&quot;slt&quot; &quot;&lt;%= stylesheet_link_tag \&quot;$${1}\&quot; %&gt;&quot; &quot;stylesheet_link_tag&quot;)
+       (&quot;jit&quot; &quot;&lt;%= javascript_include_tag \&quot;$${1}\&quot; %&gt;&quot; &quot;javascript_include_tag&quot;)
        (&quot;form&quot; &quot;&lt;form action=\&quot;$${action}\&quot; method=\&quot;$${post}\&quot; accept-charset=\&quot;utf-8\&quot;&gt;\n$&gt;$.\n\n$&gt;&lt;p&gt;&lt;input type=\&quot;submit\&quot; value=\&quot;Continue &amp;rarr;\&quot;/&gt;&lt;/p&gt;\n&lt;/form&gt;&quot; &quot;form&quot;)
        (&quot;dtht&quot; &quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//W3C//DTD HTML 4.01//EN\&quot;\n$&gt;\&quot;http://www.w3.org/TR/html4/strict.dtd\&quot;&gt;\n&quot; &quot;HTML -- 4.01 Strict&quot;)
        (&quot;dchttr&quot; &quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//W3C//DTD HTML 4.01 Transitional//EN\&quot;\n$&gt;\&quot;http://www.w3.org/TR/html4/loose.dtd\&quot;&gt;\n&quot; &quot;HTML -- 4.01 Transitional&quot;)
@@ -253,6 +255,7 @@
        (&quot;acl&quot; &quot;add_column :$${,rails-snippets-feature:migration-table-name}, :$${column}, :$${string}&quot; &quot;add column&quot;)
        (&quot;ai&quot; &quot;add_index :$${,rails-snippets-feature:migration-table-name}, $${column}&quot; &quot;add index&quot;)
        (&quot;aiu&quot; &quot;add_index :$${,rails-snippets-feature:migration-table-name}, $${column}, :unique =&gt; true&quot; &quot;add unique index&quot;)
+       (&quot;rmi&quot; &quot;remove_index :$${,rails-snippets-feature:migration-table-name}, $${column}&quot; &quot;remove index&quot;)
        (&quot;rmcl&quot; &quot;remove_column :$${,rails-snippets-feature:migration-table-name}, :$${column}&quot; &quot;remove column&quot;)
        (&quot;recl&quot; &quot;rename_column :$${column}, :$${new_column}&quot; &quot;rename column&quot;)
        (&quot;dt&quot; &quot;drop_table :$${,rails-snippets-feature:migration-table-name}$.&quot; &quot;drop table&quot;)
@@ -268,7 +271,9 @@
        (&quot;session&quot; &quot;session[:$${User}]&quot; &quot;session[...]&quot;)
        (&quot;flash&quot; &quot;flash[:$${notice}] = '$${Successfully}'$.&quot; &quot;flash[...]&quot;)) ; environment
     (0 &quot;tests&quot; rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table rails-integration-test-minor-mode-abbrev-table
-       (&quot;fix&quot; &quot;$${,rails-snippets-feature:fixture}(:$${one})$.&quot; &quot;models(:name)&quot;)) ; functional tests
+       (&quot;fix&quot; &quot;$${,rails-snippets-feature:fixture}(:$${one})$.&quot; &quot;models(:name)&quot;)
+       (&quot;rth&quot; &quot;require File.dirname(__FILE__) + '/../test_helper'&quot; &quot;require tst_helper&quot;)
+       ) ; functional tests
     (0 &quot;shoulda&quot; rails-functional-test-minor-mode-abbrev-table rails-unit-test-minor-mode-abbrev-table rails-integration-test-minor-mode-abbrev-table
        (&quot;cont&quot; &quot;context \&quot;$${description}\&quot; do\n$&gt;setup do\n$&gt;$${setup}\nend$&gt;\n\n$&gt;should$.\nend$&gt;&quot; &quot;context block with setup&quot;)
        (&quot;should&quot; &quot;should \&quot;$${description}\&quot; do\n$&gt;$.\nend$&gt;&quot; &quot;should block&quot;)</diff>
      <filename>rails-snippets-feature.el</filename>
    </modified>
    <modified>
      <diff>@@ -288,6 +288,8 @@
   ((rails-key &quot;\C-c d m&quot;) 'rails-rake:migrate)
   ((rails-key &quot;\C-c d v&quot;) 'rails-rake:migrate-to-version)
   ((rails-key &quot;\C-c d p&quot;) 'rails-rake:migrate-to-prev-version)
+  ((rails-key &quot;\C-c d u&quot;) 'rails-rake:migration-version-up)
+  ((rails-key &quot;\C-c d d&quot;) 'rails-rake:migration-version-down)
   ((rails-key &quot;\C-c d t&quot;) 'rails-rake:clone-development-db-to-test-db)
 
   ;; Tests</diff>
      <filename>rails-ui.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5b50ac7baeae981d1a7bf45a957717f175cab121</id>
    </parent>
    <parent>
      <id>0ad15ce2fc5b507de738c533c8f8e55e4617b949</id>
    </parent>
  </parents>
  <author>
    <name>Remco van 't Veer</name>
    <email>rwvtveer@xs4all.nl</email>
  </author>
  <url>http://github.com/remvee/emacs-rails/commit/30c14281dffe888715e919b564ee79a8b4a0f6b3</url>
  <id>30c14281dffe888715e919b564ee79a8b4a0f6b3</id>
  <committed-date>2009-07-02T02:50:44-07:00</committed-date>
  <authored-date>2009-07-02T02:50:44-07:00</authored-date>
  <message>Merge branch 'crazycode'</message>
  <tree>0735e39fd46654e4e297d04f369bcc5daeefe24e</tree>
  <committer>
    <name>Remco van 't Veer</name>
    <email>rwvtveer@xs4all.nl</email>
  </committer>
</commit>
