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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0905a1badc051333d9d0f76340923987d153d633
4
- data.tar.gz: 135b04519d1a46c48164ec6563abc8361d23621f
3
+ metadata.gz: d12ac96526bf82d4e068a056d92b965a0e460e09
4
+ data.tar.gz: b3e824c42128c6ce8ae7fd061868f2e15e00fad3
5
5
  SHA512:
6
- metadata.gz: 604a43af277864b828c3dd7a03cfdfed54e6f85a73f9ccea583ff9581554fd25fccf287b30f0587a9e9c36312a511d8f77924d9f87f19717f4d6af351ed9b182
7
- data.tar.gz: 50a605f5a64b1ea490fff275225ec065c53c081e9e92b0d29f43b8ffbae030b9062cf5b55bc263dbb96869d8b50a9c92046f9cdf3595fe82d3e642f92ca9a99e
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
@@ -1,3 +1,3 @@
1
1
  module Gamification
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -1878,3 +1878,1436 @@ Redirected to http://example.org
1878
1878
  Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
1879
1879
   (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
1880
1880
   (0.0ms) rollback transaction
1881
+  (0.3ms) begin transaction
1882
+  (0.0ms) SAVEPOINT active_record_1
1883
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.444336"], ["updated_at", "2015-09-11 12:05:41.444336"]]
1884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1885
+  (0.0ms) SAVEPOINT active_record_1
1886
+ SQL (1.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1888
+  (0.6ms) rollback transaction
1889
+  (0.0ms) begin transaction
1890
+  (0.1ms) rollback transaction
1891
+  (0.0ms) begin transaction
1892
+  (0.1ms) rollback transaction
1893
+  (0.0ms) begin transaction
1894
+  (0.0ms) SAVEPOINT active_record_1
1895
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.474590"], ["updated_at", "2015-09-11 12:05:41.474590"]]
1896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1897
+  (0.1ms) SAVEPOINT active_record_1
1898
+ Gamification::Reward Exists (0.4ms) 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
+ SQL (1.3ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1901
+ Gamification::Reward Load (0.2ms) 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"]]
1902
+ Gamification::Reward Load (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
1904
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1906
+  (0.6ms) rollback transaction
1907
+  (0.0ms) begin transaction
1908
+  (0.1ms) SAVEPOINT active_record_1
1909
+ SQL (0.8ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.522015"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.522015"]]
1910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1911
+  (0.0ms) SAVEPOINT active_record_1
1912
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.524631"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.524631"]]
1914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1915
+  (0.1ms) SAVEPOINT active_record_1
1916
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1918
+ Gamification::Medal Load (0.2ms) 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
+  (0.5ms) rollback transaction
1922
+  (0.1ms) begin transaction
1923
+  (0.0ms) SAVEPOINT active_record_1
1924
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1926
+  (0.0ms) SAVEPOINT active_record_1
1927
+ Gamification::Reward Exists (0.1ms) 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
1928
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1930
+  (0.0ms) SAVEPOINT active_record_1
1931
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1933
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["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
+  (0.6ms) rollback transaction
1937
+  (0.0ms) begin transaction
1938
+  (0.0ms) SAVEPOINT active_record_1
1939
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.570965"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.570965"]]
1940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1941
+  (0.0ms) SAVEPOINT active_record_1
1942
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.572664"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.572664"]]
1944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1945
+  (0.0ms) SAVEPOINT active_record_1
1946
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1948
+ Gamification::Medal Load (0.0ms) 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
+  (0.7ms) rollback transaction
1952
+  (0.0ms) begin transaction
1953
+  (0.0ms) SAVEPOINT active_record_1
1954
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1956
+ Processing by ArticlesController#show as HTML
1957
+ Parameters: {"id"=>"1"}
1958
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
1959
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
1960
+  (0.3ms) rollback transaction
1961
+  (0.0ms) begin transaction
1962
+  (0.0ms) SAVEPOINT active_record_1
1963
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1965
+  (0.0ms) SAVEPOINT active_record_1
1966
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.598054"], ["updated_at", "2015-09-11 12:05:41.598054"]]
1967
+  (0.0ms) 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
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
1971
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
1972
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1973
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1974
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
1975
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
1976
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1977
+ Gamification::Reward Load (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
1979
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1982
+ Redirected to http://example.org
1983
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
1984
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
1985
+  (0.7ms) rollback transaction
1986
+  (0.0ms) begin transaction
1987
+  (0.0ms) SAVEPOINT active_record_1
1988
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.611007"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.611007"]]
1989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1990
+  (0.0ms) SAVEPOINT active_record_1
1991
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
1996
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
1997
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1998
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1999
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2000
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2001
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2002
+ Gamification::Reward Load (0.0ms) 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]]
2003
+  (0.0ms) SAVEPOINT active_record_1
2004
+ Gamification::Reward Exists (0.1ms) 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
2005
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2007
+ Redirected to http://example.org
2008
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
2009
+  (0.6ms) rollback transaction
2010
+  (0.1ms) begin transaction
2011
+  (0.0ms) SAVEPOINT active_record_1
2012
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.623644"], ["updated_at", "2015-09-11 12:05:41.623644"]]
2013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2014
+  (0.1ms) SAVEPOINT active_record_1
2015
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2017
+  (0.0ms) SAVEPOINT active_record_1
2018
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.626044"], ["updated_at", "2015-09-11 12:05:41.626044"]]
2019
+  (0.0ms) 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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2023
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2024
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2025
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2026
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2027
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2028
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
2029
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2030
+ Gamification::Reward Load (0.1ms) 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]]
2031
+  (0.0ms) SAVEPOINT active_record_1
2032
+ Gamification::Reward Exists (0.1ms) 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
2033
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2035
+ Redirected to http://example.org
2036
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
2037
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
2038
+  (0.9ms) rollback transaction
2039
+  (0.1ms) begin transaction
2040
+  (0.1ms) SAVEPOINT active_record_1
2041
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2043
+  (0.0ms) SAVEPOINT active_record_1
2044
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2046
+  (0.0ms) SAVEPOINT active_record_1
2047
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2052
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2053
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2054
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2055
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2056
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2057
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
2058
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2059
+ Gamification::Reward Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
2061
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2064
+ Redirected to http://example.org
2065
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
2066
+  (0.7ms) rollback transaction
2067
+  (0.0ms) begin transaction
2068
+  (0.0ms) SAVEPOINT active_record_1
2069
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2071
+  (0.0ms) SAVEPOINT active_record_1
2072
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2074
+  (0.0ms) SAVEPOINT active_record_1
2075
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2080
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2081
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2082
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
2086
+  (0.6ms) rollback transaction
2087
+  (0.0ms) begin transaction
2088
+  (0.0ms) SAVEPOINT active_record_1
2089
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2091
+  (0.0ms) SAVEPOINT active_record_1
2092
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2094
+  (0.0ms) SAVEPOINT active_record_1
2095
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2100
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2101
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2102
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.5ms) rollback transaction
2106
+  (0.0ms) begin transaction
2107
+  (0.0ms) SAVEPOINT active_record_1
2108
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.674883"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.674883"]]
2109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2110
+  (0.0ms) SAVEPOINT active_record_1
2111
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2113
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2115
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2118
+  (0.7ms) rollback transaction
2119
+  (0.1ms) begin transaction
2120
+  (0.1ms) SAVEPOINT active_record_1
2121
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2123
+  (0.0ms) SAVEPOINT active_record_1
2124
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.684642"], ["updated_at", "2015-09-11 12:05:41.684642"]]
2125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2126
+  (0.0ms) SAVEPOINT active_record_1
2127
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2130
+ Gamification::Reward Load (0.1ms) 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]]
2131
+  (0.7ms) rollback transaction
2132
+  (0.0ms) begin transaction
2133
+  (0.0ms) SAVEPOINT active_record_1
2134
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.691694"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.691694"]]
2135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2136
+  (0.0ms) SAVEPOINT active_record_1
2137
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2139
+  (0.0ms) SAVEPOINT active_record_1
2140
+ Gamification::Reward Exists (0.1ms) 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
2141
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2143
+ Gamification::Reward Load (0.0ms) 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
+  (0.6ms) rollback transaction
2145
+  (0.0ms) begin transaction
2146
+  (0.0ms) SAVEPOINT active_record_1
2147
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2149
+  (0.0ms) SAVEPOINT active_record_1
2150
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.699125"], ["updated_at", "2015-09-11 12:05:41.699125"]]
2151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2152
+ Gamification::Reward Load (0.1ms) 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]]
2153
+  (0.5ms) rollback transaction
2154
+  (0.0ms) begin transaction
2155
+  (9.1ms) SAVEPOINT active_record_1
2156
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.711505"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.711505"]]
2157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2158
+  (0.1ms) SAVEPOINT active_record_1
2159
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2161
+  (0.0ms) SAVEPOINT active_record_1
2162
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.714972"], ["updated_at", "2015-09-11 12:05:41.714972"]]
2163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2164
+ Gamification::Reward Load (0.0ms) 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]]
2165
+  (0.0ms) SAVEPOINT active_record_1
2166
+ Gamification::Reward Exists (0.1ms) 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
2167
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2169
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals"
2170
+ Gamification::Reward Load (0.0ms) 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]]
2171
+ Gamification::Reward Load (0.0ms) 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
+  (0.7ms) rollback transaction
2173
+  (0.0ms) begin transaction
2174
+  (0.0ms) SAVEPOINT active_record_1
2175
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2177
+  (0.0ms) SAVEPOINT active_record_1
2178
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.724735"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.724735"]]
2179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2180
+  (0.0ms) SAVEPOINT active_record_1
2181
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2183
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals"
2184
+ Gamification::Reward Load (0.0ms) 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]]
2185
+ Gamification::Reward Load (0.0ms) 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
+  (0.8ms) rollback transaction
2187
+  (0.1ms) begin transaction
2188
+  (0.0ms) SAVEPOINT active_record_1
2189
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.732947"], ["updated_at", "2015-09-11 12:05:41.732947"]]
2191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2192
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
2193
+  (0.4ms) rollback transaction
2194
+  (0.0ms) begin transaction
2195
+  (0.0ms) rollback transaction
2196
+  (0.0ms) begin transaction
2197
+  (0.0ms) rollback transaction
2198
+  (0.0ms) begin transaction
2199
+  (0.0ms) SAVEPOINT active_record_1
2200
+ Gamification::Reward Exists (0.0ms) 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
2201
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2203
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
2204
+  (0.0ms) rollback transaction
2205
+  (0.0ms) begin transaction
2206
+  (0.0ms) SAVEPOINT active_record_1
2207
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]
2209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2210
+  (0.0ms) rollback transaction
2211
+  (0.0ms) begin transaction
2212
+  (0.0ms) SAVEPOINT active_record_1
2213
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
2215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2216
+  (0.0ms) rollback transaction
2217
+  (0.0ms) begin transaction
2218
+  (0.0ms) SAVEPOINT active_record_1
2219
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2221
+  (0.0ms) SAVEPOINT active_record_1
2222
+ SQL (0.0ms) 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"]]
2223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2224
+  (0.0ms) SAVEPOINT active_record_1
2225
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2227
+  (0.0ms) SAVEPOINT active_record_1
2228
+ Gamification::Reward Exists (0.0ms) 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
2229
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2231
+  (0.0ms) SAVEPOINT active_record_1
2232
+ Gamification::Reward Exists (0.0ms) 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
2233
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2235
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
2236
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2237
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
2238
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
2239
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
2240
+  (0.0ms) rollback transaction
2241
+  (0.0ms) begin transaction
2242
+  (0.0ms) SAVEPOINT active_record_1
2243
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2245
+  (0.0ms) SAVEPOINT active_record_1
2246
+ SQL (0.0ms) 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"]]
2247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2248
+  (0.0ms) SAVEPOINT active_record_1
2249
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2251
+  (0.0ms) SAVEPOINT active_record_1
2252
+ Gamification::Reward Exists (0.0ms) 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
2253
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2255
+  (0.0ms) SAVEPOINT active_record_1
2256
+ Gamification::Reward Exists (0.0ms) 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
2257
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2259
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
2260
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2261
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
2262
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
2263
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
2264
+  (0.0ms) rollback transaction
2265
+  (0.0ms) begin transaction
2266
+  (0.0ms) SAVEPOINT active_record_1
2267
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2269
+  (0.0ms) SAVEPOINT active_record_1
2270
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2272
+  (0.0ms) SAVEPOINT active_record_1
2273
+ SQL (0.0ms) 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
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
2275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2276
+  (0.0ms) SAVEPOINT active_record_1
2277
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]
2279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2280
+  (0.0ms) SAVEPOINT active_record_1
2281
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2283
+  (0.0ms) SAVEPOINT active_record_1
2284
+ Gamification::Reward Exists (0.0ms) 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
2285
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2287
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
2288
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
2289
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
2290
+  (0.0ms) rollback transaction
2291
+  (0.0ms) begin transaction
2292
+  (0.0ms) SAVEPOINT active_record_1
2293
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2295
+  (0.0ms) SAVEPOINT active_record_1
2296
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2298
+  (0.0ms) SAVEPOINT active_record_1
2299
+ SQL (0.0ms) 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
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
2301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2302
+  (0.0ms) SAVEPOINT active_record_1
2303
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]
2305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2306
+  (0.0ms) SAVEPOINT active_record_1
2307
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2309
+  (0.0ms) SAVEPOINT active_record_1
2310
+ Gamification::Reward Exists (0.0ms) 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
2311
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2313
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
2314
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
2315
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
2316
+  (0.0ms) rollback transaction
2317
+  (0.3ms) begin transaction
2318
+  (0.0ms) rollback transaction
2319
+  (0.0ms) begin transaction
2320
+  (0.0ms) rollback transaction
2321
+  (0.0ms) begin transaction
2322
+  (0.0ms) SAVEPOINT active_record_1
2323
+ SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.191520"], ["updated_at", "2015-09-11 12:06:19.191520"]]
2324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2325
+ Processing by ArticlesController#show as HTML
2326
+ Parameters: {"id"=>"1"}
2327
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["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
+  (1.1ms) rollback transaction
2331
+  (0.1ms) begin transaction
2332
+  (0.0ms) SAVEPOINT active_record_1
2333
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.208079"], ["updated_at", "2015-09-11 12:06:19.208079"]]
2334
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2335
+  (0.0ms) SAVEPOINT active_record_1
2336
+ SQL (0.7ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2338
+  (0.5ms) rollback transaction
2339
+  (0.0ms) begin transaction
2340
+  (0.0ms) SAVEPOINT active_record_1
2341
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.215359"], ["updated_at", "2015-09-11 12:06:19.215359"]]
2342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2343
+  (0.1ms) SAVEPOINT active_record_1
2344
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2346
+  (0.0ms) SAVEPOINT active_record_1
2347
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.230875"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.230875"]]
2348
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2350
+  (0.0ms) SAVEPOINT active_record_1
2351
+ Gamification::Reward Exists (0.1ms) 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
2352
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2354
+  (0.0ms) SAVEPOINT active_record_1
2355
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.243603"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.243603"]]
2356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2357
+  (0.0ms) SAVEPOINT active_record_1
2358
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2361
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
2362
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
2363
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
2364
+  (0.8ms) rollback transaction
2365
+  (0.0ms) begin transaction
2366
+  (0.1ms) SAVEPOINT active_record_1
2367
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.254871"], ["updated_at", "2015-09-11 12:06:19.254871"]]
2368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2369
+  (0.1ms) SAVEPOINT active_record_1
2370
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2372
+  (0.0ms) SAVEPOINT active_record_1
2373
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.258932"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.258932"]]
2374
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2376
+  (0.0ms) SAVEPOINT active_record_1
2377
+ Gamification::Reward Exists (0.1ms) 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
2378
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2380
+  (0.0ms) SAVEPOINT active_record_1
2381
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.262696"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.262696"]]
2382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2383
+  (0.0ms) SAVEPOINT active_record_1
2384
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2387
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
2388
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
2389
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
2390
+  (0.8ms) rollback transaction
2391
+  (0.1ms) begin transaction
2392
+  (0.0ms) SAVEPOINT active_record_1
2393
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.270182"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.270182"]]
2394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2395
+  (0.0ms) SAVEPOINT active_record_1
2396
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2401
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2402
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2403
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2404
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2405
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2406
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2407
+ Gamification::Reward Load (0.1ms) 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]]
2408
+  (0.0ms) SAVEPOINT active_record_1
2409
+ Gamification::Reward Exists (0.1ms) 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
2410
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2412
+ Redirected to http://example.org
2413
+ Completed 302 Found in 12ms (ActiveRecord: 0.8ms)
2414
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
2415
+  (0.6ms) rollback transaction
2416
+  (0.1ms) begin transaction
2417
+  (0.0ms) SAVEPOINT active_record_1
2418
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2420
+  (0.0ms) SAVEPOINT active_record_1
2421
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.291103"], ["updated_at", "2015-09-11 12:06:19.291103"]]
2422
+  (0.1ms) 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
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2426
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2427
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2428
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2429
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2430
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2431
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2432
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2434
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2437
+ Redirected to http://example.org
2438
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2439
+  (0.7ms) rollback transaction
2440
+  (0.0ms) begin transaction
2441
+  (0.0ms) SAVEPOINT active_record_1
2442
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2444
+  (0.0ms) SAVEPOINT active_record_1
2445
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2447
+  (0.0ms) SAVEPOINT active_record_1
2448
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2453
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2454
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2455
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2456
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2457
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2458
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
2459
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2460
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2462
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2465
+ Redirected to http://example.org
2466
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
2467
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
2468
+  (0.7ms) rollback transaction
2469
+  (0.0ms) begin transaction
2470
+  (0.0ms) SAVEPOINT active_record_1
2471
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.313445"], ["updated_at", "2015-09-11 12:06:19.313445"]]
2472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2473
+  (0.0ms) SAVEPOINT active_record_1
2474
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2476
+  (0.0ms) SAVEPOINT active_record_1
2477
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.315821"], ["updated_at", "2015-09-11 12:06:19.315821"]]
2478
+  (0.0ms) 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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2482
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2483
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2484
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2485
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2486
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2487
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
2488
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2489
+ Gamification::Reward Load (0.1ms) 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]]
2490
+  (0.0ms) SAVEPOINT active_record_1
2491
+ Gamification::Reward Exists (0.1ms) 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
2492
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2494
+ Redirected to http://example.org
2495
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
2496
+  (0.6ms) rollback transaction
2497
+  (0.0ms) begin transaction
2498
+  (0.1ms) SAVEPOINT active_record_1
2499
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.325607"], ["updated_at", "2015-09-11 12:06:19.325607"]]
2500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2501
+  (0.0ms) SAVEPOINT active_record_1
2502
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2504
+  (0.0ms) SAVEPOINT active_record_1
2505
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.328324"], ["updated_at", "2015-09-11 12:06:19.328324"]]
2506
+  (0.0ms) 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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2510
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2511
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2512
+ User Load (0.0ms) 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
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
2516
+  (0.5ms) rollback transaction
2517
+  (0.0ms) begin transaction
2518
+  (0.0ms) SAVEPOINT active_record_1
2519
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.335298"], ["updated_at", "2015-09-11 12:06:19.335298"]]
2520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2521
+  (0.0ms) SAVEPOINT active_record_1
2522
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2524
+  (0.0ms) SAVEPOINT active_record_1
2525
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.337796"], ["updated_at", "2015-09-11 12:06:19.337796"]]
2526
+  (0.0ms) 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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2530
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2531
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2532
+ User Load (0.0ms) 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
+  (0.6ms) rollback transaction
2536
+  (0.0ms) begin transaction
2537
+  (0.0ms) SAVEPOINT active_record_1
2538
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.344892"], ["updated_at", "2015-09-11 12:06:19.344892"]]
2540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2541
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
2542
+  (0.3ms) rollback transaction
2543
+  (0.0ms) begin transaction
2544
+  (0.0ms) rollback transaction
2545
+  (0.0ms) begin transaction
2546
+  (0.0ms) SAVEPOINT active_record_1
2547
+ Gamification::Reward Exists (0.0ms) 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
2548
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2550
+  (0.0ms) rollback transaction
2551
+  (0.0ms) begin transaction
2552
+  (0.0ms) SAVEPOINT active_record_1
2553
+ Gamification::Reward Exists (0.0ms) 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
2554
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2556
+  (0.0ms) rollback transaction
2557
+  (0.0ms) begin transaction
2558
+  (0.0ms) SAVEPOINT active_record_1
2559
+ Gamification::Reward Exists (0.0ms) 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
2560
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2562
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
2563
+  (0.0ms) rollback transaction
2564
+  (0.0ms) begin transaction
2565
+  (0.0ms) rollback transaction
2566
+  (0.0ms) begin transaction
2567
+  (0.0ms) SAVEPOINT active_record_1
2568
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2570
+  (0.0ms) SAVEPOINT active_record_1
2571
+ SQL (0.0ms) 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"]]
2572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2573
+  (0.0ms) SAVEPOINT active_record_1
2574
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2576
+  (0.0ms) SAVEPOINT active_record_1
2577
+ Gamification::Reward Exists (0.0ms) 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
2578
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2580
+  (0.0ms) SAVEPOINT active_record_1
2581
+ Gamification::Reward Exists (0.0ms) 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
2582
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2584
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
2585
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2586
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
2587
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
2588
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
2589
+  (0.0ms) rollback transaction
2590
+  (0.0ms) begin transaction
2591
+  (0.0ms) SAVEPOINT active_record_1
2592
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2594
+  (0.0ms) SAVEPOINT active_record_1
2595
+ SQL (0.0ms) 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"]]
2596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2597
+  (0.0ms) SAVEPOINT active_record_1
2598
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2600
+  (0.0ms) SAVEPOINT active_record_1
2601
+ Gamification::Reward Exists (0.0ms) 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
2602
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2604
+  (0.0ms) SAVEPOINT active_record_1
2605
+ Gamification::Reward Exists (0.0ms) 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
2606
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2608
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
2609
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2610
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
2611
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
2612
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
2613
+  (0.0ms) rollback transaction
2614
+  (0.0ms) begin transaction
2615
+  (0.0ms) SAVEPOINT active_record_1
2616
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2618
+  (0.0ms) SAVEPOINT active_record_1
2619
+ Gamification::Reward Exists (0.0ms) 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
2620
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2622
+  (0.0ms) SAVEPOINT active_record_1
2623
+ SQL (0.0ms) 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"]]
2624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2625
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
2629
+  (0.0ms) begin transaction
2630
+  (0.0ms) SAVEPOINT active_record_1
2631
+ SQL (0.0ms) 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"]]
2632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2633
+  (0.0ms) SAVEPOINT active_record_1
2634
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
2636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2637
+  (0.0ms) SAVEPOINT active_record_1
2638
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2640
+ Gamification::Medal Load (0.0ms) 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
+  (0.0ms) rollback transaction
2644
+  (0.0ms) begin transaction
2645
+  (0.0ms) SAVEPOINT active_record_1
2646
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2648
+  (0.0ms) SAVEPOINT active_record_1
2649
+ Gamification::Reward Exists (0.0ms) 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
2650
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2652
+  (0.0ms) SAVEPOINT active_record_1
2653
+ SQL (0.0ms) 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"]]
2654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2655
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
2659
+  (0.0ms) begin transaction
2660
+  (0.0ms) SAVEPOINT active_record_1
2661
+ SQL (0.0ms) 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"]]
2662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2663
+  (0.0ms) SAVEPOINT active_record_1
2664
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2667
+ Gamification::Reward Load (0.0ms) 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"]]
2668
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2670
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2672
+  (0.0ms) rollback transaction
2673
+  (0.0ms) begin transaction
2674
+  (0.0ms) SAVEPOINT active_record_1
2675
+ SQL (0.0ms) 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"]]
2676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2677
+  (0.0ms) SAVEPOINT active_record_1
2678
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2680
+  (0.0ms) SAVEPOINT active_record_1
2681
+ SQL (0.0ms) 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"]]
2682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2683
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
2684
+ Gamification::Reward Load (0.0ms) 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
+ Gamification::Reward Load (0.0ms) 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]]
2686
+  (0.0ms) rollback transaction
2687
+  (0.0ms) begin transaction
2688
+  (0.0ms) SAVEPOINT active_record_1
2689
+ SQL (0.0ms) 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"]]
2690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2691
+  (0.0ms) SAVEPOINT active_record_1
2692
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2694
+  (0.0ms) SAVEPOINT active_record_1
2695
+ SQL (0.0ms) 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"]]
2696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2697
+ Gamification::Reward Load (0.0ms) 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]]
2698
+  (0.0ms) SAVEPOINT active_record_1
2699
+ Gamification::Reward Exists (0.0ms) 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
2700
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2702
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
2703
+ Gamification::Reward Load (0.0ms) 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]]
2704
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) rollback transaction
2706
+  (0.0ms) begin transaction
2707
+  (0.0ms) SAVEPOINT active_record_1
2708
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2710
+  (0.0ms) SAVEPOINT active_record_1
2711
+ SQL (0.0ms) 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"]]
2712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2713
+ Gamification::Reward Load (0.0ms) 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]]
2714
+  (0.0ms) SAVEPOINT active_record_1
2715
+ Gamification::Reward Exists (0.0ms) 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
2716
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2718
+  (0.0ms) rollback transaction
2719
+  (0.0ms) begin transaction
2720
+  (0.0ms) SAVEPOINT active_record_1
2721
+ SQL (0.0ms) 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"]]
2722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2723
+  (0.0ms) SAVEPOINT active_record_1
2724
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2726
+  (0.0ms) SAVEPOINT active_record_1
2727
+ Gamification::Reward Exists (0.0ms) 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
2728
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2730
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) rollback transaction
2732
+  (0.0ms) begin transaction
2733
+  (0.0ms) SAVEPOINT active_record_1
2734
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2736
+  (0.0ms) SAVEPOINT active_record_1
2737
+ SQL (0.0ms) 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"]]
2738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2739
+  (0.0ms) SAVEPOINT active_record_1
2740
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
2742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2743
+ Gamification::Reward Load (0.0ms) 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]]
2744
+  (0.0ms) rollback transaction
2745
+  (0.0ms) begin transaction
2746
+  (0.0ms) SAVEPOINT active_record_1
2747
+ SQL (0.0ms) 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"]]
2748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2749
+  (0.0ms) SAVEPOINT active_record_1
2750
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2752
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) rollback transaction
2754
+  (0.3ms) begin transaction
2755
+  (0.0ms) SAVEPOINT active_record_1
2756
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:40.041208"], ["updated_at", "2015-09-11 12:06:40.041208"]]
2757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2758
+  (0.0ms) SAVEPOINT active_record_1
2759
+ SQL (0.9ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2761
+  (0.1ms) SAVEPOINT active_record_1
2762
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.075771"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.075771"]]
2763
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2765
+  (0.0ms) SAVEPOINT active_record_1
2766
+ Gamification::Reward Exists (0.1ms) 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
2767
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2769
+  (0.0ms) SAVEPOINT active_record_1
2770
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.089613"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.089613"]]
2771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2772
+  (0.0ms) SAVEPOINT active_record_1
2773
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2776
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
2777
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
2778
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
2779
+  (1.4ms) rollback transaction
2780
+  (0.1ms) begin transaction
2781
+  (0.0ms) SAVEPOINT active_record_1
2782
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:40.104374"], ["updated_at", "2015-09-11 12:06:40.104374"]]
2783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2784
+  (0.0ms) SAVEPOINT active_record_1
2785
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2787
+  (0.0ms) SAVEPOINT active_record_1
2788
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.107742"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.107742"]]
2789
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2791
+  (0.0ms) SAVEPOINT active_record_1
2792
+ Gamification::Reward Exists (0.1ms) 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
2793
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2795
+  (0.0ms) SAVEPOINT active_record_1
2796
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.111453"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.111453"]]
2797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2798
+  (0.0ms) SAVEPOINT active_record_1
2799
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2802
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
2803
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
2804
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
2805
+ SQL (0.0ms) DELETE FROM "gamification_medals" WHERE "gamification_medals"."id" = 1
2806
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
2807
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
2808
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
2809
+  (0.8ms) rollback transaction
2810
+  (0.3ms) begin transaction
2811
+  (0.1ms) SAVEPOINT active_record_1
2812
+ Gamification::Reward Exists (0.1ms) 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
2813
+ SQL (1.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2815
+  (1.1ms) rollback transaction
2816
+  (0.1ms) begin transaction
2817
+  (0.0ms) SAVEPOINT active_record_1
2818
+ Gamification::Reward Exists (0.1ms) 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
2819
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2821
+  (0.4ms) rollback transaction
2822
+  (0.0ms) begin transaction
2823
+  (0.0ms) SAVEPOINT active_record_1
2824
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.582287"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.582287"]]
2825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2826
+  (0.0ms) SAVEPOINT active_record_1
2827
+ SQL (0.9ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2829
+  (0.0ms) SAVEPOINT active_record_1
2830
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2832
+  (0.0ms) SAVEPOINT active_record_1
2833
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.592631"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.592631"]]
2835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2836
+  (0.0ms) SAVEPOINT active_record_1
2837
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.593803"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:44.593803"]]
2839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2840
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
2841
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2842
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
2843
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
2844
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
2845
+  (0.6ms) rollback transaction
2846
+  (0.0ms) begin transaction
2847
+  (0.0ms) SAVEPOINT active_record_1
2848
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.602210"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.602210"]]
2849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2850
+  (0.0ms) SAVEPOINT active_record_1
2851
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2853
+  (0.0ms) SAVEPOINT active_record_1
2854
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2856
+  (0.0ms) SAVEPOINT active_record_1
2857
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.605920"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.605920"]]
2859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2860
+  (0.0ms) SAVEPOINT active_record_1
2861
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.607106"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:44.607106"]]
2863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2864
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
2865
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
2866
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
2867
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
2868
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
2869
+  (0.6ms) rollback transaction
2870
+  (0.0ms) begin transaction
2871
+  (0.0ms) SAVEPOINT active_record_1
2872
+ Gamification::Reward Exists (0.1ms) 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
2873
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2875
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
2876
+  (0.4ms) rollback transaction
2877
+  (0.0ms) begin transaction
2878
+  (0.0ms) rollback transaction
2879
+  (0.0ms) begin transaction
2880
+  (0.0ms) rollback transaction
2881
+  (0.0ms) begin transaction
2882
+  (0.0ms) SAVEPOINT active_record_1
2883
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]
2885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2886
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
2887
+  (0.0ms) rollback transaction
2888
+  (0.0ms) begin transaction
2889
+  (0.0ms) SAVEPOINT active_record_1
2890
+ SQL (0.0ms) 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"]]
2891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2892
+  (0.0ms) SAVEPOINT active_record_1
2893
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2895
+  (0.0ms) rollback transaction
2896
+  (0.0ms) begin transaction
2897
+  (0.0ms) SAVEPOINT active_record_1
2898
+ SQL (0.0ms) 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"]]
2899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2900
+  (0.0ms) SAVEPOINT active_record_1
2901
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2903
+  (0.0ms) SAVEPOINT active_record_1
2904
+ SQL (0.0ms) 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"]]
2905
+  (0.0ms) 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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2909
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2910
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2911
+ User Load (0.0ms) 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
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
2915
+  (0.0ms) rollback transaction
2916
+  (0.0ms) begin transaction
2917
+  (0.0ms) SAVEPOINT active_record_1
2918
+ SQL (0.0ms) 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"]]
2919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2920
+  (0.0ms) SAVEPOINT active_record_1
2921
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2923
+  (0.0ms) SAVEPOINT active_record_1
2924
+ SQL (0.0ms) 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"]]
2925
+  (0.0ms) 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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2929
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2930
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2931
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
2935
+  (0.0ms) begin transaction
2936
+  (0.0ms) SAVEPOINT active_record_1
2937
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2939
+  (0.0ms) SAVEPOINT active_record_1
2940
+ SQL (0.0ms) 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"]]
2941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2942
+  (0.0ms) SAVEPOINT active_record_1
2943
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2948
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2949
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2950
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2951
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2952
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2953
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
2954
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2955
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2957
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
2959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2960
+ Redirected to http://example.org
2961
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2962
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
2963
+  (0.0ms) rollback transaction
2964
+  (0.0ms) begin transaction
2965
+  (0.0ms) SAVEPOINT active_record_1
2966
+ SQL (0.0ms) 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"]]
2967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2968
+  (0.0ms) SAVEPOINT active_record_1
2969
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2971
+  (0.0ms) SAVEPOINT active_record_1
2972
+ SQL (0.0ms) 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"]]
2973
+  (0.0ms) 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
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2977
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2978
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2979
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2980
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2981
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
2982
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
2983
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2984
+ Gamification::Reward Load (0.0ms) 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]]
2985
+  (0.0ms) SAVEPOINT active_record_1
2986
+ Gamification::Reward Exists (0.0ms) 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
2987
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2989
+ Redirected to http://example.org
2990
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
2991
+  (0.0ms) rollback transaction
2992
+  (0.0ms) begin transaction
2993
+  (0.0ms) SAVEPOINT active_record_1
2994
+ SQL (0.0ms) 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"]]
2995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2996
+  (0.0ms) SAVEPOINT active_record_1
2997
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3002
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3003
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3004
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3005
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3006
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3007
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3008
+ Gamification::Reward Load (0.0ms) 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]]
3009
+  (0.0ms) SAVEPOINT active_record_1
3010
+ Gamification::Reward Exists (0.0ms) 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
3011
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3013
+ Redirected to http://example.org
3014
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3015
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
3016
+  (0.0ms) rollback transaction
3017
+  (0.0ms) begin transaction
3018
+  (0.0ms) SAVEPOINT active_record_1
3019
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3021
+  (0.0ms) SAVEPOINT active_record_1
3022
+ SQL (0.0ms) 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"]]
3023
+  (0.0ms) 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
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3027
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3028
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3029
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3030
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3031
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3032
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3033
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
3035
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3038
+ Redirected to http://example.org
3039
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3040
+  (0.0ms) rollback transaction
3041
+  (0.0ms) begin transaction
3042
+  (0.0ms) SAVEPOINT active_record_1
3043
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3045
+  (0.0ms) SAVEPOINT active_record_1
3046
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3048
+  (0.0ms) SAVEPOINT active_record_1
3049
+ SQL (0.0ms) 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
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
3051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3052
+  (0.0ms) SAVEPOINT active_record_1
3053
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3056
+  (0.0ms) SAVEPOINT active_record_1
3057
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3059
+  (0.0ms) SAVEPOINT active_record_1
3060
+ Gamification::Reward Exists (0.0ms) 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
3061
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3063
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
3064
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3065
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3066
+  (0.0ms) rollback transaction
3067
+  (0.0ms) begin transaction
3068
+  (0.0ms) SAVEPOINT active_record_1
3069
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3071
+  (0.0ms) SAVEPOINT active_record_1
3072
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3074
+  (0.0ms) SAVEPOINT active_record_1
3075
+ SQL (0.0ms) 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
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
3077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3078
+  (0.0ms) SAVEPOINT active_record_1
3079
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3082
+  (0.0ms) SAVEPOINT active_record_1
3083
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3085
+  (0.0ms) SAVEPOINT active_record_1
3086
+ Gamification::Reward Exists (0.0ms) 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
3087
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3089
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
3090
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3091
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3092
+ SQL (0.0ms) DELETE FROM "gamification_medals" WHERE "gamification_medals"."id" = 1
3093
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
3094
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3095
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3096
+  (0.0ms) rollback transaction
3097
+  (0.0ms) begin transaction
3098
+  (0.0ms) rollback transaction
3099
+  (0.0ms) begin transaction
3100
+  (0.0ms) rollback transaction
3101
+  (0.0ms) begin transaction
3102
+  (0.0ms) SAVEPOINT active_record_1
3103
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3105
+  (0.0ms) SAVEPOINT active_record_1
3106
+ SQL (0.0ms) 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"]]
3107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3108
+  (0.0ms) SAVEPOINT active_record_1
3109
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3111
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
3113
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3116
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
3117
+ Gamification::Reward Load (0.0ms) 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
+ Gamification::Reward Load (0.0ms) 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]]
3119
+  (0.0ms) rollback transaction
3120
+  (0.0ms) begin transaction
3121
+  (0.0ms) SAVEPOINT active_record_1
3122
+ SQL (0.0ms) 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"]]
3123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3124
+  (0.0ms) SAVEPOINT active_record_1
3125
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3127
+  (0.0ms) SAVEPOINT active_record_1
3128
+ SQL (0.0ms) 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"]]
3129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3130
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
3131
+ Gamification::Reward Load (0.0ms) 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
+ Gamification::Reward Load (0.0ms) 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]]
3133
+  (0.0ms) rollback transaction
3134
+  (0.0ms) begin transaction
3135
+  (0.0ms) SAVEPOINT active_record_1
3136
+ SQL (0.0ms) 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"]]
3137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3138
+  (0.0ms) SAVEPOINT active_record_1
3139
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3141
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
3143
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3146
+  (0.0ms) rollback transaction
3147
+  (0.0ms) begin transaction
3148
+  (0.0ms) SAVEPOINT active_record_1
3149
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3151
+  (0.0ms) SAVEPOINT active_record_1
3152
+ SQL (0.0ms) 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"]]
3153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3154
+  (0.0ms) SAVEPOINT active_record_1
3155
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3158
+ Gamification::Reward Load (0.0ms) 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]]
3159
+  (0.0ms) rollback transaction
3160
+  (0.0ms) begin transaction
3161
+  (0.0ms) SAVEPOINT active_record_1
3162
+ SQL (0.0ms) 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"]]
3163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3164
+  (0.0ms) SAVEPOINT active_record_1
3165
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3167
+  (0.0ms) SAVEPOINT active_record_1
3168
+ Gamification::Reward Exists (0.0ms) 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
3169
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3171
+ Gamification::Reward Load (0.0ms) 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
+  (0.0ms) rollback transaction
3173
+  (0.0ms) begin transaction
3174
+  (0.0ms) SAVEPOINT active_record_1
3175
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3177
+  (0.0ms) SAVEPOINT active_record_1
3178
+ SQL (0.0ms) 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"]]
3179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3180
+ Gamification::Reward Load (0.0ms) 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]]
3181
+  (0.0ms) rollback transaction
3182
+  (0.0ms) begin transaction
3183
+  (0.0ms) SAVEPOINT active_record_1
3184
+ SQL (0.0ms) 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"]]
3185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3186
+  (0.0ms) SAVEPOINT active_record_1
3187
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3190
+  (0.0ms) SAVEPOINT active_record_1
3191
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3193
+ Gamification::Medal Load (0.0ms) 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
+  (0.0ms) rollback transaction
3197
+  (0.0ms) begin transaction
3198
+  (0.0ms) SAVEPOINT active_record_1
3199
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3201
+  (0.0ms) SAVEPOINT active_record_1
3202
+ Gamification::Reward Exists (0.0ms) 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
3203
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3205
+  (0.0ms) SAVEPOINT active_record_1
3206
+ SQL (0.0ms) 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"]]
3207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3208
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
3212
+  (0.0ms) begin transaction
3213
+  (0.0ms) SAVEPOINT active_record_1
3214
+ SQL (0.0ms) 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"]]
3215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3216
+  (0.0ms) SAVEPOINT active_record_1
3217
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.0ms) 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"]]
3219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3220
+  (0.0ms) SAVEPOINT active_record_1
3221
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3223
+ Gamification::Medal Load (0.0ms) 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
+  (0.0ms) rollback transaction
3227
+  (0.0ms) begin transaction
3228
+  (0.0ms) SAVEPOINT active_record_1
3229
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3231
+  (0.0ms) SAVEPOINT active_record_1
3232
+ Gamification::Reward Exists (0.0ms) 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
3233
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3235
+ Gamification::Reward Load (0.0ms) 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
+ Gamification::Reward Load (0.0ms) 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"]]
3237
+  (0.0ms) SAVEPOINT active_record_1
3238
+ SQL (0.0ms) UPDATE "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
3239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3240
+  (0.0ms) rollback transaction
3241
+  (0.0ms) begin transaction
3242
+  (0.0ms) SAVEPOINT active_record_1
3243
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3245
+ Processing by ArticlesController#show as HTML
3246
+ Parameters: {"id"=>"1"}
3247
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3248
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
3249
+  (0.0ms) rollback transaction
3250
+  (0.3ms) begin transaction
3251
+  (0.0ms) SAVEPOINT active_record_1
3252
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:07:40.128321"], ["updated_at", "2015-09-11 12:07:40.128321"]]
3253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3254
+  (0.1ms) SAVEPOINT active_record_1
3255
+ SQL (1.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3257
+  (0.1ms) SAVEPOINT active_record_1
3258
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:07:40.163928"], ["points", 1], ["updated_at", "2015-09-11 12:07:40.163928"]]
3259
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3261
+  (0.0ms) SAVEPOINT active_record_1
3262
+ Gamification::Reward Exists (0.1ms) 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
3263
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3265
+  (0.0ms) SAVEPOINT active_record_1
3266
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:07:40.182476"], ["points", 1], ["updated_at", "2015-09-11 12:07:40.182476"]]
3267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3268
+  (0.0ms) SAVEPOINT active_record_1
3269
+ Gamification::Reward Exists (0.0ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3272
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
3273
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3274
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3275
+  (1.2ms) rollback transaction
3276
+  (0.0ms) begin transaction
3277
+  (0.0ms) SAVEPOINT active_record_1
3278
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:07:40.195664"], ["updated_at", "2015-09-11 12:07:40.195664"]]
3279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3280
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
3281
+  (0.3ms) rollback transaction
3282
+  (0.3ms) begin transaction
3283
+  (0.0ms) SAVEPOINT active_record_1
3284
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:08:00.530587"], ["updated_at", "2015-09-11 12:08:00.530587"]]
3285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3286
+  (0.0ms) SAVEPOINT active_record_1
3287
+ SQL (1.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3289
+  (0.0ms) SAVEPOINT active_record_1
3290
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:08:00.564258"], ["points", 1], ["updated_at", "2015-09-11 12:08:00.564258"]]
3291
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3293
+  (0.0ms) SAVEPOINT active_record_1
3294
+ Gamification::Reward Exists (0.1ms) 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
3295
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3297
+  (0.0ms) SAVEPOINT active_record_1
3298
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:08:00.578977"], ["points", 1], ["updated_at", "2015-09-11 12:08:00.578977"]]
3299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3300
+  (0.0ms) SAVEPOINT active_record_1
3301
+ Gamification::Reward Exists (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3304
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
3305
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3306
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3307
+  (1.2ms) rollback transaction
3308
+  (0.0ms) begin transaction
3309
+  (0.0ms) SAVEPOINT active_record_1
3310
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:08:00.592907"], ["updated_at", "2015-09-11 12:08:00.592907"]]
3311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3312
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]
3313
+  (0.4ms) rollback transaction