tb_blog 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/javascripts/spud/admin/post_comments.js +14 -0
  3. data/app/assets/javascripts/spud/admin/posts.js +1 -0
  4. data/app/assets/stylesheets/spud/admin/posts.css +20 -1
  5. data/app/controllers/blog_controller.rb +17 -13
  6. data/app/controllers/spud/admin/post_comments_controller.rb +8 -6
  7. data/app/controllers/spud/admin/posts_controller.rb +1 -1
  8. data/app/helpers/spud/admin/post_comments_helper.rb +1 -0
  9. data/app/models/spud_post.rb +9 -4
  10. data/app/models/spud_post_comment.rb +14 -4
  11. data/app/views/blog/_comment_form.html.erb +13 -1
  12. data/app/views/blog/index.html.erb +1 -1
  13. data/app/views/spud/admin/post_comments/index.html.erb +20 -5
  14. data/app/views/spud/admin/posts/index.html.erb +3 -4
  15. data/lib/spud_blog/configuration.rb +2 -1
  16. data/lib/spud_blog/version.rb +1 -1
  17. data/spec/controllers/blog_controller_spec.rb +43 -0
  18. data/spec/controllers/spud/admin/posts_controller_spec.rb +5 -0
  19. data/spec/dummy/README.rdoc +261 -0
  20. data/spec/dummy/Rakefile +7 -0
  21. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  22. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  23. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  24. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/spec/dummy/config.ru +4 -0
  27. data/spec/dummy/config/application.rb +59 -0
  28. data/spec/dummy/config/boot.rb +10 -0
  29. data/spec/dummy/config/database.yml +15 -0
  30. data/spec/dummy/config/environment.rb +10 -0
  31. data/spec/dummy/config/environments/development.rb +37 -0
  32. data/spec/dummy/config/environments/production.rb +67 -0
  33. data/spec/dummy/config/environments/test.rb +37 -0
  34. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/spec/dummy/config/initializers/inflections.rb +15 -0
  36. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  37. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  38. data/spec/dummy/config/initializers/session_store.rb +8 -0
  39. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  40. data/spec/dummy/config/locales/en.yml +5 -0
  41. data/spec/dummy/config/routes.rb +4 -0
  42. data/spec/dummy/db/migrate/20120610130206_create_spud_admin_permissions.spud_core.rb +12 -0
  43. data/spec/dummy/db/migrate/20120610130207_create_spud_users.spud_core.rb +30 -0
  44. data/spec/dummy/db/migrate/20120610130208_add_time_zone_to_spud_user.spud_core.rb +7 -0
  45. data/spec/dummy/db/migrate/20120610130209_add_scope_to_spud_admin_permissions.spud_core.rb +7 -0
  46. data/spec/dummy/db/migrate/20120610130210_create_spud_user_settings.spud_core.rb +12 -0
  47. data/spec/dummy/db/schema.rb +130 -0
  48. data/spec/dummy/log/development.log +263 -0
  49. data/spec/dummy/log/test.log +3339 -0
  50. data/spec/dummy/public/404.html +26 -0
  51. data/spec/dummy/public/422.html +26 -0
  52. data/spec/dummy/public/500.html +25 -0
  53. data/spec/dummy/public/favicon.ico +0 -0
  54. data/spec/dummy/script/rails +6 -0
  55. data/spec/factories/spud_post_factories.rb +17 -0
  56. data/spec/factories/spud_user_factories.rb +31 -0
  57. data/spec/spec_helper.rb +38 -0
  58. data/spec/support/authlogic_helper.rb +2 -0
  59. metadata +94 -13
  60. data/test/fixtures/spud_post_sites.yml +0 -9
  61. data/test/unit/spud_post_site_test.rb +0 -7
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to Rails.root.join("public/assets")
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '3a89d4b95c1fd9c3d43623d8e2b5a907988d00bfdbfb6de2ae26b760a49fcdc86937728b8cdf3301e4df1342c5f44a3d8d83410d857e341f1907c9c467b9bcf4'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ root :to => "pages#show", :id => "home"
4
+ end
@@ -0,0 +1,12 @@
1
+ # This migration comes from spud_core (originally 20111214161011)
2
+ class CreateSpudAdminPermissions < ActiveRecord::Migration
3
+ def change
4
+ create_table :spud_admin_permissions do |t|
5
+ t.integer :user_id
6
+ t.string :name
7
+ t.boolean :access
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,30 @@
1
+ # This migration comes from spud_core (originally 20111214161146)
2
+ class CreateSpudUsers < ActiveRecord::Migration
3
+ def change
4
+ create_table :spud_users do |t|
5
+
6
+ t.string :first_name
7
+ t.string :last_name
8
+ t.boolean :super_admin
9
+ t.string :login, :null => false # optional, you can use email instead, or both
10
+ t.string :email, :null => false # optional, you can use login instead, or both
11
+ t.string :crypted_password, :null => false # optional, see below
12
+ t.string :password_salt, :null => false # optional, but highly recommended
13
+ t.string :persistence_token, :null => false # required
14
+ t.string :single_access_token, :null => false # optional, see Authlogic::Session::Params
15
+ t.string :perishable_token, :null => false # optional, see Authlogic::Session::Perishability
16
+
17
+ # Magic columns, just like ActiveRecord's created_at and updated_at. These are automatically maintained by Authlogic if they are present.
18
+ t.integer :login_count, :null => false, :default => 0 # optional, see Authlogic::Session::MagicColumns
19
+ t.integer :failed_login_count, :null => false, :default => 0 # optional, see Authlogic::Session::MagicColumns
20
+ t.datetime :last_request_at # optional, see Authlogic::Session::MagicColumns
21
+ t.datetime :current_login_at # optional, see Authlogic::Session::MagicColumns
22
+ t.datetime :last_login_at # optional, see Authlogic::Session::MagicColumns
23
+ t.string :current_login_ip # optional, see Authlogic::Session::MagicColumns
24
+ t.string :last_login_ip # optional, see Authlogic::Session::MagicColumns
25
+ t.timestamps
26
+ end
27
+ add_index :spud_users,:login
28
+ add_index :spud_users,:email
29
+ end
30
+ end
@@ -0,0 +1,7 @@
1
+ # This migration comes from spud_core (originally 20120327124229)
2
+ class AddTimeZoneToSpudUser < ActiveRecord::Migration
3
+ def change
4
+ add_column :spud_users, :time_zone, :string
5
+
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # This migration comes from spud_core (originally 20120328235431)
2
+ class AddScopeToSpudAdminPermissions < ActiveRecord::Migration
3
+ def change
4
+ add_column :spud_admin_permissions, :scope, :string
5
+
6
+ end
7
+ end
@@ -0,0 +1,12 @@
1
+ # This migration comes from spud_core (originally 20120329174000)
2
+ class CreateSpudUserSettings < ActiveRecord::Migration
3
+ def change
4
+ create_table :spud_user_settings do |t|
5
+ t.integer :spud_user_id
6
+ t.string :key
7
+ t.string :value
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,130 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130121130612) do
15
+
16
+ create_table "spud_admin_permissions", :force => true do |t|
17
+ t.integer "user_id"
18
+ t.string "name"
19
+ t.boolean "access"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ t.string "scope"
23
+ end
24
+
25
+ create_table "spud_post_categories", :force => true do |t|
26
+ t.string "name"
27
+ t.datetime "created_at", :null => false
28
+ t.datetime "updated_at", :null => false
29
+ t.integer "parent_id", :default => 0
30
+ t.string "url_name"
31
+ t.integer "lft"
32
+ t.integer "rgt"
33
+ t.integer "depth"
34
+ end
35
+
36
+ add_index "spud_post_categories", ["parent_id"], :name => "index_spud_post_categories_on_parent_id"
37
+ add_index "spud_post_categories", ["url_name"], :name => "index_spud_post_categories_on_url_name"
38
+
39
+ create_table "spud_post_categories_posts", :id => false, :force => true do |t|
40
+ t.integer "spud_post_id"
41
+ t.integer "spud_post_category_id"
42
+ end
43
+
44
+ add_index "spud_post_categories_posts", ["spud_post_category_id"], :name => "index_spud_post_categories_posts_on_spud_post_category_id"
45
+
46
+ create_table "spud_post_comments", :force => true do |t|
47
+ t.integer "spud_post_id"
48
+ t.string "author"
49
+ t.text "content"
50
+ t.boolean "approved", :default => false
51
+ t.datetime "created_at", :null => false
52
+ t.datetime "updated_at", :null => false
53
+ t.boolean "spam"
54
+ t.string "user_ip"
55
+ t.string "user_agent"
56
+ t.string "referrer"
57
+ t.string "permalink"
58
+ end
59
+
60
+ add_index "spud_post_comments", ["approved"], :name => "index_spud_post_comments_on_approved"
61
+ add_index "spud_post_comments", ["spud_post_id"], :name => "index_spud_post_comments_on_spud_post_id"
62
+
63
+ create_table "spud_post_sites", :force => true do |t|
64
+ t.integer "spud_post_id", :null => false
65
+ t.integer "spud_site_id", :null => false
66
+ t.datetime "created_at", :null => false
67
+ t.datetime "updated_at", :null => false
68
+ end
69
+
70
+ add_index "spud_post_sites", ["spud_post_id"], :name => "index_spud_post_sites_on_spud_post_id"
71
+ add_index "spud_post_sites", ["spud_site_id"], :name => "index_spud_post_sites_on_spud_site_id"
72
+
73
+ create_table "spud_posts", :force => true do |t|
74
+ t.integer "spud_user_id"
75
+ t.string "title"
76
+ t.text "content"
77
+ t.boolean "comments_enabled", :default => false
78
+ t.boolean "visible", :default => true
79
+ t.datetime "published_at"
80
+ t.datetime "created_at", :null => false
81
+ t.datetime "updated_at", :null => false
82
+ t.string "url_name"
83
+ t.boolean "is_news", :default => false
84
+ t.string "meta_keywords"
85
+ t.text "meta_description"
86
+ t.integer "comments_count", :default => 0
87
+ t.string "content_format", :default => "HTML"
88
+ t.text "content_processed"
89
+ end
90
+
91
+ add_index "spud_posts", ["is_news"], :name => "index_spud_posts_on_is_news"
92
+ add_index "spud_posts", ["spud_user_id"], :name => "index_spud_posts_on_spud_user_id"
93
+ add_index "spud_posts", ["url_name"], :name => "index_spud_posts_on_url_name"
94
+ add_index "spud_posts", ["visible"], :name => "index_spud_posts_on_visible"
95
+
96
+ create_table "spud_user_settings", :force => true do |t|
97
+ t.integer "spud_user_id"
98
+ t.string "key"
99
+ t.string "value"
100
+ t.datetime "created_at", :null => false
101
+ t.datetime "updated_at", :null => false
102
+ end
103
+
104
+ create_table "spud_users", :force => true do |t|
105
+ t.string "first_name"
106
+ t.string "last_name"
107
+ t.boolean "super_admin"
108
+ t.string "login", :null => false
109
+ t.string "email", :null => false
110
+ t.string "crypted_password", :null => false
111
+ t.string "password_salt", :null => false
112
+ t.string "persistence_token", :null => false
113
+ t.string "single_access_token", :null => false
114
+ t.string "perishable_token", :null => false
115
+ t.integer "login_count", :default => 0, :null => false
116
+ t.integer "failed_login_count", :default => 0, :null => false
117
+ t.datetime "last_request_at"
118
+ t.datetime "current_login_at"
119
+ t.datetime "last_login_at"
120
+ t.string "current_login_ip"
121
+ t.string "last_login_ip"
122
+ t.datetime "created_at", :null => false
123
+ t.datetime "updated_at", :null => false
124
+ t.string "time_zone"
125
+ end
126
+
127
+ add_index "spud_users", ["email"], :name => "index_spud_users_on_email"
128
+ add_index "spud_users", ["login"], :name => "index_spud_users_on_login"
129
+
130
+ end
@@ -0,0 +1,263 @@
1
+ Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
2
+  (483.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
3
+  (140.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
4
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
5
+ Migrating to CreateSpudPosts (20120125180945)
6
+  (435.2ms) CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
7
+  (205.1ms) CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
8
+  (200.2ms) CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
9
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125180945')
10
+ Migrating to CreateSpudPostCategories (20120125181022)
11
+  (190.2ms) CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
12
+  (232.2ms) CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
13
+  (203.9ms) CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
14
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125181022')
15
+ Migrating to CreateSpudPostComments (20120125181359)
16
+  (193.3ms) CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
17
+  (236.3ms) CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
18
+  (200.4ms) CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
19
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125181359')
20
+ Migrating to AddUrlToSpudPosts (20120127143054)
21
+  (206.9ms) ALTER TABLE `spud_posts` ADD `url_name` varchar(255)
22
+  (223.3ms) CREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)
23
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120127143054')
24
+ Migrating to AddUrlToSpudPostCategories (20120127144942)
25
+  (186.2ms) ALTER TABLE `spud_post_categories` ADD `parent_id` int(11) DEFAULT 0
26
+  (220.5ms) ALTER TABLE `spud_post_categories` ADD `url_name` varchar(255)
27
+  (201.2ms) CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
28
+  (189.9ms) CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
29
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120127144942')
30
+ Migrating to AddIsNewsToSpudPosts (20120210165540)
31
+  (217.3ms) ALTER TABLE `spud_posts` ADD `is_news` tinyint(1) DEFAULT 0
32
+  (235.8ms) CREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)
33
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120210165540')
34
+ Migrating to AddMetaToPosts (20120309181917)
35
+  (196.1ms) ALTER TABLE `spud_posts` ADD `meta_keywords` varchar(255)
36
+  (232.6ms) ALTER TABLE `spud_posts` ADD `meta_description` text
37
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120309181917')
38
+ Migrating to AddCommentsCounterToSpudPosts (20120413020437)
39
+  (156.0ms) ALTER TABLE `spud_posts` ADD `comments_count` int(11) DEFAULT 0
40
+ SpudPost Load (0.3ms) SELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000
41
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120413020437')
42
+ Migrating to CreateSpudAdminPermissions (20120610130206)
43
+  (195.8ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
44
+  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130206')
45
+ Migrating to CreateSpudUsers (20120610130207)
46
+  (208.0ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
47
+  (203.6ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
48
+  (200.0ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
49
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130207')
50
+ Migrating to AddTimeZoneToSpudUser (20120610130208)
51
+  (206.7ms) ALTER TABLE `spud_users` ADD `time_zone` varchar(255)
52
+  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130208')
53
+ Migrating to AddScopeToSpudAdminPermissions (20120610130209)
54
+  (209.6ms) ALTER TABLE `spud_admin_permissions` ADD `scope` varchar(255)
55
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130209')
56
+ Migrating to CreateSpudUserSettings (20120610130210)
57
+  (194.2ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
58
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130210')
59
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
60
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
61
+  (0.3ms) DROP DATABASE IF EXISTS `spud_blog_test`
62
+  (0.2ms) CREATE DATABASE `spud_blog_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
63
+  (116.6ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
64
+  (273.0ms) CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `parent_id` int(11) DEFAULT 0, `url_name` varchar(255)) ENGINE=InnoDB
65
+  (215.1ms) CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
66
+  (266.9ms) CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
67
+  (174.8ms) CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
68
+  (225.7ms) CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
69
+  (194.8ms) CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
70
+  (226.1ms) CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
71
+  (210.8ms) CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
72
+  (216.0ms) CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `url_name` varchar(255), `is_news` tinyint(1) DEFAULT 0, `meta_keywords` varchar(255), `meta_description` text, `comments_count` int(11) DEFAULT 0) ENGINE=InnoDB
73
+  (225.3ms) CREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)
74
+  (200.1ms) CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
75
+  (220.8ms) CREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)
76
+  (235.0ms) CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
77
+  (227.6ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
78
+  (231.2ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
79
+  (214.3ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
80
+  (211.8ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
81
+  (222.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
82
+  (237.1ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
83
+  (0.1ms) SELECT version FROM `schema_migrations`
84
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610130210')
85
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125180945')
86
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125181022')
87
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125181359')
88
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120127143054')
89
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120127144942')
90
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120210165540')
91
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120309181917')
92
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120413020437')
93
+ Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
94
+  (53.6ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
95
+  (289.4ms) CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `parent_id` int(11) DEFAULT 0, `url_name` varchar(255)) ENGINE=InnoDB
96
+  (103.1ms) CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
97
+  (90.9ms) CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
98
+  (115.0ms) CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
99
+  (125.1ms) CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
100
+  (84.5ms) CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
101
+  (126.7ms) CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
102
+  (86.5ms) CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
103
+  (106.3ms) CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `url_name` varchar(255), `is_news` tinyint(1) DEFAULT 0, `meta_keywords` varchar(255), `meta_description` text, `comments_count` int(11) DEFAULT 0) ENGINE=InnoDB
104
+  (83.8ms) CREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)
105
+  (87.3ms) CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
106
+  (113.3ms) CREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)
107
+  (110.6ms) CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
108
+  (114.7ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
109
+  (119.4ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
110
+  (93.1ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
111
+  (89.3ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
112
+  (105.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
113
+  (126.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
114
+  (0.3ms) SELECT version FROM `schema_migrations`
115
+  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610130210')
116
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610130206')
117
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610130207')
118
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610130208')
119
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610130209')
120
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125180945')
121
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125181022')
122
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125181359')
123
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120127143054')
124
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120127144942')
125
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120210165540')
126
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120309181917')
127
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120413020437')
128
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
129
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
130
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
131
+ Migrating to CreateSpudPosts (20120125180945)
132
+ Migrating to CreateSpudPostCategories (20120125181022)
133
+ Migrating to CreateSpudPostComments (20120125181359)
134
+ Migrating to AddUrlToSpudPosts (20120127143054)
135
+ Migrating to AddUrlToSpudPostCategories (20120127144942)
136
+ Migrating to AddIsNewsToSpudPosts (20120210165540)
137
+ Migrating to AddMetaToPosts (20120309181917)
138
+ Migrating to AddCommentsCounterToSpudPosts (20120413020437)
139
+ Migrating to CreateSpudAdminPermissions (20120610130206)
140
+ Migrating to CreateSpudUsers (20120610130207)
141
+ Migrating to AddTimeZoneToSpudUser (20120610130208)
142
+ Migrating to AddScopeToSpudAdminPermissions (20120610130209)
143
+ Migrating to CreateSpudUserSettings (20120610130210)
144
+ Migrating to CreateSpudPostSites (20120713150446)
145
+  (35.7ms) CREATE TABLE `spud_post_sites` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11) NOT NULL, `spud_site_id` int(11) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
146
+  (147.9ms) CREATE INDEX `index_spud_post_sites_on_spud_post_id` ON `spud_post_sites` (`spud_post_id`)
147
+  (89.9ms) CREATE INDEX `index_spud_post_sites_on_spud_site_id` ON `spud_post_sites` (`spud_site_id`)
148
+  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120713150446')
149
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
150
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
151
+  (0.5ms) DROP DATABASE IF EXISTS `spud_blog_test`
152
+  (0.3ms) CREATE DATABASE `spud_blog_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
153
+  (45.6ms) CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
154
+  (152.3ms) CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `parent_id` int(11) DEFAULT 0, `url_name` varchar(255)) ENGINE=InnoDB
155
+  (93.0ms) CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
156
+  (90.4ms) CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
157
+  (115.5ms) CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
158
+  (114.0ms) CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
159
+  (84.0ms) CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
160
+  (115.8ms) CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
161
+  (87.1ms) CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
162
+  (105.9ms) CREATE TABLE `spud_post_sites` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11) NOT NULL, `spud_site_id` int(11) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
163
+  (116.3ms) CREATE INDEX `index_spud_post_sites_on_spud_post_id` ON `spud_post_sites` (`spud_post_id`)
164
+  (100.5ms) CREATE INDEX `index_spud_post_sites_on_spud_site_id` ON `spud_post_sites` (`spud_site_id`)
165
+  (115.7ms) CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `url_name` varchar(255), `is_news` tinyint(1) DEFAULT 0, `meta_keywords` varchar(255), `meta_description` text, `comments_count` int(11) DEFAULT 0) ENGINE=InnoDB
166
+  (138.4ms) CREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)
167
+  (110.5ms) CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
168
+  (144.8ms) CREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)
169
+  (133.6ms) CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
170
+  (125.7ms) CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
171
+  (131.0ms) CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
172
+  (105.7ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
173
+  (149.5ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
174
+  (211.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
175
+  (147.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
176
+  (0.4ms) SELECT version FROM `schema_migrations`
177
+  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120713150446')
178
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125180945')
179
+  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125181022')
180
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120125181359')
181
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120127143054')
182
+  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120127144942')
183
+  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120210165540')
184
+  (1.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120309181917')
185
+  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120413020437')
186
+ Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
187
+ Connecting to database specified by database.yml
188
+ Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
189
+ Connecting to database specified by database.yml
190
+ Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
191
+ Connecting to database specified by database.yml
192
+  (2.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
193
+ Migrating to CreateSpudPosts (20120125180945)
194
+ Migrating to CreateSpudPostCategories (20120125181022)
195
+ Migrating to CreateSpudPostComments (20120125181359)
196
+ Migrating to AddUrlToSpudPosts (20120127143054)
197
+ Migrating to AddUrlToSpudPostCategories (20120127144942)
198
+ Migrating to AddIsNewsToSpudPosts (20120210165540)
199
+ Migrating to AddMetaToPosts (20120309181917)
200
+ Migrating to AddCommentsCounterToSpudPosts (20120413020437)
201
+ Migrating to CreateSpudAdminPermissions (20120610130206)
202
+ Migrating to CreateSpudUsers (20120610130207)
203
+ Migrating to AddTimeZoneToSpudUser (20120610130208)
204
+ Migrating to AddScopeToSpudAdminPermissions (20120610130209)
205
+ Migrating to CreateSpudUserSettings (20120610130210)
206
+ Migrating to CreateSpudPostSites (20120713150446)
207
+ Migrating to AddSpamFieldsToSpudPostComments (20120825142547)
208
+ Migrating to AddPermalinkToSpudPostComments (20120825144506)
209
+ Migrating to AddNestedSetToPostCategories (20121113135812)
210
+ Migrating to AddContentFormatToSpudPosts (20130120151857)
211
+  (56.0ms) ALTER TABLE `spud_posts` ADD `content_format` varchar(255) DEFAULT 'HTML'
212
+  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130120151857')
213
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
214
+ Connecting to database specified by database.yml
215
+  (1.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
216
+ Migrating to CreateSpudAdminPermissions (20120610130206)
217
+ Migrating to CreateSpudUsers (20120610130207)
218
+ Migrating to AddTimeZoneToSpudUser (20120610130208)
219
+ Migrating to AddScopeToSpudAdminPermissions (20120610130209)
220
+ Migrating to CreateSpudUserSettings (20120610130210)
221
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
222
+ Connecting to database specified by database.yml
223
+  (2.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
224
+ Migrating to CreateSpudPosts (20120125180945)
225
+ Migrating to CreateSpudPostCategories (20120125181022)
226
+ Migrating to CreateSpudPostComments (20120125181359)
227
+ Migrating to AddUrlToSpudPosts (20120127143054)
228
+ Migrating to AddUrlToSpudPostCategories (20120127144942)
229
+ Migrating to AddIsNewsToSpudPosts (20120210165540)
230
+ Migrating to AddMetaToPosts (20120309181917)
231
+ Migrating to AddCommentsCounterToSpudPosts (20120413020437)
232
+ Migrating to CreateSpudAdminPermissions (20120610130206)
233
+ Migrating to CreateSpudUsers (20120610130207)
234
+ Migrating to AddTimeZoneToSpudUser (20120610130208)
235
+ Migrating to AddScopeToSpudAdminPermissions (20120610130209)
236
+ Migrating to CreateSpudUserSettings (20120610130210)
237
+ Migrating to CreateSpudPostSites (20120713150446)
238
+ Migrating to AddSpamFieldsToSpudPostComments (20120825142547)
239
+  (23.0ms) ALTER TABLE `spud_post_comments` ADD `spam` tinyint(1)
240
+  (24.0ms) ALTER TABLE `spud_post_comments` ADD `user_ip` varchar(255)
241
+  (16.1ms) ALTER TABLE `spud_post_comments` ADD `user_agent` varchar(255)
242
+  (19.0ms) ALTER TABLE `spud_post_comments` ADD `referrer` varchar(255)
243
+  (1.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120825142547')
244
+ Migrating to AddPermalinkToSpudPostComments (20120825144506)
245
+  (18.3ms) ALTER TABLE `spud_post_comments` ADD `permalink` varchar(255)
246
+  (0.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120825144506')
247
+ Migrating to AddNestedSetToPostCategories (20121113135812)
248
+  (16.6ms) ALTER TABLE `spud_post_categories` ADD `lft` int(11)
249
+  (16.8ms) ALTER TABLE `spud_post_categories` ADD `rgt` int(11)
250
+  (23.1ms) ALTER TABLE `spud_post_categories` ADD `depth` int(11)
251
+ SQL (0.8ms) UPDATE `spud_post_categories` SET `parent_id` = NULL WHERE `spud_post_categories`.`parent_id` = 0
252
+  (0.3ms) SELECT COUNT(*) FROM `spud_post_categories` LEFT OUTER JOIN `spud_post_categories` AS parent ON `spud_post_categories`.`parent_id` = parent.id WHERE (`spud_post_categories`.`lft` IS NULL OR `spud_post_categories`.`rgt` IS NULL OR `spud_post_categories`.`lft` >= `spud_post_categories`.`rgt` OR (`spud_post_categories`.`parent_id` IS NOT NULL AND (`spud_post_categories`.`lft` <= parent.`lft` OR `spud_post_categories`.`rgt` >= parent.`rgt`)))
253
+ SpudPostCategory Load (0.9ms) SELECT `spud_post_categories`.`lft`, COUNT(`spud_post_categories`.`lft`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`lft` HAVING COUNT(`spud_post_categories`.`lft`) > 1 LIMIT 1
254
+ SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.`rgt`, COUNT(`spud_post_categories`.`rgt`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`rgt` HAVING COUNT(`spud_post_categories`.`rgt`) > 1 LIMIT 1
255
+ SpudPostCategory Load (0.2ms) SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`parent_id` IS NULL ORDER BY `spud_post_categories`.`lft`
256
+  (1.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121113135812')
257
+ Migrating to AddContentFormatToSpudPosts (20130120151857)
258
+  (29.4ms) ALTER TABLE `spud_posts` ADD `content_format` varchar(255) DEFAULT 'HTML'
259
+  (1.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130120151857')
260
+ Migrating to AddContentProcessedToSpudPost (20130121130612)
261
+  (25.2ms) ALTER TABLE `spud_posts` ADD `content_processed` text
262
+  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130121130612')
263
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`