From aa0760f0ef52182dd4b6e1b3904580df8f2886f9 Mon Sep 17 00:00:00 2001 From: bsag Date: Sun, 26 Feb 2006 11:03:18 +0000 Subject: [PATCH] Oops. Didn't commit the whole tree in [191]. This commit contains all the fixes referred to in the log for [191]. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@192 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/controllers/login_controller.rb | 10 +- tracks/app/controllers/user_controller.rb | 3 +- tracks/app/models/user.rb | 7 +- tracks/app/views/user/change_password.rhtml | 32 + tracks/config/environments/test.rb | 3 +- tracks/public/stylesheets/scaffold.css | 20 +- tracks/public/stylesheets/standard.css | 2 +- .../vendor/rails/activerecord/test/debug.log | 437 +++++ .../test/fixtures/fixture_database.sqlite3 | Bin 0 -> 35840 bytes .../test/fixtures/fixture_database_2.sqlite3 | Bin 0 -> 2048 bytes tracks/vendor/rake-0.6.2/CHANGES | 234 --- tracks/vendor/rake-0.6.2/MIT-LICENSE | 21 - tracks/vendor/rake-0.6.2/README | 228 --- tracks/vendor/rake-0.6.2/Rakefile | 353 ---- tracks/vendor/rake-0.6.2/TODO | 19 - tracks/vendor/rake-0.6.2/bin/rake | 8 - .../vendor/rake-0.6.2/doc/example/Rakefile1 | 38 - .../vendor/rake-0.6.2/doc/example/Rakefile2 | 35 - tracks/vendor/rake-0.6.2/doc/example/a.c | 6 - tracks/vendor/rake-0.6.2/doc/example/b.c | 6 - tracks/vendor/rake-0.6.2/doc/example/main.c | 11 - tracks/vendor/rake-0.6.2/doc/glossary.rdoc | 51 - tracks/vendor/rake-0.6.2/doc/jamis.rb | 591 ------- tracks/vendor/rake-0.6.2/doc/proto_rake.rdoc | 127 -- tracks/vendor/rake-0.6.2/doc/rake.1.gz | Bin 1369 -> 0 bytes tracks/vendor/rake-0.6.2/doc/rakefile.rdoc | 267 --- tracks/vendor/rake-0.6.2/doc/rational.rdoc | 151 -- .../doc/release_notes/rake-0.4.14.rdoc | 23 - .../doc/release_notes/rake-0.4.15.rdoc | 35 - .../doc/release_notes/rake-0.5.0.rdoc | 53 - .../doc/release_notes/rake-0.5.3.rdoc | 78 - .../doc/release_notes/rake-0.5.4.rdoc | 46 - .../doc/release_notes/rake-0.6.0.rdoc | 141 -- tracks/vendor/rake-0.6.2/install.rb | 88 - tracks/vendor/rake-0.6.2/lib/rake.rb | 1504 ----------------- .../rake-0.6.2/lib/rake/classic_namespace.rb | 8 - tracks/vendor/rake-0.6.2/lib/rake/clean.rb | 31 - .../lib/rake/contrib/compositepublisher.rb | 24 - .../rake-0.6.2/lib/rake/contrib/ftptools.rb | 139 -- .../rake-0.6.2/lib/rake/contrib/publisher.rb | 75 - .../lib/rake/contrib/rubyforgepublisher.rb | 18 - .../lib/rake/contrib/sshpublisher.rb | 47 - .../vendor/rake-0.6.2/lib/rake/contrib/sys.rb | 207 --- .../rake-0.6.2/lib/rake/gempackagetask.rb | 100 -- .../rake-0.6.2/lib/rake/loaders/makefile.rb | 41 - .../vendor/rake-0.6.2/lib/rake/packagetask.rb | 178 -- .../rake-0.6.2/lib/rake/rake_test_loader.rb | 5 - tracks/vendor/rake-0.6.2/lib/rake/rdoctask.rb | 128 -- .../lib/rake/ruby182_test_unit_fix.rb | 23 - tracks/vendor/rake-0.6.2/lib/rake/runtest.rb | 23 - tracks/vendor/rake-0.6.2/lib/rake/tasklib.rb | 18 - tracks/vendor/rake-0.6.2/lib/rake/testtask.rb | 162 -- .../vendor/rake-0.6.2/test/contrib/testsys.rb | 47 - .../rake-0.6.2/test/data/chains/Rakefile | 15 - .../rake-0.6.2/test/data/default/Rakefile | 19 - .../rake-0.6.2/test/data/dryrun/Rakefile | 22 - .../test/data/file_creation_task/Rakefile | 30 - .../rake-0.6.2/test/data/imports/Rakefile | 19 - .../rake-0.6.2/test/data/imports/deps.mf | 1 - .../rake-0.6.2/test/data/multidesc/Rakefile | 14 - .../rake-0.6.2/test/data/rbext/rakefile.rb | 3 - tracks/vendor/rake-0.6.2/test/data/sample.mf | 9 - tracks/vendor/rake-0.6.2/test/filecreation.rb | 35 - tracks/vendor/rake-0.6.2/test/functional.rb | 13 - .../rake-0.6.2/test/session_functional.rb | 159 -- tracks/vendor/rake-0.6.2/test/shellcommand.rb | 3 - tracks/vendor/rake-0.6.2/test/test_clean.rb | 14 - .../rake-0.6.2/test/test_definitions.rb | 82 - .../vendor/rake-0.6.2/test/test_earlytime.rb | 31 - .../test/test_file_creation_task.rb | 56 - .../vendor/rake-0.6.2/test/test_file_task.rb | 140 -- .../vendor/rake-0.6.2/test/test_filelist.rb | 480 ------ .../vendor/rake-0.6.2/test/test_fileutils.rb | 125 -- tracks/vendor/rake-0.6.2/test/test_ftp.rb | 55 - .../rake-0.6.2/test/test_makefile_loader.rb | 23 - .../rake-0.6.2/test/test_package_task.rb | 130 -- tracks/vendor/rake-0.6.2/test/test_rake.rb | 21 - tracks/vendor/rake-0.6.2/test/test_rules.rb | 206 --- tracks/vendor/rake-0.6.2/test/test_tasks.rb | 77 - .../vendor/rake-0.6.2/test/test_test_task.rb | 76 - 80 files changed, 501 insertions(+), 7259 deletions(-) create mode 100644 tracks/app/views/user/change_password.rhtml create mode 100644 tracks/vendor/rails/activerecord/test/debug.log create mode 100644 tracks/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 create mode 100644 tracks/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3 delete mode 100644 tracks/vendor/rake-0.6.2/CHANGES delete mode 100644 tracks/vendor/rake-0.6.2/MIT-LICENSE delete mode 100644 tracks/vendor/rake-0.6.2/README delete mode 100644 tracks/vendor/rake-0.6.2/Rakefile delete mode 100644 tracks/vendor/rake-0.6.2/TODO delete mode 100644 tracks/vendor/rake-0.6.2/bin/rake delete mode 100644 tracks/vendor/rake-0.6.2/doc/example/Rakefile1 delete mode 100644 tracks/vendor/rake-0.6.2/doc/example/Rakefile2 delete mode 100644 tracks/vendor/rake-0.6.2/doc/example/a.c delete mode 100644 tracks/vendor/rake-0.6.2/doc/example/b.c delete mode 100644 tracks/vendor/rake-0.6.2/doc/example/main.c delete mode 100644 tracks/vendor/rake-0.6.2/doc/glossary.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/jamis.rb delete mode 100644 tracks/vendor/rake-0.6.2/doc/proto_rake.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/rake.1.gz delete mode 100644 tracks/vendor/rake-0.6.2/doc/rakefile.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/rational.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/release_notes/rake-0.4.14.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/release_notes/rake-0.4.15.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/release_notes/rake-0.5.0.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/release_notes/rake-0.5.3.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/release_notes/rake-0.5.4.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/doc/release_notes/rake-0.6.0.rdoc delete mode 100644 tracks/vendor/rake-0.6.2/install.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/classic_namespace.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/clean.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/contrib/compositepublisher.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/contrib/ftptools.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/contrib/publisher.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/contrib/rubyforgepublisher.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/contrib/sshpublisher.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/contrib/sys.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/gempackagetask.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/loaders/makefile.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/packagetask.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/rake_test_loader.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/rdoctask.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/ruby182_test_unit_fix.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/runtest.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/tasklib.rb delete mode 100644 tracks/vendor/rake-0.6.2/lib/rake/testtask.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/contrib/testsys.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/data/chains/Rakefile delete mode 100644 tracks/vendor/rake-0.6.2/test/data/default/Rakefile delete mode 100644 tracks/vendor/rake-0.6.2/test/data/dryrun/Rakefile delete mode 100644 tracks/vendor/rake-0.6.2/test/data/file_creation_task/Rakefile delete mode 100644 tracks/vendor/rake-0.6.2/test/data/imports/Rakefile delete mode 100644 tracks/vendor/rake-0.6.2/test/data/imports/deps.mf delete mode 100644 tracks/vendor/rake-0.6.2/test/data/multidesc/Rakefile delete mode 100644 tracks/vendor/rake-0.6.2/test/data/rbext/rakefile.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/data/sample.mf delete mode 100644 tracks/vendor/rake-0.6.2/test/filecreation.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/functional.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/session_functional.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/shellcommand.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_clean.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_definitions.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_earlytime.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_file_creation_task.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_file_task.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_filelist.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_fileutils.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_ftp.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_makefile_loader.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_package_task.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_rake.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_rules.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_tasks.rb delete mode 100644 tracks/vendor/rake-0.6.2/test/test_test_task.rb diff --git a/tracks/app/controllers/login_controller.rb b/tracks/app/controllers/login_controller.rb index ed3f74f5..d1df2ae9 100644 --- a/tracks/app/controllers/login_controller.rb +++ b/tracks/app/controllers/login_controller.rb @@ -20,7 +20,7 @@ class LoginController < ApplicationController redirect_back_or_default :controller => "todo", :action => "list" else @login = @params['user_login'] - @message = "Login unsuccessful" + flash['warning'] = "Login unsuccessful" end end end @@ -51,13 +51,13 @@ class LoginController < ApplicationController return end - user.is_admin = 1 if User.find_all.empty? + user.is_admin = true if User.find_all.empty? if user.save - @session['user'] = User.authenticate(user.login, @params['user']['password']) - @user = @session['user'] + #@session['user'] = User.authenticate(user.login, @params['user']['password']) + @user = User.authenticate(user.login, @params['user']['password']) @user.preferences = { "date_format" => "%d/%m/%Y", "week_starts" => "1", "no_completed" => "5", "staleness_starts" => "7", "due_style" => "1", "admin_email" => "butshesagirl@rousette.org.uk"} @user.save - flash['notice'] = "Signup successful" + flash['notice'] = "Signup successful for user #{@user.login}." redirect_back_or_default :controller => "todo", :action => "list" end end diff --git a/tracks/app/controllers/user_controller.rb b/tracks/app/controllers/user_controller.rb index 8c85c86c..1d2940b6 100644 --- a/tracks/app/controllers/user_controller.rb +++ b/tracks/app/controllers/user_controller.rb @@ -1,5 +1,6 @@ class UserController < ApplicationController layout 'standard' + before_filter :login_required def index render_text "This will be our jumping-off point for managing user functions!" @@ -37,7 +38,7 @@ class UserController < ApplicationController end def change_password - @page_title = "Change password" + @page_title = "TRACKS::Change password" @user = @session['user'] end diff --git a/tracks/app/models/user.rb b/tracks/app/models/user.rb index 6e0afe22..aa3b059c 100644 --- a/tracks/app/models/user.rb +++ b/tracks/app/models/user.rb @@ -18,8 +18,6 @@ class User < ActiveRecord::Base def change_password(pass,pass_confirm) self.password = pass self.password_confirmation = pass_confirm -# update_attribute("password", self.class.sha1(pass)) if pass == pass_confirm -# update_attribute("word", self.class.sha1(login + Time.now.to_i.to_s + rand.to_s)) end protected @@ -29,8 +27,9 @@ protected Digest::SHA1.hexdigest("#{SALT}--#{pass}--") end - after_validation :crypt_password_and_word - + before_create :crypt_password_and_word + before_update :crypt_password_and_word + def crypt_password_and_word write_attribute("password", self.class.sha1(password)) if password == @password_confirmation write_attribute("word", self.class.sha1(login + Time.now.to_i.to_s + rand.to_s)) diff --git a/tracks/app/views/user/change_password.rhtml b/tracks/app/views/user/change_password.rhtml new file mode 100644 index 00000000..14ffc6de --- /dev/null +++ b/tracks/app/views/user/change_password.rhtml @@ -0,0 +1,32 @@ +
+ +

<%= @page_title %>

+ +<% for name in ["notice", "warning", "message"] %> + <% if flash[name] %> + <%= "
#{flash[name]}
" %> + <% end %> +<% end %> + +<%= error_messages_for 'user' %> + +

Enter your new password in the fields below and click 'Change Password' to replace your current password with your new one (note that this will also change the URL you use to subscribe to your RSS or text field).

+ + <%= start_form_tag :action => 'update_password' %> + + + + + + + + + + + + + +
<%= password_field "updateuser", "password", :size => 40 %>
<%= password_field "updateuser", "password_confirmation", :size => 40 %>
<%= link_to 'Cancel', :action => 'preferences' %><%= submit_tag 'Change password' %>
+ <%= end_form_tag %> + +
\ No newline at end of file diff --git a/tracks/config/environments/test.rb b/tracks/config/environments/test.rb index 66b823dc..e1b7a879 100644 --- a/tracks/config/environments/test.rb +++ b/tracks/config/environments/test.rb @@ -20,4 +20,5 @@ config.action_mailer.delivery_method = :test # for more details about these settings. # config.transactional_fixtures = true # config.instantiated_fixtures = false -# config.pre_loaded_fixtures = false \ No newline at end of file +# config.pre_loaded_fixtures = false +SALT = "change-me" unless defined?( SALT ).nil? \ No newline at end of file diff --git a/tracks/public/stylesheets/scaffold.css b/tracks/public/stylesheets/scaffold.css index 41c56569..74c6ffab 100644 --- a/tracks/public/stylesheets/scaffold.css +++ b/tracks/public/stylesheets/scaffold.css @@ -78,7 +78,25 @@ div.memo { margin: 20px auto; padding: 0px; } - + +#warning { + padding: 2px; + border: 1px solid #ED2E38; + background-color: #F6979C; + color: #000000; + margin: 15px 5px; + text-align: center; + } + +#message { + padding: 2px; + border: 1px solid #CCC; + background-color: #D2D3D6; + color: #666; + margin: 15px 5px; + text-align: center; + } + /* Error message styles */ .fieldWithErrors { padding: 2px; diff --git a/tracks/public/stylesheets/standard.css b/tracks/public/stylesheets/standard.css index 264b66f2..646b5762 100644 --- a/tracks/public/stylesheets/standard.css +++ b/tracks/public/stylesheets/standard.css @@ -286,7 +286,7 @@ a.footer_link:hover {color: #fff; background-color: #cc3334 !important;} padding: 2px; border: 1px solid #ED2E38; background-color: #F6979C; - color: #FFFFFF; + color: #000000; margin: 15px 5px; text-align: center; } diff --git a/tracks/vendor/rails/activerecord/test/debug.log b/tracks/vendor/rails/activerecord/test/debug.log new file mode 100644 index 00000000..626fc31a --- /dev/null +++ b/tracks/vendor/rails/activerecord/test/debug.log @@ -0,0 +1,437 @@ +# Logfile created on Wed Feb 22 09:02:35 GMT 2006 by logger.rb/1.5.2.4 + SQL (0.364451) CREATE TABLE 'accounts' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'firm_id' INTEGER DEFAULT NULL, + 'credit_limit' INTEGER DEFAULT NULL +) + SQL (0.311816)  + +CREATE TABLE 'companies' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'type' VARCHAR(255) DEFAULT NULL, + 'ruby_type' VARCHAR(255) DEFAULT NULL, + 'firm_id' INTEGER DEFAULT NULL, + 'name' TEXT DEFAULT NULL, + 'client_of' INTEGER DEFAULT NULL, + 'rating' INTEGER DEFAULT 1 +) + SQL (0.327027)  + + +CREATE TABLE 'topics' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'title' VARCHAR(255) DEFAULT NULL, + 'author_name' VARCHAR(255) DEFAULT NULL, + 'author_email_address' VARCHAR(255) DEFAULT NULL, + 'written_on' DATETIME DEFAULT NULL, + 'bonus_time' TIME DEFAULT NULL, + 'last_read' DATE DEFAULT NULL, + 'content' TEXT, + 'approved' boolean DEFAULT 't', + 'replies_count' INTEGER DEFAULT 0, + 'parent_id' INTEGER DEFAULT NULL, + 'type' VARCHAR(255) DEFAULT NULL +) + SQL (0.356027)  + +CREATE TABLE 'developers' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'name' TEXT DEFAULT NULL, + 'salary' INTEGER DEFAULT 70000, + 'created_at' DATETIME DEFAULT NULL, + 'updated_at' DATETIME DEFAULT NULL +) + SQL (0.327498)  + +CREATE TABLE 'projects' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'name' TEXT DEFAULT NULL, + 'type' VARCHAR(255) DEFAULT NULL +) + SQL (0.327152)  + +CREATE TABLE 'developers_projects' ( + 'developer_id' INTEGER NOT NULL, + 'project_id' INTEGER NOT NULL, + 'joined_on' DATE DEFAULT NULL, + 'access_level' INTEGER DEFAULT 1 +) + SQL (0.326826)  + + +CREATE TABLE 'orders' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'name' VARCHAR(255) DEFAULT NULL, + 'billing_customer_id' INTEGER DEFAULT NULL, + 'shipping_customer_id' INTEGER DEFAULT NULL +) + SQL (0.356291)  + +CREATE TABLE 'customers' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'name' VARCHAR(255) DEFAULT NULL, + 'balance' INTEGER DEFAULT 0, + 'address_street' TEXT DEFAULT NULL, + 'address_city' TEXT DEFAULT NULL, + 'address_country' TEXT DEFAULT NULL, + 'gps_location' TEXT DEFAULT NULL +) + SQL (0.313541)  + +CREATE TABLE 'movies' ( + 'movieid' INTEGER PRIMARY KEY NOT NULL, + 'name' VARCHAR(255) DEFAULT NULL +) + SQL (0.341444)  + +CREATE TABLE subscribers ( + 'nick' VARCHAR(255) PRIMARY KEY NOT NULL, + 'name' VARCHAR(255) DEFAULT NULL +) + SQL (0.356109)  + +CREATE TABLE 'booleantests' ( + 'id' INTEGER PRIMARY KEY NOT NULL, + 'value' INTEGER DEFAULT NULL +) + SQL (0.299288)  + +CREATE TABLE 'auto_id_tests' ( + 'auto_id' INTEGER PRIMARY KEY NOT NULL, + 'value' INTEGER DEFAULT NULL +) + SQL (0.327438)  + +CREATE TABLE 'entrants' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'name' VARCHAR(255) NOT NULL, + 'course_id' INTEGER NOT NULL +) + SQL (0.342461)  + +CREATE TABLE 'colnametests' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'references' INTEGER NOT NULL +) + SQL (0.326617)  + +CREATE TABLE 'mixins' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'parent_id' INTEGER DEFAULT NULL, + 'type' VARCHAR(40) DEFAULT NULL, + 'pos' INTEGER DEFAULT NULL, + 'lft' INTEGER DEFAULT NULL, + 'rgt' INTEGER DEFAULT NULL, + 'root_id' INTEGER DEFAULT NULL, + 'created_at' DATETIME DEFAULT NULL, + 'updated_at' DATETIME DEFAULT NULL +) + SQL (0.298901)  + +CREATE TABLE 'people' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'first_name' VARCHAR(40) DEFAULT NULL, + 'lock_version' INTEGER NOT NULL DEFAULT 0 +) + SQL (0.383537)  + +CREATE TABLE 'binaries' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'data' BLOB DEFAULT NULL +) + SQL (0.314553)  + +CREATE TABLE 'computers' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'developer' INTEGER NOT NULL, + 'extendedWarranty' INTEGER NOT NULL +) + SQL (0.313509)  + +CREATE TABLE 'posts' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'author_id' INTEGER, + 'title' VARCHAR(255) NOT NULL, + 'type' VARCHAR(255) NOT NULL, + 'body' TEXT NOT NULL +) + SQL (0.312656)  + +CREATE TABLE 'comments' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'post_id' INTEGER NOT NULL, + 'type' VARCHAR(255) NOT NULL, + 'body' TEXT NOT NULL +) + SQL (0.370833)  + +CREATE TABLE 'authors' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'name' VARCHAR(255) NOT NULL +) + SQL (0.341725)  + +CREATE TABLE 'tasks' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'starting' DATETIME DEFAULT NULL, + 'ending' DATETIME DEFAULT NULL +) + SQL (0.313227)  + +CREATE TABLE 'categories' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'name' VARCHAR(255) NOT NULL, + 'type' VARCHAR(255) DEFAULT NULL +) + SQL (0.342654)  + +CREATE TABLE 'categories_posts' ( + 'category_id' INTEGER NOT NULL, + 'post_id' INTEGER NOT NULL +) + SQL (0.355434)  + +CREATE TABLE 'fk_test_has_pk' ( + 'id' INTEGER NOT NULL PRIMARY KEY +) + SQL (0.313012)  + +CREATE TABLE 'fk_test_has_fk' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'fk_id' INTEGER NOT NULL, + + FOREIGN KEY ('fk_id') REFERENCES 'fk_test_has_pk'('id') +) + SQL (0.327909)  + +CREATE TABLE 'keyboards' ( + 'key_number' INTEGER PRIMARY KEY NOT NULL, + 'name' VARCHAR(255) DEFAULT NULL +) + SQL (0.354369) CREATE TABLE 'courses' ( + 'id' INTEGER NOT NULL PRIMARY KEY, + 'name' VARCHAR(255) NOT NULL +) + SQL (0.008238) PRAGMA table_info(topics) + SQL (0.001936) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, NULL, '--- +- one +- two +- three', '2006-02-22 09:02:48', NULL, NULL) + Topic Load (0.000691) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Load (0.004732) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.021708) PRAGMA table_info(auto_id_tests) + SQL (0.001471) INSERT INTO auto_id_tests ("value") VALUES(NULL) + Company Load (0.004551) SELECT * FROM companies WHERE (companies.id = 1) LIMIT 1 + SQL (0.011168) PRAGMA table_info(companies) + Firm Update (0.002707) UPDATE companies SET "name" = '37signals', "client_of" = NULL, "rating" = 2147483647, "firm_id" = NULL, "ruby_type" = 'Firm', "type" = 'Firm' WHERE id = 1 + Company Load (0.002322) SELECT * FROM companies WHERE (companies.id = 1) LIMIT 1 + SQL (0.011983) PRAGMA table_info(booleantests) + SQL (0.001625) INSERT INTO booleantests ("value") VALUES(0) + SQL (0.000608) INSERT INTO booleantests ("value") VALUES(1) + Booleantest Load (0.000551) SELECT * FROM booleantests WHERE (booleantests.id = 0) LIMIT 1 + Topic Load (0.004215) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.002738) SELECT * FROM topics WHERE (topics.id = 2) LIMIT 1 + Computer Load (0.004049) SELECT * FROM computers LIMIT 1 + SQL (0.007553) PRAGMA table_info(computers) + SQL (0.018187) PRAGMA table_info(topics) + SQL (0.004108) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'hello', 'Reply', 't', NULL, 0, NULL, 'world', '2006-02-22 09:02:48', NULL, NULL) + Topic Load (0.002219) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Reply Load (0.000843) SELECT * FROM topics WHERE (topics.parent_id = 1) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Reply Update (0.002640) UPDATE topics SET "bonus_time" = NULL, "approved" = 't', "written_on" = '2006-02-22 09:02:48', "author_email_address" = NULL, "content" = 'world', "replies_count" = 0, "title" = 'hello', "author_name" = NULL, "parent_id" = 1, "last_read" = NULL, "type" = 'Reply' WHERE id = 0 + Topic Delete all (0.000936) DELETE FROM topics WHERE (id IN (1))  + Topic Load (0.000583) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Reply Load (0.000979) SELECT * FROM topics WHERE (topics.id = 0) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) ) LIMIT 1 + SQL (0.003438) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'hello', 'Reply', 't', NULL, 0, NULL, 'world', '2006-02-22 09:02:48', NULL, NULL) + Topic Load (0.002749) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Reply Load (0.000902) SELECT * FROM topics WHERE (topics.parent_id = 1) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Reply Update (0.001912) UPDATE topics SET "bonus_time" = NULL, "approved" = 't', "written_on" = '2006-02-22 09:02:48', "author_email_address" = NULL, "content" = 'world', "replies_count" = 0, "title" = 'hello', "author_name" = NULL, "parent_id" = 1, "last_read" = NULL, "type" = 'Reply' WHERE id = 0 + Topic Load (0.002545) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Reply Load (0.000860) SELECT * FROM topics WHERE (topics.parent_id = 1) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Topic Delete all (0.000451) DELETE FROM topics WHERE (parent_id = 1)  + Topic Destroy (0.000557)  DELETE FROM topics + WHERE id = 1 + + Topic Load (0.001116) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Reply Load (0.000589) SELECT * FROM topics WHERE (topics.id = 0) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) ) LIMIT 1 + SQL (0.011551) PRAGMA table_info(companies) + Client Load (0.004009) SELECT * FROM companies WHERE (companies.id = 3) AND ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) ) LIMIT 1 + Firm Load (0.007877) SELECT * FROM companies WHERE (companies.id = 1) AND ( (companies."type" = 'Firm' ) ) LIMIT 1 + Firm Load (0.002278) SELECT * FROM companies WHERE (companies.id = 1) AND ( (companies."type" = 'Firm' ) ) LIMIT 1 + Client Load (0.003355) SELECT * FROM companies WHERE (companies.firm_id = 1) AND ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) ) ORDER BY id  + Client Load (0.005013) SELECT * FROM companies WHERE (companies.firm_id = 1) AND ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) ) ORDER BY id  + Topic Load (0.010690) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.001431) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES('David', '--- +a: c', NULL, 'f', '2000-01-01 14:28:00', 0, 'david@loudthinking.com', 'Have a nice day', '2003-07-16 15:28:00', '2004-04-15', NULL) + Company Load (0.008524) SELECT * FROM companies WHERE (companies.id = 3) LIMIT 1 + DeveloperWithAggregate Load (0.008655) SELECT * FROM developers WHERE (developers.id = 1) LIMIT 1 + SQL (0.005846) PRAGMA table_info(developers) + SQL (0.002019) INSERT INTO developers ("name", "updated_at", "salary", "created_at") VALUES('David', '2006-02-22 09:02:49', 80000, '2006-02-22 09:02:49') + SQL (0.004239) PRAGMA table_info(colnametests) + SQL (0.002245) INSERT INTO colnametests ("references") VALUES(40) + ColumnName Update (0.002336) UPDATE colnametests SET "references" = 41 WHERE id = 0 + ColumnName Load (0.001016) SELECT * FROM colnametests WHERE (colnametests.id = 0) LIMIT 1 + Post Count (0.003503) SELECT COUNT(*) FROM posts LEFT JOIN comments ON posts.id=comments.post_id WHERE posts."type" = 'Post' + Post Count (0.001267) SELECT COUNT(*) FROM posts LEFT JOIN comments ON posts.id=comments.post_id WHERE (posts."type" = 'Post')  + SQL (0.003124) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'New Topic', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + Topic Load (0.000694) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + SQL (0.003434) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'Another New Topic', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + SQL (0.003293) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'first', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + SQL (0.000571) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'second', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + SQL (0.003338) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'New Topic', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + Topic Load (0.000593) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + SQL (0.006616) PRAGMA table_info(subscribers) + SQL (0.002865) PRAGMA table_info(keyboards) + Topic Load (0.004479) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.002569) UPDATE topics SET "bonus_time" = '2000-01-01 14:28:00', "approved" = 'f', "written_on" = '2003-07-16 15:28:00', "author_email_address" = 'david@loudthinking.com', "content" = 'Have a nice day', "replies_count" = 2, "title" = 'The First Topic', "author_name" = 'David', "parent_id" = NULL, "last_read" = '2004-04-15', "type" = NULL WHERE id = 1 + Topic Update (0.000962) UPDATE topics SET "bonus_time" = '2000-01-01 14:28:00', "approved" = 'f', "written_on" = '2003-07-16 15:28:00', "author_email_address" = 'david@loudthinking.com', "content" = 'Have a nice day', "replies_count" = 1, "title" = 'The First Topic', "author_name" = 'David', "parent_id" = NULL, "last_read" = '2004-04-15', "type" = NULL WHERE id = 1 + Reply Load (0.000735) SELECT * FROM topics WHERE (topics.parent_id = 1) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Topic Load (0.002504) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.000755) UPDATE topics SET "bonus_time" = '2000-01-01 14:28:00', "approved" = 'f', "written_on" = '2003-07-16 15:28:00', "author_email_address" = 'david@loudthinking.com', "content" = 'Have a nice day', "replies_count" = -1, "title" = 'The First Topic', "author_name" = 'David', "parent_id" = NULL, "last_read" = '2004-04-15', "type" = NULL WHERE id = 1 + Reply Load (0.000948) SELECT * FROM topics WHERE (topics.parent_id = 1) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Topic Load (0.002257) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.010406) UPDATE topics SET replies_count = replies_count - 1 WHERE (id = 2)  + Topic Load (0.002498) SELECT * FROM topics WHERE (topics.id = 2) LIMIT 1 + Topic Update (0.001241) UPDATE topics SET replies_count = replies_count - 1 WHERE (id = 2)  + Topic Load (0.002399) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.003381) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + Topic Load (0.001056) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + SQL (0.002852) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + Topic Load (0.000600) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Delete all (0.040234) DELETE FROM topics WHERE 1=1 + Topic Delete all (0.003659) DELETE FROM topics WHERE (id IN (1,2))  + Topic Count (0.001563) SELECT COUNT(*) FROM topics  + SQL (0.003603) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'Yet Another New Topic', NULL, 't', NULL, 0, NULL, NULL, '2003-12-12 23:23:00', NULL, NULL) + Reply Load (0.003346) SELECT * FROM topics WHERE (topics.parent_id = 0) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Topic Delete all (0.000497) DELETE FROM topics WHERE (parent_id = 0)  + Topic Destroy (0.000409)  DELETE FROM topics + WHERE id = 0 + + Topic Load (0.001023) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Count (0.003070) SELECT COUNT(*) FROM topics  + Topic Load (0.002273) SELECT * FROM topics WHERE (author_name = 'Mary')  + Reply Load (0.001030) SELECT * FROM topics WHERE (topics.parent_id = 2) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Topic Delete all (0.001630) DELETE FROM topics WHERE (parent_id = 2)  + Topic Destroy (0.000750)  DELETE FROM topics + WHERE id = 2 + + Topic Count (0.001248) SELECT COUNT(*) FROM topics  + Client Count (0.003684) SELECT COUNT(*) FROM companies WHERE ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) )  + Client Load (0.007093) SELECT * FROM companies WHERE (companies.id = 2) AND ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) ) LIMIT 1 + Firm Load (0.000661) SELECT * FROM companies WHERE (companies.id = 2) AND ( (companies."type" = 'Firm' ) ) LIMIT 1 + Client Destroy (0.001917)  DELETE FROM companies + WHERE id = 2 + + Client Load (0.001796) SELECT * FROM companies WHERE (companies.id = 3) AND ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) ) LIMIT 1 + Firm Load (0.002688) SELECT * FROM companies WHERE (companies.id = 1) AND ( (companies."type" = 'Firm' ) ) LIMIT 1 + Client Destroy (0.000853)  DELETE FROM companies + WHERE id = 3 + + Client Count (0.001605) SELECT COUNT(*) FROM companies WHERE ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) )  + Client Load (0.005973) SELECT * FROM companies WHERE (companies.id = 3) AND ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) ) LIMIT 1 + Firm Load (0.002549) SELECT * FROM companies WHERE (companies.id = 1) AND ( (companies."type" = 'Firm' ) ) LIMIT 1 + Client Destroy (0.001864)  DELETE FROM companies + WHERE id = 3 + + SQL (0.003713) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'Yet Another Title', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:49', NULL, NULL) + Reply Load (0.001058) SELECT * FROM topics WHERE (topics.parent_id = 0) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Topic Delete all (0.000551) DELETE FROM topics WHERE (parent_id = 0)  + Topic Destroy (0.000773)  DELETE FROM topics + WHERE id = 0 + + Topic Load (0.008984) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.002726) SELECT * FROM topics WHERE (topics.id = 2) LIMIT 1 + Topic Load (0.002896) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.003320) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, NULL, '--- +two: 2 +one: 1', '2006-02-22 09:02:49', NULL, NULL) + Topic Load (0.000604) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Load (0.009243) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.002759) SELECT * FROM topics WHERE (topics.id = 2) LIMIT 1 + Topic Load (0.005795) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.002667) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.008666) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.002875) UPDATE topics SET "bonus_time" = '2000-01-01 14:28:00', "approved" = 'f', "written_on" = '2003-07-16 15:28:00', "author_email_address" = 'david@loudthinking.com', "content" = 'Have a nice day', "replies_count" = 1, "title" = 'The First Topic', "author_name" = 'David', "parent_id" = NULL, "last_read" = '2004-04-15', "type" = NULL WHERE id = 1 + Topic Load (0.003552) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.001403) UPDATE topics SET "bonus_time" = '2000-01-01 14:28:00', "approved" = 'f', "written_on" = '2003-07-16 15:28:00', "author_email_address" = 'david@loudthinking.com', "content" = 'Have a nice day', "replies_count" = 3, "title" = 'The First Topic', "author_name" = 'David', "parent_id" = NULL, "last_read" = '2004-04-15', "type" = NULL WHERE id = 1 + Reply Load (0.000694) SELECT * FROM topics WHERE (topics.parent_id = 1) AND ( (topics."type" = 'Reply' OR topics."type" = 'SillyReply' ) )  + Topic Load (0.002520) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.009274) UPDATE topics SET replies_count = replies_count + 1 WHERE (id = 1)  + Topic Load (0.002998) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.000938) UPDATE topics SET replies_count = replies_count + 1 WHERE (id = 1)  + Topic Load (0.002618) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.009468) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.005177) UPDATE topics SET "bonus_time" = '2000-01-01 14:28:00', "approved" = 'f', "written_on" = '2003-07-16 15:28:00', "author_email_address" = 'david@loudthinking.com', "content" = 'Have a nice day', "replies_count" = 0, "title" = 'The First Topic', "author_name" = 'David', "parent_id" = 1, "last_read" = '2004-04-15', "type" = NULL WHERE id = 1 + SQL (0.010030) INSERT INTO auto_id_tests ("value") VALUES(NULL) + AutoId Load (0.000585) SELECT * FROM auto_id_tests WHERE (auto_id_tests.auto_id = 0) LIMIT 1 + SQL (0.006707) PRAGMA table_info(categories) + Topic Load (0.012476) SELECT * FROM topics ORDER BY id  + Topic Load (0.002900) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.009610) SELECT * FROM topics WHERE (author_name = 'Mary')  + Topic Load (0.002122) SELECT * FROM topics WHERE (topics.id = 2) LIMIT 1 + SQL (0.006091) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'hello', 'Reply', 't', NULL, 0, NULL, 'world', '2006-02-22 09:02:50', NULL, NULL) + Reply Update (0.002221) UPDATE topics SET "bonus_time" = NULL, "approved" = 'f', "written_on" = '2006-02-22 09:02:50', "author_email_address" = NULL, "content" = 'world', "replies_count" = 0, "title" = 'hello', "author_name" = NULL, "parent_id" = NULL, "last_read" = NULL, "type" = 'Reply' WHERE id = 0 + Topic Load (0.004532) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.011355) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.003861) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.004536) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.009412) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.012033) PRAGMA table_info(tasks) + Topic Load (0.003992) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.002058) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'Hey you', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:50', NULL, NULL) + Topic Load (0.013915) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.004504) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.002590) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.003083) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES('\  '' + \n "', NULL, NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:50', NULL, NULL) + Topic Load (0.000578) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Load (0.006271) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.012460) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.005476) SELECT * FROM topics LIMIT 1 +Exception occured during reader method compilation. +Maybe mumub-jumbo is not a valid Ruby identifier? +(eval):1:in `class_eval': compile error +(eval):1: syntax error +def mumub-jumbo; raise NoMethodError, 'missing attribute: mumub-jumbo', caller unless @attributes.has_key?('mumub-jumbo'); @attributes['mumub-jumbo']; end + ^ +(eval):1: syntax error +def mumub-jumbo; raise NoMethodError, 'missing attribute: mumub-jumbo', caller unless @attributes.has_key?('mumub-jumbo'); @attributes['mumub-jumbo']; end + ^ + Topic Load (0.010857) SELECT * FROM topics LIMIT 1 + Firm Load (0.002415) SELECT * FROM companies WHERE ( (companies."type" = 'Firm' ) ) LIMIT 1 + Client Load (0.001866) SELECT * FROM companies WHERE ( (companies."type" = 'Client' OR companies."type" = 'SpecialClient' OR companies."type" = 'VerySpecialClient' ) ) LIMIT 1 + Topic Load (0.002584) SELECT * FROM topics WHERE (topics.id = 99999) LIMIT 1 + Topic Load (0.011069) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.002149) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.003213) UPDATE topics SET "bonus_time" = '2000-01-01 14:28:00', "approved" = 'f', "written_on" = '2003-07-16 15:28:00', "author_email_address" = 'david@loudthinking.com', "content" = 'Have a nice day', "replies_count" = 0, "title" = 'something else', "author_name" = 'David', "parent_id" = NULL, "last_read" = '2004-04-15', "type" = NULL WHERE id = 1 + Topic Load (0.002511) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.004236) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Developer Load (0.003825) SELECT * FROM developers WHERE (salary > 90000) AND (id < 5)  + Developer Load (0.001538) SELECT * FROM developers WHERE (developers.id = 1) LIMIT 1 + SQL (0.003689) PRAGMA table_info(developers) + Developer Load (0.012198) SELECT * FROM developers ORDER BY id LIMIT 3 OFFSET 2 + Developer Load (0.001852) SELECT * FROM developers WHERE (developers.id = 1) LIMIT 1 + Developer Load (0.003312) SELECT * FROM developers WHERE (developers.id = 1) LIMIT 1 + Developer Load (0.005539) SELECT * FROM developers ORDER BY id  + SQL (0.003824) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, NULL, '--- !ruby/struct:BasicsTest::MyObject +attribute1: value1 +attribute2: value2', '2006-02-22 09:02:50', NULL, NULL) + SQL (0.003664) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, NULL, '--- !ruby/struct:BasicsTest::MyObject +attribute1: value1 +attribute2: value2', '2006-02-22 09:02:50', NULL, NULL) + Topic Load (0.000653) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Load (0.004584) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.011570) SELECT name FROM sqlite_master WHERE type = 'table' + SQL (0.013690) SELECT name FROM sqlite_master WHERE type = 'table' + Topic Load (0.004343) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.003293) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'Another New Topic', NULL, 't', NULL, 0, NULL, NULL, '2003-12-12 23:23:00', NULL, NULL) + Topic Load (0.000615) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Update (0.004120) UPDATE topics SET content = 'bulk updated!'  + Topic Load (0.002553) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.004413) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.002548) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Update (0.004526) UPDATE topics SET content = 'bulk updated!' WHERE (approved = 't')  + Topic Load (0.002641) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + SQL (0.003577) INSERT INTO topics ("author_name", "title", "type", "approved", "bonus_time", "replies_count", "author_email_address", "content", "written_on", "last_read", "parent_id") VALUES(NULL, 'Still another topic', NULL, 't', NULL, 0, NULL, NULL, '2006-02-22 09:02:51', NULL, NULL) + Topic Load (0.000582) SELECT * FROM topics WHERE (topics.id = 0) LIMIT 1 + Topic Load (0.004113) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 + Topic Load (0.011675) SELECT * FROM topics WHERE (topics.id = 1) LIMIT 1 diff --git a/tracks/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 b/tracks/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..eefbb8266886b87547c37e55ab1d0bf9e39047bd GIT binary patch literal 35840 zcmeHQ&2QVt6`v7h$yUCdI9kW?nr@mf!p2=Gir3i%ie1N1vfesQBRfrVC_vV?-_25|C?H^WbbO0FR$5E|C#3M^up*U1ACUz zkF<(jaf}_^Owdb|pF7h&H^1N+8Wi9TdP_D`I-cZ}PE)#~>pnXvL7Dx>q#TiQ(r4KGhyWtc2Z0?hnYYsK=JT^}oq=D# z>zld^R_6Kgy6qU{yV|xJ3AS2sm$|=luW}&__Heg%l7bdOl zZ`!UJsCY1FFz=Bf>^Sxx~KXEhq)_< zsd>KY>Kb%pcA3sgfQ3Rm&@EXranv=(aqVp#&M4V7Sd7&=N%57SU33Rp&r`W6bv93y zGdVDku>6A!qfa+WWtjb^r1y!mCjDG0OYg(n|4-8IrQb@w!ruU0Z+A#U1lkCU#}i~m zBBW~U_;puTZ_%Ir`ZP_DG|>25fZqP`xFquAf#-ZGL1rW8<+AL=Sa9M;TFvlc%l{l7 z6Hj~>c*aLX+HFQlinIkrONg|07;QwP%>#|uf1G?y$mjIa*d6IwTeai6*D&MB^z1Bs z9t=$teOoteM|ZvUUP2tA+699QQwNQ%o@T-ntMk^pkcAJwJ;R(t^Yx0V!L7gd08@7= z2Xmz|jmsm!1nUGJiDB&cSTFlt_&qAB8j_Dn(Y_-{LrWyn`8?e-xOi=-)lif!q%l$G zE*wqyTP4CcCrl5U)%0fg*fuO^h;XEDjkc``CQM3U#-N(4BXu?@Ookdyl6*4se2nX8 zyA|kd!8Rpo5)cOm|KJHu$uLcrsHx>TOu=fpE9lxW!Spr_$2k;xF#gA+uZZ*y*x&~d zKm>*Wfr(h0yiFF%z5zajCHMj2+NP>Ov9XzSbkH)yqsqvHpSF^VvA{1;-iI4@vCSLp?8Z7M@R_zm6 z1FzS~R5E?#3T>!d0isv>;2QfCYFJh+c2)i^TPiN9ilh{E0+*`3fZl zJleA3{m_Kx)>Vl7fpZUz)kw{1E^=_DF?uqYzIv55*0>hUkejc2z8Bp;E9jv_iw5b5 z+nQPL(#M#q5db}VDw$T45KtyOc=A*(i*RsG6h%tO5 zVAv5r`ycieM*R?h-Uy^v5$6B&1_(-e;%>Lu#3qro2Pv~EyM}63jO>yJ$>F7i8kO<{Mg0&ZZkBb46klZDb6Fy2F zO+Vz%?{|qug}lM@{dV2;bm2+tupA;iV`qY()8ioOX`AeFJkV2)>|YSYj1~tRIIz^V4@i=e;lt`bx@?Ub=Q!GXd5*TD+l~q8_-uPoL^~i3f;J?C zLb9RQF+1>N+CW@+OWlS*EsrgS0q?L&v=Sh)!Sny<|2sCfH53F9c&P~B{QsrGjg=t+ z#|i8%{ceR=G zaqT?Mf7+XBMgnS1-3QMsTV9awydhTJq7PJixCBzC|DSuv^&MD(4%V4{qPZ+g5?Qw> z^a(@AV(CIMoles|J#bvxkRStIdEdJv3dm`L2nU%eY$3l$P7;^N@3IJBC{4i7xt5|( zUa~7;a#ctNEpAQ(aiN6}?ivJt7~1@MO4KDJ526m!KdOwlR%Msvl0xCQQeB1Ky_if- zP0_|OmpQ=8Ykpl8C2mp&5m<~D@HHtzkGbNJnx-L_i+#fs-SluSm2A z5;g8UEEbmUuku%(T~`9mj9e_-D-;W>ONBLf_gO?rXG^)x-k6q2WvokFl}5Tl6-Q9T z*_!RG3S6)AEo@=B1)jed1@xPLP z3PwXbDyTz6)fF_j z6x1_Q)D=AaLR{TlgB1MyLlpc%eS8!Gf;@d4gCZ5YT_bgXYVs0uQ`Hs19D|%a9D_8B aOieZ6O1U&ac@voFN5N