gamification 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gamification/concerns/rewardable.rb +1 -1
- data/lib/gamification/version.rb +1 -1
- data/spec/dummy/log/test.log +1433 -0
- data/spec/lib/gamification/concerns/rewardable_spec.rb +13 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d12ac96526bf82d4e068a056d92b965a0e460e09
|
4
|
+
data.tar.gz: b3e824c42128c6ce8ae7fd061868f2e15e00fad3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a412f4d2b35a51e6b101535af6d50e4927afb4d71b6dda62ccf31fb9d4342e6077e446132c6953b5708e30a07a52ce2244ec63afde3bf20c556a61aeb4734569
|
7
|
+
data.tar.gz: e3a457bc6e231f41bb08a5e95d9e312ae433fd25725c8642a7da1461e8a4cf3d9bc2468baae977381e1d5d90a386d2a49305328804602dfe77790a5d25e62cf2
|
@@ -6,7 +6,7 @@ module Gamification::Concerns::Rewardable
|
|
6
6
|
has_many :goals, through: :rewards, class_name: '::Gamification::Goal'
|
7
7
|
|
8
8
|
def medals
|
9
|
-
rewards.includes(goal: :medal).collect(&:medal).compact!
|
9
|
+
rewards.includes(goal: :medal).collect(&:medal).compact! || []
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/gamification/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -1878,3 +1878,1436 @@ Redirected to http://example.org
|
|
1878
1878
|
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1879
1879
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "gamification_rewards"
|
1880
1880
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1881
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1882
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1883
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.444336"], ["updated_at", "2015-09-11 12:05:41.444336"]]
|
1884
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1885
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1886
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.450966"], ["updated_at", "2015-09-11 12:05:41.450966"]]
|
1887
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1888
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1889
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1890
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1891
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1892
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1894
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1895
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.474590"], ["updated_at", "2015-09-11 12:05:41.474590"]]
|
1896
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1897
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1898
|
+
[1m[35mGamification::Reward Exists (0.4ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1
|
1899
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.495222"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.495222"]]
|
1900
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1901
|
+
[1m[36mGamification::Reward Load (0.2ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
1902
|
+
[1m[35mGamification::Reward Load (0.1ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]
|
1903
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1904
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "gamification_rewards" SET "updated_at" = '2015-09-11 12:05:41.514910', "seen_at" = '2015-09-11 12:05:41.514910' WHERE "gamification_rewards"."id" = 1
|
1905
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1906
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1907
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1908
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1909
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.522015"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.522015"]]
|
1910
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1912
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
1913
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.524631"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.524631"]]
|
1914
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1915
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1916
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.531127"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.531127"]]
|
1917
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1918
|
+
[1m[35mGamification::Medal Load (0.2ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
1919
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (5.1ms)
|
1920
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (12.0ms)
|
1921
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1922
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1923
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1924
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.556286"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.556286"]]
|
1925
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1926
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1927
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
1928
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.558085"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.558085"]]
|
1929
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1930
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1931
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.559417"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.559417"]]
|
1932
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1933
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 1]]
|
1934
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.3ms)
|
1935
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (5.2ms)
|
1936
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1937
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1938
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1939
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.570965"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.570965"]]
|
1940
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1941
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1942
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
1943
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.572664"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.572664"]]
|
1944
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1945
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1946
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.574083"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.574083"]]
|
1947
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1948
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
1949
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.1ms)
|
1950
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.8ms)
|
1951
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1952
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1953
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1954
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.585171"], ["updated_at", "2015-09-11 12:05:41.585171"]]
|
1955
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1956
|
+
Processing by ArticlesController#show as HTML
|
1957
|
+
Parameters: {"id"=>"1"}
|
1958
|
+
[1m[35mArticle Load (0.1ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
1959
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
|
1960
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1961
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1962
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1963
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.596457"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.596457"]]
|
1964
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1965
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1966
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.598054"], ["updated_at", "2015-09-11 12:05:41.598054"]]
|
1967
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1968
|
+
Processing by Gamification::RewardsController#create as HTML
|
1969
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
|
1970
|
+
[1m[36mGamification::Goal Load (0.1ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
1971
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
1972
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1973
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1974
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
1975
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
1976
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1977
|
+
[1m[35mGamification::Reward Load (0.1ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
1978
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1979
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
1980
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.607029"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.607029"]]
|
1981
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1982
|
+
Redirected to http://example.org
|
1983
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
|
1984
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "gamification_rewards"[0m
|
1985
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1986
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1987
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1988
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.611007"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.611007"]]
|
1989
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1990
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1991
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.612323"], ["updated_at", "2015-09-11 12:05:41.612323"]]
|
1992
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1993
|
+
Processing by Gamification::RewardsController#create as HTML
|
1994
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
|
1995
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
1996
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
1997
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1998
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1999
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
2000
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2001
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2002
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2003
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2004
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2005
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.620142"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.620142"]]
|
2006
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2007
|
+
Redirected to http://example.org
|
2008
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
2009
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2010
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2011
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2012
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.623644"], ["updated_at", "2015-09-11 12:05:41.623644"]]
|
2013
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2014
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2015
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.624904"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.624904"]]
|
2016
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2017
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2018
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.626044"], ["updated_at", "2015-09-11 12:05:41.626044"]]
|
2019
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2020
|
+
Processing by Gamification::RewardsController#create as HTML
|
2021
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
|
2022
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2023
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2024
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2025
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2026
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2027
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2028
|
+
[1m[36mGamification::Goal Load (0.1ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ?[0m [["rewarding_id", 1], ["rewarding_type", "Article"]]
|
2029
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2030
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2031
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2032
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2033
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.633929"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.633929"]]
|
2034
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2035
|
+
Redirected to http://example.org
|
2036
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
2037
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "gamification_rewards"
|
2038
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2039
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2040
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2041
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.638393"], ["updated_at", "2015-09-11 12:05:41.638393"]]
|
2042
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2043
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2044
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.640107"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.640107"]]
|
2045
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2046
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2047
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.641576"], ["updated_at", "2015-09-11 12:05:41.641576"]]
|
2048
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2049
|
+
Processing by Gamification::RewardsController#create as HTML
|
2050
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
|
2051
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2052
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2053
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2054
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2055
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2056
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2057
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
|
2058
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2059
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2060
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2061
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2062
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.650243"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.650243"]]
|
2063
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2064
|
+
Redirected to http://example.org
|
2065
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
2066
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2067
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2068
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2069
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.654671"], ["updated_at", "2015-09-11 12:05:41.654671"]]
|
2070
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2071
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2072
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.656237"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.656237"]]
|
2073
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2074
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2075
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.657733"], ["updated_at", "2015-09-11 12:05:41.657733"]]
|
2076
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2077
|
+
Processing by Gamification::RewardsController#create as HTML
|
2078
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
|
2079
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2080
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2081
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2082
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2083
|
+
Filter chain halted as :verify_checksum rendered or redirected
|
2084
|
+
Completed 403 Forbidden in 4ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
2085
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "gamification_rewards"
|
2086
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2087
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2088
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2089
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.666054"], ["updated_at", "2015-09-11 12:05:41.666054"]]
|
2090
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2091
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2092
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.667325"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.667325"]]
|
2093
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2094
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2095
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.668356"], ["updated_at", "2015-09-11 12:05:41.668356"]]
|
2096
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2097
|
+
Processing by Gamification::RewardsController#create as HTML
|
2098
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
|
2099
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2100
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2101
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2102
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2103
|
+
Filter chain halted as :verify_checksum rendered or redirected
|
2104
|
+
Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
2105
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2106
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2107
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2108
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.674883"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.674883"]]
|
2109
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2111
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.676454"], ["updated_at", "2015-09-11 12:05:41.676454"]]
|
2112
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2113
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2114
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2115
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2116
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.679058"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.679058"]]
|
2117
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2118
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2119
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2120
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2121
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.683292"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.683292"]]
|
2122
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2123
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2124
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.684642"], ["updated_at", "2015-09-11 12:05:41.684642"]]
|
2125
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2126
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2127
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2128
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.686643"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.686643"]]
|
2129
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2130
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2131
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2132
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2133
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2134
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.691694"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.691694"]]
|
2135
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2136
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2137
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.692724"], ["updated_at", "2015-09-11 12:05:41.692724"]]
|
2138
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2139
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2140
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2141
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.694573"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.694573"]]
|
2142
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2143
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2144
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2146
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2147
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.698064"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.698064"]]
|
2148
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2149
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2150
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.699125"], ["updated_at", "2015-09-11 12:05:41.699125"]]
|
2151
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2152
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2153
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2154
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2155
|
+
[1m[35m (9.1ms)[0m SAVEPOINT active_record_1
|
2156
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.711505"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.711505"]]
|
2157
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2158
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2159
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.713245"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.713245"]]
|
2160
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2161
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2162
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.714972"], ["updated_at", "2015-09-11 12:05:41.714972"]]
|
2163
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2164
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2165
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2166
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2167
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.717407"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.717407"]]
|
2168
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2169
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals"
|
2170
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2171
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]
|
2172
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2173
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2174
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2175
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.723026"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.723026"]]
|
2176
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2177
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2178
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.724735"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.724735"]]
|
2179
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2180
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2181
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.726296"], ["updated_at", "2015-09-11 12:05:41.726296"]]
|
2182
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2183
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals"
|
2184
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2185
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]
|
2186
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2187
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2188
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2189
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1
|
2190
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.732947"], ["updated_at", "2015-09-11 12:05:41.732947"]]
|
2191
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2192
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL[0m
|
2193
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2194
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2195
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2196
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2197
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2200
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
2201
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["seen_at", "2015-09-09 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2202
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2203
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
|
2204
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2205
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2206
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2207
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1
|
2208
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2209
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2210
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2211
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2212
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2213
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1
|
2214
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["seen_at", "2015-09-09 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2215
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2216
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2217
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2218
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2219
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2220
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2221
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2222
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2223
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2225
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2226
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2227
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2228
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2229
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2231
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2232
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
2233
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2235
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards"
|
2236
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2237
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
2238
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 2]]
|
2239
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
|
2240
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2243
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2245
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2246
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2247
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2248
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2249
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2250
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2251
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2252
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2253
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2254
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2255
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2256
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
2257
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2258
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2259
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards"
|
2260
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2261
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
2262
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 2]]
|
2263
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
|
2264
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2265
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2266
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2267
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2268
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2269
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2270
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2272
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2273
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2274
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1[0m [["goal_id", 1]]
|
2275
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2276
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2277
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2278
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2279
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2280
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2281
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2282
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2284
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
2285
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2287
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2288
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)[0m
|
2289
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
|
2290
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2291
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2292
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2293
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2294
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2295
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2296
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2297
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2298
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2299
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2300
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1[0m [["goal_id", 1]]
|
2301
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2302
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2303
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2304
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2305
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2306
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2307
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2308
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2310
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
2311
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]
|
2312
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2313
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2314
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)[0m
|
2315
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
|
2316
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2317
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2318
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2319
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2320
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2323
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.191520"], ["updated_at", "2015-09-11 12:06:19.191520"]]
|
2324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2325
|
+
Processing by ArticlesController#show as HTML
|
2326
|
+
Parameters: {"id"=>"1"}
|
2327
|
+
[1m[36mArticle Load (0.1ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2328
|
+
Rendered articles/show.html.erb within layouts/application (0.2ms)
|
2329
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)
|
2330
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
2331
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2332
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2333
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.208079"], ["updated_at", "2015-09-11 12:06:19.208079"]]
|
2334
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2336
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.210236"], ["updated_at", "2015-09-11 12:06:19.210236"]]
|
2337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2338
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2339
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2340
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2341
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.215359"], ["updated_at", "2015-09-11 12:06:19.215359"]]
|
2342
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2343
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2344
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.224371"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.224371"]]
|
2345
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2346
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2347
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.230875"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.230875"]]
|
2348
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.231579"]]
|
2349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2350
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2351
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2352
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.242435"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.242435"]]
|
2353
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2354
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2355
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.243603"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.243603"]]
|
2356
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2358
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
2359
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.244855"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.244855"]]
|
2360
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2361
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2362
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
|
2363
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)[0m
|
2364
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2365
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2366
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2367
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.254871"], ["updated_at", "2015-09-11 12:06:19.254871"]]
|
2368
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2369
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2370
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.257172"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.257172"]]
|
2371
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2373
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.258932"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.258932"]]
|
2374
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.259642"]]
|
2375
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2376
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2377
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2378
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.261546"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.261546"]]
|
2379
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2380
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2381
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.262696"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.262696"]]
|
2382
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2383
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2384
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
2385
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.264456"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.264456"]]
|
2386
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2387
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2388
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
|
2389
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)[0m
|
2390
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2391
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2393
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.270182"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.270182"]]
|
2394
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2395
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2396
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.271668"], ["updated_at", "2015-09-11 12:06:19.271668"]]
|
2397
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2398
|
+
Processing by Gamification::RewardsController#create as HTML
|
2399
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
|
2400
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
2401
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2402
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2403
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2404
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
2405
|
+
[1m[36mGamification::Goal Load (0.1ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2406
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2407
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2408
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2409
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2410
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.285267"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.285267"]]
|
2411
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2412
|
+
Redirected to http://example.org
|
2413
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.8ms)
|
2414
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "gamification_rewards"
|
2415
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2416
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2417
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2418
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.289791"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.289791"]]
|
2419
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2420
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2421
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.291103"], ["updated_at", "2015-09-11 12:06:19.291103"]]
|
2422
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2423
|
+
Processing by Gamification::RewardsController#create as HTML
|
2424
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
|
2425
|
+
[1m[36mGamification::Goal Load (0.1ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2426
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
2427
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2428
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2429
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2430
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
2431
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2432
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2434
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2435
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.297212"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.297212"]]
|
2436
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2437
|
+
Redirected to http://example.org
|
2438
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
2439
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2440
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2441
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2442
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.300707"], ["updated_at", "2015-09-11 12:06:19.300707"]]
|
2443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2444
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2445
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.301940"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.301940"]]
|
2446
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2447
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2448
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.303142"], ["updated_at", "2015-09-11 12:06:19.303142"]]
|
2449
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2450
|
+
Processing by Gamification::RewardsController#create as HTML
|
2451
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
|
2452
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2453
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2454
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2455
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2456
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2457
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2458
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
|
2459
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2460
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2461
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2462
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2463
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.309828"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.309828"]]
|
2464
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2465
|
+
Redirected to http://example.org
|
2466
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
2467
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "gamification_rewards"[0m
|
2468
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2469
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2470
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2471
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.313445"], ["updated_at", "2015-09-11 12:06:19.313445"]]
|
2472
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2473
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2474
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.314725"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.314725"]]
|
2475
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2476
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2477
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.315821"], ["updated_at", "2015-09-11 12:06:19.315821"]]
|
2478
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2479
|
+
Processing by Gamification::RewardsController#create as HTML
|
2480
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
|
2481
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2482
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2483
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2484
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2485
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2486
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2487
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ?[0m [["rewarding_id", 1], ["rewarding_type", "Article"]]
|
2488
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2489
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2490
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2491
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2492
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.322002"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.322002"]]
|
2493
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2494
|
+
Redirected to http://example.org
|
2495
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
2496
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2497
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2498
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2499
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.325607"], ["updated_at", "2015-09-11 12:06:19.325607"]]
|
2500
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2501
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2502
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.327096"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.327096"]]
|
2503
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2504
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2505
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.328324"], ["updated_at", "2015-09-11 12:06:19.328324"]]
|
2506
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2507
|
+
Processing by Gamification::RewardsController#create as HTML
|
2508
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
|
2509
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2510
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2511
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2512
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2513
|
+
Filter chain halted as :verify_checksum rendered or redirected
|
2514
|
+
Completed 403 Forbidden in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)
|
2515
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "gamification_rewards"[0m
|
2516
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2517
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2518
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2519
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.335298"], ["updated_at", "2015-09-11 12:06:19.335298"]]
|
2520
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2521
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2522
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.336521"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.336521"]]
|
2523
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2524
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2525
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.337796"], ["updated_at", "2015-09-11 12:06:19.337796"]]
|
2526
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2527
|
+
Processing by Gamification::RewardsController#create as HTML
|
2528
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
|
2529
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2530
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2531
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2532
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2533
|
+
Filter chain halted as :verify_checksum rendered or redirected
|
2534
|
+
Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
2535
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2536
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2537
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2538
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1
|
2539
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.344892"], ["updated_at", "2015-09-11 12:06:19.344892"]]
|
2540
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2541
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL[0m
|
2542
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2543
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2544
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2545
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2546
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2547
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
2548
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2549
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2550
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2552
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2553
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
2554
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["seen_at", "2015-09-09 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2555
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2556
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2557
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2558
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2559
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
2560
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["seen_at", "2015-09-09 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2561
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2562
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
|
2563
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2564
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2565
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2566
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2567
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2568
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2569
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2571
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2572
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2574
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2575
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2576
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2577
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2578
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2579
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2580
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2581
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
2582
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2583
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2584
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards"
|
2585
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2586
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
2587
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 2]]
|
2588
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
|
2589
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2590
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2591
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2592
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2593
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2594
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2595
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2596
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2597
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2598
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2599
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2600
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2601
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2602
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2603
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2604
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2605
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
2606
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2608
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards"
|
2609
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
2610
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
2611
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 2]]
|
2612
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
|
2613
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2614
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2615
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2616
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 100], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2617
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2619
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2620
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2621
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2622
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2623
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2624
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2625
|
+
[1m[36mGamification::Medal Load (0.0ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 1]]
|
2626
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
|
2627
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
|
2628
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2629
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2630
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2631
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["points", 100], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2632
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2633
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2634
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2635
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2636
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2638
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2640
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
2641
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
|
2642
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
|
2643
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2644
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2645
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2646
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 100], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2647
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2648
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2649
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2650
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2651
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2652
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2653
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2654
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2655
|
+
[1m[36mGamification::Medal Load (0.0ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 1]]
|
2656
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
|
2657
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
|
2658
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2659
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2660
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2661
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2662
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2664
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1
|
2665
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2666
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2667
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2668
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2669
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2670
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "gamification_rewards" SET "updated_at" = '2015-09-11 12:06:19.346862', "seen_at" = '2015-09-11 12:06:19.346862' WHERE "gamification_rewards"."id" = 1
|
2671
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2672
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2674
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2675
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2676
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2677
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2678
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2679
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2680
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2681
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2682
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2683
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals"[0m
|
2684
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2685
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 2]]
|
2686
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2687
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2688
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2689
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2690
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2691
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2692
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2693
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2694
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2695
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2696
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2697
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2699
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2700
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2701
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2702
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals"
|
2703
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2704
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]
|
2705
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2706
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2708
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2709
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2711
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2713
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2714
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2715
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2716
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2717
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2718
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2719
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2721
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2723
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2724
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2725
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2726
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2727
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2728
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2730
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2731
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2732
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2733
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2734
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2735
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2736
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2737
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2738
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2739
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2740
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2741
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2742
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2743
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2744
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2747
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2748
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2749
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2750
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]
|
2751
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2752
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2753
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2754
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2755
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2756
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:40.041208"], ["updated_at", "2015-09-11 12:06:40.041208"]]
|
2757
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2758
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2759
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.068048"], ["description", "Iusto cum nulla reprehenderit aut ratione."], ["image", nil], ["name", "qui"], ["updated_at", "2015-09-11 12:06:40.068048"]]
|
2760
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2761
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2762
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:40.075771"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.075771"]]
|
2763
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:40.076567"]]
|
2764
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2765
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2766
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2767
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.088399"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.088399"]]
|
2768
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2769
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2770
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:40.089613"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.089613"]]
|
2771
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2772
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2773
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
2774
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:40.091123"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.091123"]]
|
2775
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2776
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2777
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
|
2778
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)[0m
|
2779
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
2780
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2781
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2782
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:40.104374"], ["updated_at", "2015-09-11 12:06:40.104374"]]
|
2783
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2785
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.106030"], ["description", "Iusto cum nulla reprehenderit aut ratione."], ["image", nil], ["name", "qui"], ["updated_at", "2015-09-11 12:06:40.106030"]]
|
2786
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2787
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2788
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:40.107742"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.107742"]]
|
2789
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:40.108445"]]
|
2790
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2791
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2792
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2793
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.110400"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.110400"]]
|
2794
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2795
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2796
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:40.111453"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.111453"]]
|
2797
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2798
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2799
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
2800
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:40.113091"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.113091"]]
|
2801
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2802
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2803
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
|
2804
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)[0m
|
2805
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "gamification_medals" WHERE "gamification_medals"."id" = 1
|
2806
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
2807
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
|
2808
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)[0m
|
2809
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2810
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2811
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2812
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
2813
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.570488"], ["updated_at", "2015-09-11 12:06:44.570488"]]
|
2814
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2815
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
2816
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2817
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2818
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
2819
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.576123"], ["seen_at", "2015-09-09 12:06:44.574745"], ["updated_at", "2015-09-11 12:06:44.576123"]]
|
2820
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2821
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2822
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2823
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2824
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.582287"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.582287"]]
|
2825
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2826
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2827
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.584091"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.584091"]]
|
2828
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2829
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2830
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.590972"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.590972"]]
|
2831
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2832
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2833
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2834
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.592631"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.592631"]]
|
2835
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2836
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2837
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
2838
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.593803"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:44.593803"]]
|
2839
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2840
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards"[0m
|
2841
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
2842
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 1]]
|
2843
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
|
2844
|
+
[1m[36mGamification::Medal Load (0.0ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 2]]
|
2845
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2846
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2847
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2848
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.602210"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.602210"]]
|
2849
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2850
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2851
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.603275"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.603275"]]
|
2852
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2853
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2854
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.604582"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.604582"]]
|
2855
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2856
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2857
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2858
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.605920"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.605920"]]
|
2859
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2860
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2861
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
2862
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.607106"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:44.607106"]]
|
2863
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2864
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards"[0m
|
2865
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
2866
|
+
[1m[36mGamification::Medal Load (0.0ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 1]]
|
2867
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
|
2868
|
+
[1m[36mGamification::Medal Load (0.0ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 2]]
|
2869
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2870
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2871
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2872
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
2873
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.613806"], ["seen_at", "2015-09-09 12:06:44.612713"], ["updated_at", "2015-09-11 12:06:44.613806"]]
|
2874
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2875
|
+
[1m[35mGamification::Reward Load (0.1ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
|
2876
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2877
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2878
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2879
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2880
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2881
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2882
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2883
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1
|
2884
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2885
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2886
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL[0m
|
2887
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2888
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2889
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2890
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2891
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2892
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2893
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2894
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2895
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2896
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2897
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2898
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2899
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2900
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2901
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2902
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2903
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2904
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2905
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2906
|
+
Processing by Gamification::RewardsController#create as HTML
|
2907
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
|
2908
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2909
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2910
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2911
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2912
|
+
Filter chain halted as :verify_checksum rendered or redirected
|
2913
|
+
Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
2914
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "gamification_rewards"[0m
|
2915
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2916
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2917
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2918
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2919
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2920
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2921
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2922
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2923
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2924
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2925
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2926
|
+
Processing by Gamification::RewardsController#create as HTML
|
2927
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
|
2928
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2929
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2930
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2931
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2932
|
+
Filter chain halted as :verify_checksum rendered or redirected
|
2933
|
+
Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
2934
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2935
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2936
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2937
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2938
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2939
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2940
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2941
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2942
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2943
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2944
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2945
|
+
Processing by Gamification::RewardsController#create as HTML
|
2946
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
|
2947
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2948
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2949
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2950
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2951
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2952
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2953
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
|
2954
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2955
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
2956
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2957
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
2958
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2959
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2960
|
+
Redirected to http://example.org
|
2961
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2962
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "gamification_rewards"[0m
|
2963
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2964
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2965
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2966
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2967
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2968
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2969
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2970
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2971
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2972
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2973
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2974
|
+
Processing by Gamification::RewardsController#create as HTML
|
2975
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
|
2976
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2977
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2978
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2979
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2980
|
+
[1m[36mArticle Load (0.0ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1[0m [["id", 1]]
|
2981
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
2982
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ?[0m [["rewarding_id", 1], ["rewarding_type", "Article"]]
|
2983
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2984
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
2985
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2986
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
2987
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2988
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2989
|
+
Redirected to http://example.org
|
2990
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
2991
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2992
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2993
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2994
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2995
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2997
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
2998
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2999
|
+
Processing by Gamification::RewardsController#create as HTML
|
3000
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
|
3001
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
3002
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
3003
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3004
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3005
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
3006
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
3007
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3008
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
3009
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3010
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
3011
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3012
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3013
|
+
Redirected to http://example.org
|
3014
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3015
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "gamification_rewards"
|
3016
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3017
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3018
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3019
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3020
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3021
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3022
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3023
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3024
|
+
Processing by Gamification::RewardsController#create as HTML
|
3025
|
+
Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
|
3026
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
3027
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
3028
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3029
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3030
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1[0m [["id", 1]]
|
3031
|
+
[1m[35mGamification::Goal Load (0.0ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
|
3032
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3033
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
3034
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3035
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3036
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3037
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3038
|
+
Redirected to http://example.org
|
3039
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3040
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3041
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3042
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3043
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3044
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3045
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3046
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3047
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3048
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3049
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3050
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1[0m [["goal_id", 1]]
|
3051
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3052
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3053
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3054
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3055
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3056
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3057
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3058
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3059
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3060
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
3061
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3062
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3063
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3064
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)[0m
|
3065
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
|
3066
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3067
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3068
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3069
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3070
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3071
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3072
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3073
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3074
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3075
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3076
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1[0m [["goal_id", 1]]
|
3077
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3078
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3079
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3080
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3081
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3082
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3083
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3084
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3085
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3086
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1[0m
|
3087
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3088
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3089
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3090
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)[0m
|
3091
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
|
3092
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "gamification_medals" WHERE "gamification_medals"."id" = 1[0m
|
3093
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3094
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)[0m
|
3095
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
|
3096
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3097
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3098
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3099
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3100
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3101
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3102
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3103
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3104
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3105
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3106
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3107
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3109
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3111
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
3112
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3113
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3114
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3115
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3116
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals"[0m
|
3117
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
3118
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 2]]
|
3119
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3120
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3121
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3122
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3123
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3124
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3125
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3126
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3127
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3128
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3129
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3130
|
+
[1m[36mGamification::Goal Load (0.0ms)[0m [1mSELECT "gamification_goals".* FROM "gamification_goals"[0m
|
3131
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
3132
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 2]]
|
3133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3135
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3136
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3137
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3138
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3139
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3140
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3141
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
3142
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3143
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3144
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3145
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3146
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3147
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3148
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3149
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3150
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3151
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3152
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3153
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3154
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3155
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3156
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3157
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3158
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
3159
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3160
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3161
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3162
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3163
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3164
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3165
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3166
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3167
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3168
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
3169
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3170
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3171
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]
|
3172
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3173
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3174
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3175
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3176
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3177
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3178
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3179
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3180
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1[0m [["goal_id", 1]]
|
3181
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3182
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3183
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3184
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 100], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3185
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3186
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3187
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3188
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3189
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3190
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3191
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3192
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3193
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
3194
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
|
3195
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
|
3196
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3197
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3199
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 100], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3201
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3202
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
3203
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3204
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3205
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3206
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3207
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3208
|
+
[1m[36mGamification::Medal Load (0.0ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1[0m [["goal_id", 1]]
|
3209
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
|
3210
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
|
3211
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3212
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3213
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3214
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["points", 100], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3215
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3216
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3217
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1
|
3218
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3219
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3220
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3221
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3222
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3223
|
+
[1m[35mGamification::Medal Load (0.0ms)[0m SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
|
3224
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
|
3225
|
+
Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
|
3226
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3227
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3228
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3229
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3231
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3232
|
+
[1m[36mGamification::Reward Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1[0m
|
3233
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3235
|
+
[1m[35mGamification::Reward Load (0.0ms)[0m SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3236
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3238
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "gamification_rewards" SET "updated_at" = '2015-09-11 12:06:44.616352', "seen_at" = '2015-09-11 12:06:44.616352' WHERE "gamification_rewards"."id" = 1[0m
|
3239
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3240
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3243
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
|
3244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3245
|
+
Processing by ArticlesController#show as HTML
|
3246
|
+
Parameters: {"id"=>"1"}
|
3247
|
+
[1m[35mArticle Load (0.0ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
|
3248
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
3249
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3250
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3251
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3252
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:07:40.128321"], ["updated_at", "2015-09-11 12:07:40.128321"]]
|
3253
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3255
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:07:40.152429"], ["description", "Libero sequi aut quisquam ullam."], ["image", nil], ["name", "cumque"], ["updated_at", "2015-09-11 12:07:40.152429"]]
|
3256
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3257
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3258
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:07:40.163928"], ["points", 1], ["updated_at", "2015-09-11 12:07:40.163928"]]
|
3259
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:07:40.165002"]]
|
3260
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3261
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3262
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
3263
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:07:40.181152"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:07:40.181152"]]
|
3264
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3265
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3266
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:07:40.182476"], ["points", 1], ["updated_at", "2015-09-11 12:07:40.182476"]]
|
3267
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3268
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3269
|
+
[1m[35mGamification::Reward Exists (0.0ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
3270
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:07:40.183838"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:07:40.183838"]]
|
3271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3272
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3273
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
|
3274
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)[0m
|
3275
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
3276
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3277
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3278
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:07:40.195664"], ["updated_at", "2015-09-11 12:07:40.195664"]]
|
3279
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3280
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3281
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3282
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3284
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:08:00.530587"], ["updated_at", "2015-09-11 12:08:00.530587"]]
|
3285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3286
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3287
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:08:00.557074"], ["description", "Eaque vel qui cum aut nihil quam nisi officia."], ["image", nil], ["name", "commodi"], ["updated_at", "2015-09-11 12:08:00.557074"]]
|
3288
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3289
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3290
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:08:00.564258"], ["points", 1], ["updated_at", "2015-09-11 12:08:00.564258"]]
|
3291
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:08:00.565024"]]
|
3292
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3293
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3294
|
+
[1m[36mGamification::Reward Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1[0m
|
3295
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:08:00.577611"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:08:00.577611"]]
|
3296
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3298
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2015-09-11 12:08:00.578977"], ["points", 1], ["updated_at", "2015-09-11 12:08:00.578977"]]
|
3299
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3300
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3301
|
+
[1m[35mGamification::Reward Exists (0.1ms)[0m SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1
|
3302
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2015-09-11 12:08:00.580772"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:08:00.580772"]]
|
3303
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3304
|
+
[1m[36mGamification::Reward Load (0.1ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3305
|
+
[1m[35mGamification::Goal Load (0.1ms)[0m SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
|
3306
|
+
[1m[36mGamification::Medal Load (0.1ms)[0m [1mSELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)[0m
|
3307
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
3308
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3310
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-09-11 12:08:00.592907"], ["updated_at", "2015-09-11 12:08:00.592907"]]
|
3311
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3312
|
+
[1m[36mGamification::Reward Load (0.0ms)[0m [1mSELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ?[0m [["rewardable_id", 1], ["rewardable_type", "User"]]
|
3313
|
+
[1m[35m (0.4ms)[0m rollback transaction
|