<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/bookmark_accounts_controller.rb</filename>
    </added>
    <added>
      <filename>app/helpers/bookmark_accounts_helper.rb</filename>
    </added>
    <added>
      <filename>app/models/bookmark_account.rb</filename>
    </added>
    <added>
      <filename>app/views/bookmark_accounts/index.html.erb</filename>
    </added>
    <added>
      <filename>db/migrate/20080613115813_create_bookmark_accounts.rb</filename>
    </added>
    <added>
      <filename>test/fixtures/bookmark_accounts.yml</filename>
    </added>
    <added>
      <filename>test/functional/bookmark_accounts_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/bookmark_account_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,9 +1,11 @@
 class Site &lt; ActiveRecord::Base
 
   attr_protected :user_id, :published, :featured
-  has_many :comments, :class_name =&gt; 'Site::Comment', :dependent =&gt; :destroy
   belongs_to :user
-  has_many :assets, :class_name =&gt; 'Site::Asset', :conditions =&gt; 'thumbnail IS NULL', :order =&gt; &quot;site_assets.position ASC, site_assets.id ASC&quot;
+  belongs_to :bookmark_account
+
+  has_many :comments, :class_name =&gt; 'Site::Comment', :dependent =&gt; :destroy
+  has_many :assets, :class_name =&gt; 'Site::Asset', :conditions =&gt; 'thumbnail IS NULL', :order =&gt; &quot;site_assets.position ASC, site_assets.id ASC&quot;, :dependent =&gt; :delete_all
   has_one :screenshot, :class_name =&gt; 'Site::Asset', :conditions =&gt; 'thumbnail IS NULL', :order =&gt; &quot;site_assets.position ASC, site_assets.id ASC&quot;
 
   acts_as_taggable
@@ -12,9 +14,9 @@ class Site &lt; ActiveRecord::Base
   validates_presence_of :title
   validates_presence_of :permalink
   validates_presence_of :url
-  validates_presence_of :description
+#  validates_presence_of :description
   validates_presence_of :user_id
-  validates_length_of :description, :minimum =&gt; 40
+#  validates_length_of :description, :minimum =&gt; 40
   
   def before_validation
     self.permalink = PermalinkFu.escape(self.url_short) if self.permalink.blank?</diff>
      <filename>app/models/site.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,9 @@
 class User &lt; Goldberg::User
-  has_many :sites
-  has_many :posts
-  has_many :comments
-  has_many :assets
+  has_many :sites, :dependent =&gt; :destroy
+  has_many :posts, :dependent =&gt; :destroy
+  has_many :comments, :dependent =&gt; :delete_all
+  has_many :assets, :dependent =&gt; :delete_all
+  has_many :bookmark_accounts, :dependent =&gt; :destroy
   
   def guest?
     self.role.name.downcase == 'guest'</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 ActionController::Routing::Routes.draw do |map|
+  map.resources :bookmark_accounts
+
 
 
   map.resources :sites, </diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 # This file is auto-generated from the current state of the database. Instead of editing this file, 
-# please use the migrations feature of ActiveRecord to incrementally modify your database, and
+# please use the migrations feature of Active Record to incrementally modify your database, and
 # then regenerate this schema definition.
 #
 # Note that this schema.rb definition is the authoritative source for your database schema. If you need
@@ -9,29 +9,39 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 12) do
+ActiveRecord::Schema.define(:version =&gt; 20080613115813) do
+
+  create_table &quot;bookmark_accounts&quot;, :force =&gt; true do |t|
+    t.integer  &quot;user_id&quot;,    :limit =&gt; 11, :null =&gt; false
+    t.string   &quot;service&quot;
+    t.string   &quot;login&quot;
+    t.string   &quot;tags&quot;
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
 
   create_table &quot;comments&quot;, :force =&gt; true do |t|
-    t.integer  &quot;post_id&quot;,                              :null =&gt; false
-    t.integer  &quot;parent_comment_id&quot;
-    t.text     &quot;body&quot;,              :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.integer  &quot;user_id&quot;
+    t.integer  &quot;post_id&quot;,           :limit =&gt; 11
+    t.integer  &quot;parent_comment_id&quot;, :limit =&gt; 11
+    t.text     &quot;body&quot;,                                               :null =&gt; false
+    t.integer  &quot;user_id&quot;,           :limit =&gt; 11
     t.string   &quot;user_email&quot;
     t.string   &quot;user_website&quot;
-    t.boolean  &quot;published&quot;,         :default =&gt; false
+    t.boolean  &quot;published&quot;,                       :default =&gt; false
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
     t.string   &quot;type&quot;
     t.string   &quot;user_name&quot;
-    t.boolean  &quot;subscribed&quot;,        :default =&gt; false
+    t.boolean  &quot;subscribed&quot;,                      :default =&gt; false
+    t.integer  &quot;site_id&quot;,           :limit =&gt; 11
   end
 
   create_table &quot;goldberg_content_pages&quot;, :force =&gt; true do |t|
     t.string   &quot;title&quot;
     t.string   &quot;name&quot;
-    t.integer  &quot;markup_style_id&quot;
+    t.integer  &quot;markup_style_id&quot;, :limit =&gt; 11
     t.text     &quot;content&quot;
-    t.integer  &quot;permission_id&quot;
+    t.integer  &quot;permission_id&quot;,   :limit =&gt; 11
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
     t.text     &quot;content_cache&quot;
@@ -42,9 +52,9 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
   add_index &quot;goldberg_content_pages&quot;, [&quot;markup_style_id&quot;], :name =&gt; &quot;fk_content_page_markup_style_id&quot;
 
   create_table &quot;goldberg_controller_actions&quot;, :force =&gt; true do |t|
-    t.integer &quot;site_controller_id&quot;
+    t.integer &quot;site_controller_id&quot;, :limit =&gt; 11
     t.string  &quot;name&quot;
-    t.integer &quot;permission_id&quot;
+    t.integer &quot;permission_id&quot;,      :limit =&gt; 11
     t.string  &quot;url_to_use&quot;
   end
 
@@ -52,12 +62,12 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
   add_index &quot;goldberg_controller_actions&quot;, [&quot;site_controller_id&quot;], :name =&gt; &quot;fk_controller_action_site_controller_id&quot;
 
   create_table &quot;goldberg_menu_items&quot;, :force =&gt; true do |t|
-    t.integer &quot;parent_id&quot;
+    t.integer &quot;parent_id&quot;,            :limit =&gt; 11
     t.string  &quot;name&quot;
     t.string  &quot;label&quot;
-    t.integer &quot;seq&quot;
-    t.integer &quot;controller_action_id&quot;
-    t.integer &quot;content_page_id&quot;
+    t.integer &quot;seq&quot;,                  :limit =&gt; 11
+    t.integer &quot;controller_action_id&quot;, :limit =&gt; 11
+    t.integer &quot;content_page_id&quot;,      :limit =&gt; 11
   end
 
   add_index &quot;goldberg_menu_items&quot;, [&quot;controller_action_id&quot;], :name =&gt; &quot;fk_menu_item_controller_action_id&quot;
@@ -70,9 +80,9 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
 
   create_table &quot;goldberg_roles&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
-    t.integer  &quot;parent_id&quot;
-    t.string   &quot;description&quot;,     :default =&gt; &quot;&quot;, :null =&gt; false
-    t.integer  &quot;default_page_id&quot;
+    t.integer  &quot;parent_id&quot;,       :limit =&gt; 11
+    t.string   &quot;description&quot;,                   :default =&gt; &quot;&quot;, :null =&gt; false
+    t.integer  &quot;default_page_id&quot;, :limit =&gt; 11
     t.text     &quot;cache&quot;
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
@@ -83,8 +93,8 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
   add_index &quot;goldberg_roles&quot;, [&quot;default_page_id&quot;], :name =&gt; &quot;fk_role_default_page_id&quot;
 
   create_table &quot;goldberg_roles_permissions&quot;, :force =&gt; true do |t|
-    t.integer &quot;role_id&quot;
-    t.integer &quot;permission_id&quot;
+    t.integer &quot;role_id&quot;,       :limit =&gt; 11
+    t.integer &quot;permission_id&quot;, :limit =&gt; 11
   end
 
   add_index &quot;goldberg_roles_permissions&quot;, [&quot;role_id&quot;], :name =&gt; &quot;fk_roles_permission_role_id&quot;
@@ -92,8 +102,8 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
 
   create_table &quot;goldberg_site_controllers&quot;, :force =&gt; true do |t|
     t.string  &quot;name&quot;
-    t.integer &quot;permission_id&quot;
-    t.integer &quot;builtin&quot;,       :default =&gt; 0
+    t.integer &quot;permission_id&quot;, :limit =&gt; 11
+    t.integer &quot;builtin&quot;,       :limit =&gt; 11, :default =&gt; 0
   end
 
   add_index &quot;goldberg_site_controllers&quot;, [&quot;permission_id&quot;], :name =&gt; &quot;fk_site_controller_permission_id&quot;
@@ -101,20 +111,20 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
   create_table &quot;goldberg_system_settings&quot;, :force =&gt; true do |t|
     t.string  &quot;site_name&quot;
     t.string  &quot;site_subtitle&quot;
-    t.string  &quot;footer_message&quot;,                      :default =&gt; &quot;&quot;
-    t.integer &quot;public_role_id&quot;
-    t.integer &quot;session_timeout&quot;,                     :default =&gt; 0,  :null =&gt; false
-    t.integer &quot;site_default_page_id&quot;
-    t.integer &quot;not_found_page_id&quot;
-    t.integer &quot;permission_denied_page_id&quot;
-    t.integer &quot;session_expired_page_id&quot;
-    t.integer &quot;menu_depth&quot;,                          :default =&gt; 0,  :null =&gt; false
+    t.string  &quot;footer_message&quot;,                                    :default =&gt; &quot;&quot;
+    t.integer &quot;public_role_id&quot;,                      :limit =&gt; 11
+    t.integer &quot;session_timeout&quot;,                     :limit =&gt; 11, :default =&gt; 0,  :null =&gt; false
+    t.integer &quot;site_default_page_id&quot;,                :limit =&gt; 11
+    t.integer &quot;not_found_page_id&quot;,                   :limit =&gt; 11
+    t.integer &quot;permission_denied_page_id&quot;,           :limit =&gt; 11
+    t.integer &quot;session_expired_page_id&quot;,             :limit =&gt; 11
+    t.integer &quot;menu_depth&quot;,                          :limit =&gt; 11, :default =&gt; 0,  :null =&gt; false
     t.string  &quot;start_path&quot;
     t.string  &quot;site_url_prefix&quot;
     t.boolean &quot;self_reg_enabled&quot;
-    t.integer &quot;self_reg_role_id&quot;
+    t.integer &quot;self_reg_role_id&quot;,                    :limit =&gt; 11
     t.boolean &quot;self_reg_confirmation_required&quot;
-    t.integer &quot;self_reg_confirmation_error_page_id&quot;
+    t.integer &quot;self_reg_confirmation_error_page_id&quot;, :limit =&gt; 11
     t.boolean &quot;self_reg_send_confirmation_email&quot;
   end
 
@@ -127,7 +137,7 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
   create_table &quot;goldberg_users&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
     t.string   &quot;password&quot;
-    t.integer  &quot;role_id&quot;
+    t.integer  &quot;role_id&quot;,                        :limit =&gt; 11
     t.string   &quot;password_salt&quot;
     t.string   &quot;fullname&quot;
     t.string   &quot;email&quot;
@@ -141,51 +151,86 @@ ActiveRecord::Schema.define(:version =&gt; 12) do
 
   add_index &quot;goldberg_users&quot;, [&quot;role_id&quot;], :name =&gt; &quot;fk_user_role_id&quot;
 
+  create_table &quot;newsletter_users&quot;, :force =&gt; true do |t|
+    t.integer  &quot;user_id&quot;,       :limit =&gt; 11, :null =&gt; false
+    t.integer  &quot;newsletter_id&quot;, :limit =&gt; 11, :null =&gt; false
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
+
+  add_index &quot;newsletter_users&quot;, [&quot;user_id&quot;, &quot;newsletter_id&quot;], :name =&gt; &quot;index_newsletter_users_on_user_id_and_newsletter_id&quot;, :unique =&gt; true
+
+  create_table &quot;newsletters&quot;, :force =&gt; true do |t|
+    t.string   &quot;title&quot;,       :default =&gt; &quot;&quot;, :null =&gt; false
+    t.text     &quot;description&quot;
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
+
   create_table &quot;plugin_schema_info&quot;, :id =&gt; false, :force =&gt; true do |t|
     t.string  &quot;plugin_name&quot;
-    t.integer &quot;version&quot;
+    t.integer &quot;version&quot;,     :limit =&gt; 11
   end
 
   create_table &quot;posts&quot;, :force =&gt; true do |t|
-    t.string   &quot;title&quot;,          :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.string   &quot;excerpt&quot;,        :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.text     &quot;body&quot;,           :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.datetime &quot;published_at&quot;,                      :null =&gt; false
-    t.boolean  &quot;published&quot;,      :default =&gt; false
-    t.string   &quot;permalink&quot;,      :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.integer  &quot;user_id&quot;,                           :null =&gt; false
+    t.string   &quot;title&quot;,                         :default =&gt; &quot;&quot;,    :null =&gt; false
+    t.string   &quot;excerpt&quot;,                       :default =&gt; &quot;&quot;,    :null =&gt; false
+    t.text     &quot;body&quot;,                                             :null =&gt; false
+    t.datetime &quot;published_at&quot;,                                     :null =&gt; false
+    t.boolean  &quot;published&quot;,                     :default =&gt; false
+    t.string   &quot;permalink&quot;,                     :default =&gt; &quot;&quot;,    :null =&gt; false
+    t.integer  &quot;user_id&quot;,         :limit =&gt; 11,                    :null =&gt; false
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
-    t.integer  &quot;comments_count&quot;, :default =&gt; 0
+    t.integer  &quot;comments_count&quot;,  :limit =&gt; 11, :default =&gt; 0
+    t.string   &quot;cached_tag_list&quot;,               :default =&gt; &quot;&quot;
   end
 
   create_table &quot;site_assets&quot;, :force =&gt; true do |t|
-    t.integer  &quot;size&quot;
+    t.integer  &quot;size&quot;,         :limit =&gt; 11
     t.string   &quot;content_type&quot;
-    t.string   &quot;filename&quot;,     :default =&gt; &quot;&quot;, :null =&gt; false
-    t.integer  &quot;height&quot;
-    t.integer  &quot;width&quot;
-    t.integer  &quot;parent_id&quot;
+    t.string   &quot;filename&quot;,                   :default =&gt; &quot;&quot;, :null =&gt; false
+    t.integer  &quot;height&quot;,       :limit =&gt; 11
+    t.integer  &quot;width&quot;,        :limit =&gt; 11
+    t.integer  &quot;parent_id&quot;,    :limit =&gt; 11
     t.string   &quot;thumbnail&quot;
-    t.integer  &quot;user_id&quot;,                      :null =&gt; false
-    t.integer  &quot;site_id&quot;
-    t.integer  &quot;position&quot;,     :default =&gt; 0
+    t.integer  &quot;user_id&quot;,      :limit =&gt; 11,                 :null =&gt; false
+    t.integer  &quot;site_id&quot;,      :limit =&gt; 11
+    t.integer  &quot;position&quot;,     :limit =&gt; 11, :default =&gt; 0
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
   end
 
+  add_index &quot;site_assets&quot;, [&quot;site_id&quot;], :name =&gt; &quot;site_id&quot;
+
   create_table &quot;sites&quot;, :force =&gt; true do |t|
-    t.string   &quot;title&quot;,              :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.string   &quot;url&quot;,                :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.string   &quot;owner&quot;,              :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.text     &quot;description&quot;,        :default =&gt; &quot;&quot;,    :null =&gt; false
-    t.integer  &quot;user_id&quot;,                               :null =&gt; false
+    t.string   &quot;title&quot;,                            :default =&gt; &quot;&quot;,    :null =&gt; false
+    t.string   &quot;url&quot;,                              :default =&gt; &quot;&quot;,    :null =&gt; false
+    t.string   &quot;owner&quot;,                            :default =&gt; &quot;&quot;,    :null =&gt; false
+    t.text     &quot;description&quot;,                                         :null =&gt; false
+    t.integer  &quot;user_id&quot;,            :limit =&gt; 11,                    :null =&gt; false
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
-    t.integer  &quot;comments_count&quot;,     :default =&gt; 0
+    t.integer  &quot;comments_count&quot;,     :limit =&gt; 11, :default =&gt; 0
     t.string   &quot;permalink&quot;
-    t.boolean  &quot;published&quot;,          :default =&gt; false
+    t.boolean  &quot;published&quot;,                        :default =&gt; false
     t.string   &quot;thumbnail_filename&quot;
+    t.boolean  &quot;featured&quot;,                         :default =&gt; false
+    t.string   &quot;cached_tag_list&quot;,                  :default =&gt; &quot;&quot;
+  end
+
+  create_table &quot;taggings&quot;, :force =&gt; true do |t|
+    t.integer  &quot;tag_id&quot;,        :limit =&gt; 11
+    t.integer  &quot;taggable_id&quot;,   :limit =&gt; 11
+    t.string   &quot;taggable_type&quot;
+    t.datetime &quot;created_at&quot;
+  end
+
+  add_index &quot;taggings&quot;, [&quot;tag_id&quot;], :name =&gt; &quot;index_taggings_on_tag_id&quot;
+  add_index &quot;taggings&quot;, [&quot;taggable_id&quot;, &quot;taggable_type&quot;], :name =&gt; &quot;index_taggings_on_taggable_id_and_taggable_type&quot;
+
+  create_table &quot;tags&quot;, :force =&gt; true do |t|
+    t.string &quot;name&quot;
   end
 
 end</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>script/rails_spec</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>8c40fbbf3a6f8c765c352467b0392abeef27056d</id>
    </parent>
  </parents>
  <author>
    <name>TomK32</name>
    <email>tomk32@tomk32.de</email>
  </author>
  <url>http://github.com/TomK32/plasticairships/commit/094be3bdf9741d4712c3a6ff5e13c53897a3ddbb</url>
  <id>094be3bdf9741d4712c3a6ff5e13c53897a3ddbb</id>
  <committed-date>2008-06-13T06:30:02-07:00</committed-date>
  <authored-date>2008-06-13T06:30:02-07:00</authored-date>
  <message>added bookmark_account model and unit tests. started with views</message>
  <tree>e05087c2f6487bfc3c72eae5214c1be429bc99c0</tree>
  <committer>
    <name>TomK32</name>
    <email>tomk32@tomk32.de</email>
  </committer>
</commit>
