<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,6 +17,7 @@ class ProjectsController &lt; ApplicationController
 
     @servers = Server.find(:all).map {|s| [s.name, s.id]}
     @environments = Environment.find(:all).map {|e| [e.name, e.id]}
+    @system = System.find(:first)
   end
 
   def edit</diff>
      <filename>app/controllers/projects_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@
 &lt;/div&gt;
 &lt;div class=&quot;input&quot;&gt;
   &lt;label for=&quot;project_rails_root&quot;&gt;Rails Root&lt;/label&gt;
-  &lt;%= form.text_field :rails_root %&gt;
+  &lt;%= form.text_field :rails_root, :value =&gt; @system.default_rails_root %&gt;
   &lt;span&gt;The directory that your app runs from&lt;/span&gt;
 &lt;/div&gt;
 &lt;div class=&quot;input&quot;&gt;</diff>
      <filename>app/views/projects/_form.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -23,6 +23,11 @@
     &lt;%= form.text_field :poll_interval %&gt;
     &lt;span&gt;How often I should ask apps about their status (in seconds)&lt;/span&gt;
   &lt;/div&gt;
+  &lt;div class=&quot;input&quot;&gt;
+    &lt;label for=&quot;system_default_rails_root&quot;&gt;Default Rails Root&lt;/label&gt;
+    &lt;%= form.text_field :default_rails_root %&gt;
+    &lt;span&gt;If you keep most of your apps in one directory, enter that here and you won't need to type the full path each time (ex /Users/rob/Sites)&lt;/span&gt;
+  &lt;/div&gt;
   &lt;div id=&quot;save&quot;&gt;
     &lt;%= submit_tag 'Save Settings' %&gt; or &lt;%= link_to 'Cancel', :controller =&gt; 'dashboard' %&gt;
   &lt;/div&gt;</diff>
      <filename>app/views/settings/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -9,52 +9,53 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 5) do
+ActiveRecord::Schema.define(:version =&gt; 6) do
 
   create_table &quot;environments&quot;, :force =&gt; true do |t|
-    t.string &quot;name&quot;,        :default =&gt; &quot;NULL&quot;
-    t.string &quot;short_name&quot;,  :default =&gt; &quot;NULL&quot;
-    t.string &quot;description&quot;, :default =&gt; &quot;NULL&quot;
-    t.string &quot;command&quot;,     :default =&gt; &quot;NULL&quot;
-    t.string &quot;log&quot;,         :default =&gt; &quot;NULL&quot;
+    t.string &quot;name&quot;
+    t.string &quot;short_name&quot;
+    t.string &quot;description&quot;
+    t.string &quot;command&quot;
+    t.string &quot;log&quot;
   end
 
   create_table &quot;projects&quot;, :force =&gt; true do |t|
-    t.string   &quot;name&quot;,                                :null =&gt; false
-    t.string   &quot;description&quot;,                         :null =&gt; false
-    t.string   &quot;local_url&quot;,                           :null =&gt; false
-    t.string   &quot;remote_url&quot;,                          :null =&gt; false
-    t.string   &quot;rails_root&quot;,                          :null =&gt; false
-    t.integer  &quot;port&quot;,                                :null =&gt; false
-    t.integer  &quot;pid&quot;,             :default =&gt; 0
-    t.integer  &quot;server_id&quot;,                           :null =&gt; false
-    t.integer  &quot;state_id&quot;,                            :null =&gt; false
-    t.integer  &quot;environment_id&quot;,                      :null =&gt; false
-    t.text     &quot;notes&quot;,           :default =&gt; &quot;NULL&quot;
+    t.string   &quot;name&quot;,            :null =&gt; false
+    t.string   &quot;description&quot;,     :null =&gt; false
+    t.string   &quot;local_url&quot;,       :null =&gt; false
+    t.string   &quot;remote_url&quot;,      :null =&gt; false
+    t.string   &quot;rails_root&quot;,      :null =&gt; false
+    t.integer  &quot;port&quot;,            :null =&gt; false
+    t.integer  &quot;pid&quot;
+    t.integer  &quot;server_id&quot;,       :null =&gt; false
+    t.integer  &quot;state_id&quot;,        :null =&gt; false
+    t.integer  &quot;environment_id&quot;,  :null =&gt; false
+    t.text     &quot;notes&quot;
     t.datetime &quot;last_started_at&quot;
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
   end
 
   create_table &quot;servers&quot;, :force =&gt; true do |t|
-    t.string &quot;name&quot;,    :default =&gt; &quot;NULL&quot;
-    t.string &quot;command&quot;, :default =&gt; &quot;NULL&quot;
+    t.string &quot;name&quot;
+    t.string &quot;command&quot;
   end
 
   create_table &quot;states&quot;, :force =&gt; true do |t|
-    t.string &quot;name&quot;,        :default =&gt; &quot;NULL&quot;
-    t.string &quot;description&quot;, :default =&gt; &quot;NULL&quot;
-    t.string &quot;color_1&quot;,     :default =&gt; &quot;NULL&quot;
-    t.string &quot;color_2&quot;,     :default =&gt; &quot;NULL&quot;
+    t.string &quot;name&quot;
+    t.string &quot;description&quot;
+    t.string &quot;color_1&quot;
+    t.string &quot;color_2&quot;
   end
 
   create_table &quot;systems&quot;, :force =&gt; true do |t|
-    t.string   &quot;local_hostname&quot;,  :default =&gt; &quot;NULL&quot;
-    t.string   &quot;remote_hostname&quot;, :default =&gt; &quot;NULL&quot;
-    t.integer  &quot;port&quot;,            :default =&gt; 0
-    t.integer  &quot;poll_interval&quot;,   :default =&gt; 0
+    t.string   &quot;local_hostname&quot;
+    t.string   &quot;remote_hostname&quot;
+    t.integer  &quot;port&quot;
+    t.integer  &quot;poll_interval&quot;
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
+    t.string   &quot;default_rails_root&quot;
   end
 
 end</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>60956d2ed350e631eafbffe655d7523c75bae19e</id>
    </parent>
  </parents>
  <author>
    <name>Rob Cameron</name>
    <email>cannikinn@gmail.com</email>
  </author>
  <url>http://github.com/cannikin/alfred/commit/1dd2b8ccbca109c1e6f7455fb63932b79334ccaa</url>
  <id>1dd2b8ccbca109c1e6f7455fb63932b79334ccaa</id>
  <committed-date>2009-04-23T13:37:47-07:00</committed-date>
  <authored-date>2009-04-23T13:37:47-07:00</authored-date>
  <message>Added default rails root to settings</message>
  <tree>6347c0af7c0c3189bfa943c841daaea0a998be8d</tree>
  <committer>
    <name>Rob Cameron</name>
    <email>cannikinn@gmail.com</email>
  </committer>
</commit>
