paths_of_glory 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -40,6 +40,10 @@ Then, in your User model:
40
40
  include Achievements
41
41
  end
42
42
 
43
+ and in config/environment.rb, add app/models/achievements to your load path:
44
+
45
+ config.load_paths += %W( #{RAILS_ROOT}/app/models/achievements )
46
+
43
47
  Basic Usage
44
48
  ===========
45
49
 
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ begin
25
25
  require 'jeweler'
26
26
  Jeweler::Tasks.new do |s|
27
27
  s.name = "paths_of_glory"
28
- s.version = "0.1.1"
28
+ s.version = "0.1.2"
29
29
  s.author = "Paul Campbell"
30
30
  s.email = "paul@rslw.com"
31
31
  s.homepage = "http://www.github.com/paulca/paths_of_glory"
@@ -16,6 +16,10 @@ Now, add 'include Achievements' to your User model:
16
16
  class User < ActiveRecord::Base
17
17
  include Achievements
18
18
  end
19
+
20
+ and add 'app/modeles/achievements' to your load paths:
21
+
22
+ config.load_paths += \%\W( \#\{Rails.root\}/app/models/achievements )
19
23
 
20
24
  and run:
21
25
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{paths_of_glory}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Campbell"]
data/spec/debug.log CHANGED
@@ -4059,3 +4059,203 @@
4059
4059
  Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4060
4060
  Dedicated Create (0.1ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:22:21', '2010-05-20 13:22:21', 5, 'f', 'Dedicated', 1)
4061
4061
  Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4062
+ SQL (0.2ms) select sqlite_version(*)
4063
+ SQL (0.5ms)  SELECT name
4064
+ FROM sqlite_master
4065
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4066
+ 
4067
+ SQL (3.0ms) DROP TABLE "achievements"
4068
+ SQL (1.8ms) CREATE TABLE "achievements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "level" integer, "user_id" integer, "created_at" datetime, "updated_at" datetime, "notified" boolean DEFAULT 'f') 
4069
+ SQL (0.5ms)  SELECT name
4070
+ FROM sqlite_master
4071
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4072
+ 
4073
+ SQL (9.0ms) DROP TABLE "users"
4074
+ SQL (6.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) NOT NULL, "encrypted_password" varchar(40) NOT NULL, "password_salt" varchar(255) NOT NULL, "confirmation_token" varchar(20), "confirmed_at" datetime, "confirmation_sent_at" datetime, "reset_password_token" varchar(20), "remember_token" varchar(20), "remember_created_at" datetime, "sign_in_count" integer, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(20), "locked_at" datetime, "created_at" datetime, "updated_at" datetime, "password_set" boolean DEFAULT 'f') 
4075
+ SQL (0.5ms)  SELECT name
4076
+ FROM sqlite_master
4077
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4078
+ 
4079
+ SQL (0.3ms) SELECT version FROM "schema_migrations"
4080
+ User Create (0.4ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:27', NULL, NULL, '2010-05-20 13:33:27', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4081
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4082
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4083
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4084
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4085
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4086
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4087
+ User Create (0.4ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:27', NULL, NULL, '2010-05-20 13:33:27', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4088
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4089
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4090
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4091
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4092
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4093
+ User Load (0.8ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4094
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4095
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4096
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4097
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4098
+ User Create (0.4ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:27', NULL, NULL, '2010-05-20 13:33:27', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4099
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4100
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4101
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4102
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4103
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4104
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4105
+ User Update (0.1ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:28', "sign_in_count" = 4 WHERE "id" = 1
4106
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4107
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4108
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4109
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4110
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4111
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4112
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4113
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4114
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4115
+ User Create (0.5ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:28', NULL, NULL, '2010-05-20 13:33:28', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4116
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4117
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4118
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4119
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4120
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4121
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4122
+ User Update (0.1ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:28', "sign_in_count" = 5 WHERE "id" = 1
4123
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4124
+ Dedicated Create (0.2ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:28', '2010-05-20 13:33:28', 1, 'f', 'Dedicated', 1)
4125
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4126
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4127
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4128
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4129
+ Achievement Load (0.8ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4130
+ Achievement Load (0.5ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4131
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4132
+ Achievement Load (1.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4133
+ User Update (0.1ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:28', "sign_in_count" = 6 WHERE "id" = 1
4134
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4135
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4136
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4137
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4138
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4139
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4140
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4141
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4142
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4143
+ User Create (0.4ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:28', NULL, NULL, '2010-05-20 13:33:28', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4144
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4145
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4146
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4147
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4148
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4149
+ User Load (0.4ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4150
+ User Update (0.1ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:28', "sign_in_count" = 500 WHERE "id" = 1
4151
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4152
+ Dedicated Create (0.2ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:28', '2010-05-20 13:33:28', 1, 'f', 'Dedicated', 1)
4153
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4154
+ Dedicated Create (0.1ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:28', '2010-05-20 13:33:28', 2, 'f', 'Dedicated', 1)
4155
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4156
+ Dedicated Create (0.2ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:28', '2010-05-20 13:33:28', 3, 'f', 'Dedicated', 1)
4157
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4158
+ Dedicated Create (0.1ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:28', '2010-05-20 13:33:28', 4, 'f', 'Dedicated', 1)
4159
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4160
+ Dedicated Create (0.1ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:28', '2010-05-20 13:33:28', 5, 'f', 'Dedicated', 1)
4161
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4162
+ SQL (0.3ms) select sqlite_version(*)
4163
+ SQL (0.6ms)  SELECT name
4164
+ FROM sqlite_master
4165
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4166
+ 
4167
+ SQL (3.1ms) DROP TABLE "achievements"
4168
+ SQL (2.0ms) CREATE TABLE "achievements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "level" integer, "user_id" integer, "created_at" datetime, "updated_at" datetime, "notified" boolean DEFAULT 'f') 
4169
+ SQL (0.4ms)  SELECT name
4170
+ FROM sqlite_master
4171
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4172
+ 
4173
+ SQL (11.6ms) DROP TABLE "users"
4174
+ SQL (32.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) NOT NULL, "encrypted_password" varchar(40) NOT NULL, "password_salt" varchar(255) NOT NULL, "confirmation_token" varchar(20), "confirmed_at" datetime, "confirmation_sent_at" datetime, "reset_password_token" varchar(20), "remember_token" varchar(20), "remember_created_at" datetime, "sign_in_count" integer, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(20), "locked_at" datetime, "created_at" datetime, "updated_at" datetime, "password_set" boolean DEFAULT 'f') 
4175
+ SQL (0.4ms)  SELECT name
4176
+ FROM sqlite_master
4177
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4178
+ 
4179
+ SQL (0.2ms) SELECT version FROM "schema_migrations"
4180
+ User Create (0.5ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:52', NULL, NULL, '2010-05-20 13:33:52', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4181
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4182
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4183
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4184
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4185
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4186
+ User Load (2.1ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4187
+ User Create (0.5ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:52', NULL, NULL, '2010-05-20 13:33:52', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4188
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4189
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4190
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4191
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4192
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4193
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4194
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4195
+ Achievement Load (0.3ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4196
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4197
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4198
+ User Create (0.4ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:52', NULL, NULL, '2010-05-20 13:33:52', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4199
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4200
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4201
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4202
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4203
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4204
+ User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4205
+ User Update (0.1ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:52', "sign_in_count" = 4 WHERE "id" = 1
4206
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4207
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4208
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4209
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4210
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4211
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4212
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4213
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4214
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4215
+ User Create (0.4ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:52', NULL, NULL, '2010-05-20 13:33:52', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4216
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4217
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4218
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4219
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4220
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4221
+ User Load (0.6ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4222
+ User Update (0.2ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:52', "sign_in_count" = 5 WHERE "id" = 1
4223
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4224
+ Dedicated Create (0.2ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:52', '2010-05-20 13:33:52', 1, 'f', 'Dedicated', 1)
4225
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4226
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4227
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4228
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4229
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4230
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4231
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4232
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4233
+ User Update (0.2ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:52', "sign_in_count" = 6 WHERE "id" = 1
4234
+ Achievement Load (0.5ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4235
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4236
+ Achievement Load (0.6ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4237
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4238
+ Achievement Load (0.8ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4239
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4240
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4241
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4242
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
4243
+ User Create (0.4ms) INSERT INTO "users" ("encrypted_password", "failed_attempts", "created_at", "confirmation_sent_at", "last_sign_in_ip", "updated_at", "last_sign_in_at", "sign_in_count", "password_salt", "reset_password_token", "remember_token", "current_sign_in_ip", "confirmation_token", "remember_created_at", "current_sign_in_at", "locked_at", "email", "confirmed_at", "unlock_token", "password_set") VALUES('blah', 0, '2010-05-20 13:33:52', NULL, NULL, '2010-05-20 13:33:52', NULL, 2, 'are you joking?', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'joe@king.com', NULL, NULL, 'f')
4244
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4245
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4246
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4247
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4248
+ Achievement Load (1.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4249
+ User Load (0.7ms) SELECT * FROM "users" WHERE ("users"."id" = 1) 
4250
+ User Update (0.2ms) UPDATE "users" SET "updated_at" = '2010-05-20 13:33:52', "sign_in_count" = 500 WHERE "id" = 1
4251
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 1 AND "achievements"."user_id" = 1)) LIMIT 1
4252
+ Dedicated Create (0.3ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:52', '2010-05-20 13:33:52', 1, 'f', 'Dedicated', 1)
4253
+ Achievement Load (0.2ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 2 AND "achievements"."user_id" = 1)) LIMIT 1
4254
+ Dedicated Create (0.2ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:52', '2010-05-20 13:33:52', 2, 'f', 'Dedicated', 1)
4255
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 3 AND "achievements"."user_id" = 1)) LIMIT 1
4256
+ Dedicated Create (0.1ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:52', '2010-05-20 13:33:52', 3, 'f', 'Dedicated', 1)
4257
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 4 AND "achievements"."user_id" = 1)) LIMIT 1
4258
+ Dedicated Create (0.1ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:52', '2010-05-20 13:33:52', 4, 'f', 'Dedicated', 1)
4259
+ Achievement Load (0.1ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1 AND ("achievements"."type" = 'Dedicated' AND "achievements"."level" = 5 AND "achievements"."user_id" = 1)) LIMIT 1
4260
+ Dedicated Create (0.1ms) INSERT INTO "achievements" ("created_at", "updated_at", "level", "notified", "type", "user_id") VALUES('2010-05-20 13:33:52', '2010-05-20 13:33:52', 5, 'f', 'Dedicated', 1)
4261
+ Achievement Load (0.4ms) SELECT * FROM "achievements" WHERE ("achievements".user_id = 1) AND (("achievements"."type" = 'Dedicated') AND ("achievements".user_id = 1)) ORDER BY level desc LIMIT 1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Campbell