activerecord_any_of 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/activerecord_any_of/alternative_builder.rb +27 -10
- data/lib/activerecord_any_of/version.rb +1 -1
- data/lib/activerecord_any_of.rb +3 -3
- data/test/activerecord_any_of_test.rb +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +765 -0
- metadata +11 -23
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8fbc387a6c367d20f242594b77938c428e152a61
|
4
|
+
data.tar.gz: ac60682ccb9a6ad90dce8f6239a0c7af516092cf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ae3cd4256c54bb9d4f854b818d457d148cf2bda22d30941381924a7b026d8da001d47b0b6fe76cb7659fe9a65d86936fa078e5c849132fac6cf299819d3a5350
|
7
|
+
data.tar.gz: efab5a39c488004a6c98f30967d55e670c5afc2395bd5184d3f6c7018cf86937a05f1b11acb5035688774092870a01848f3e09940ad8a71df3000355135ed0e9
|
@@ -24,12 +24,16 @@ module ActiverecordAnyOf
|
|
24
24
|
|
25
25
|
def queries
|
26
26
|
@queries ||= @source_queries.map do |query|
|
27
|
-
|
28
|
-
|
27
|
+
if String === query || Hash === query
|
28
|
+
query = where(query)
|
29
|
+
elsif Array === query
|
30
|
+
query = where(*query)
|
31
|
+
end
|
32
|
+
|
29
33
|
self.queries_bind_values += query.bind_values if query.bind_values.any?
|
30
|
-
queries_joins_values[:includes]
|
31
|
-
queries_joins_values[:joins]
|
32
|
-
queries_joins_values[:references]
|
34
|
+
queries_joins_values[:includes].concat(query.includes_values) if query.includes_values.any?
|
35
|
+
queries_joins_values[:joins].concat(query.joins_values) if query.joins_values.any?
|
36
|
+
queries_joins_values[:references].concat(query.references_values) if Rails.version >= '4' && query.references_values.any?
|
33
37
|
query.arel.constraints.reduce(:and)
|
34
38
|
end
|
35
39
|
end
|
@@ -42,13 +46,13 @@ module ActiverecordAnyOf
|
|
42
46
|
@context.send(method_name, *args, &block)
|
43
47
|
end
|
44
48
|
|
45
|
-
def add_joins_to(
|
49
|
+
def add_joins_to(relation)
|
46
50
|
relation = relation.references(uniq_queries_joins_values[:references]) if Rails.version >= '4'
|
47
51
|
relation = relation.includes(uniq_queries_joins_values[:includes])
|
48
52
|
relation.joins(uniq_queries_joins_values[:joins])
|
49
53
|
end
|
50
54
|
|
51
|
-
def add_related_values_to(
|
55
|
+
def add_related_values_to(relation)
|
52
56
|
relation.bind_values += queries_bind_values
|
53
57
|
relation.includes_values += uniq_queries_joins_values[:includes]
|
54
58
|
relation.joins_values += uniq_queries_joins_values[:joins]
|
@@ -62,7 +66,12 @@ module ActiverecordAnyOf
|
|
62
66
|
private
|
63
67
|
|
64
68
|
def with_statement_cache
|
65
|
-
|
69
|
+
if queries_bind_values.any?
|
70
|
+
relation = where([queries.reduce(:or).to_sql, *queries_bind_values.map { |v| v[1] }])
|
71
|
+
else
|
72
|
+
relation = where(queries.reduce(:or).to_sql)
|
73
|
+
end
|
74
|
+
|
66
75
|
add_joins_to relation
|
67
76
|
end
|
68
77
|
|
@@ -77,9 +86,17 @@ module ActiverecordAnyOf
|
|
77
86
|
|
78
87
|
def with_statement_cache
|
79
88
|
if Rails.version >= '4'
|
80
|
-
|
89
|
+
if queries_bind_values.any?
|
90
|
+
relation = where.not([queries.reduce(:or).to_sql, *queries_bind_values.map { |v| v[1] }])
|
91
|
+
else
|
92
|
+
relation = where.not(queries.reduce(:or).to_sql)
|
93
|
+
end
|
81
94
|
else
|
82
|
-
|
95
|
+
if queries_bind_values.any?
|
96
|
+
relation = where([Arel::Nodes::Not.new(queries.reduce(:or)).to_sql, *queries_bind_values.map { |v| v[1] }])
|
97
|
+
else
|
98
|
+
relation = where(Arel::Nodes::Not.new(queries.reduce(:or)).to_sql)
|
99
|
+
end
|
83
100
|
end
|
84
101
|
|
85
102
|
add_joins_to relation
|
data/lib/activerecord_any_of.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'activerecord_any_of/alternative_builder'
|
2
2
|
|
3
3
|
module ActiverecordAnyOf
|
4
|
-
# Returns a new relation, which includes results matching any of conditions
|
4
|
+
# Returns a new relation, which includes results matching any of the conditions
|
5
5
|
# passed as parameters. You can think of it as a sql <tt>OR</tt> implementation.
|
6
6
|
#
|
7
7
|
# Each #any_of parameter is the same set you would have passed to #where :
|
@@ -21,13 +21,13 @@ module ActiverecordAnyOf
|
|
21
21
|
#
|
22
22
|
# banned_users = User.where(banned: true)
|
23
23
|
# unconfirmed_users = User.where("confirmed_at IS NULL")
|
24
|
-
#
|
24
|
+
# inactive_users = User.any_of(banned_users, unconfirmed_users)
|
25
25
|
def any_of(*queries)
|
26
26
|
raise ArgumentError, 'Called any_of() with no arguments.' if queries.none?
|
27
27
|
AlternativeBuilder.new(:positive, self, *queries).build
|
28
28
|
end
|
29
29
|
|
30
|
-
# Returns a new relation, which includes results not matching any of conditions
|
30
|
+
# Returns a new relation, which includes results not matching any of the conditions
|
31
31
|
# passed as parameters. It's the negative version of <tt>#any_of</tt>.
|
32
32
|
#
|
33
33
|
# This will return all active users :
|
@@ -60,4 +60,8 @@ class ActiverecordAnyOfTest < ActiveSupport::TestCase
|
|
60
60
|
test 'calling #none_of with no argument raise exception' do
|
61
61
|
assert_raise(ArgumentError) { Author.none_of }
|
62
62
|
end
|
63
|
+
|
64
|
+
test 'calling #any_of after a wildcard query works' do
|
65
|
+
assert_equal ['David'], Author.where("name like '%av%'").any_of({name: 'David'}, {name: 'Mary'}).map(&:name)
|
66
|
+
end
|
63
67
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -1724,3 +1724,768 @@ Connecting to database specified by database.yml
|
|
1724
1724
|
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
1725
1725
|
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m
|
1726
1726
|
[1m[35m (0.0ms)[0m rollback transaction
|
1727
|
+
Connecting to database specified by database.yml
|
1728
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
1729
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1730
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1731
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
|
1732
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1733
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1734
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1735
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
|
1736
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1737
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
|
1738
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1739
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
|
1740
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1741
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
|
1742
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1743
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
|
1744
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')[0m
|
1745
|
+
[1m[35m (259.3ms)[0m commit transaction
|
1746
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1747
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1748
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1749
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1750
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1751
|
+
[1m[35mAuthor Load (0.7ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
1752
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
1753
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1754
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1755
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
1756
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
1757
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
1758
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
1759
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
|
1760
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1761
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1762
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
1763
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
|
1764
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1765
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1766
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
1767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1769
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
1770
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m
|
1771
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1772
|
+
Connecting to database specified by database.yml
|
1773
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
1774
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "authors"
|
1775
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1776
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
|
1777
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1778
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1779
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1780
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
|
1781
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1782
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
|
1783
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1784
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
|
1785
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1786
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
|
1787
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1788
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
|
1789
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')[0m
|
1790
|
+
[1m[35m (290.3ms)[0m commit transaction
|
1791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1792
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1793
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1794
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1796
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
1797
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
1798
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1799
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1800
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
1801
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
1802
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
1803
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
1804
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
|
1805
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1806
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1807
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
1808
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
|
1809
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1810
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1811
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
1812
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1813
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1814
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
1815
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m
|
1816
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1817
|
+
Connecting to database specified by database.yml
|
1818
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1819
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1820
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1821
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
|
1822
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1823
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1824
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1825
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
|
1826
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1827
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
|
1828
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1829
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
|
1830
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1831
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
|
1832
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1833
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
|
1834
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')[0m
|
1835
|
+
[1m[35m (263.7ms)[0m commit transaction
|
1836
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1837
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1838
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1839
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1840
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1841
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1842
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1843
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
1844
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
1845
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1846
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1847
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
1848
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
1849
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
1850
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
1851
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
|
1852
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1853
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1854
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
1855
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
|
1856
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1857
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1858
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
1859
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1860
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1861
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
1862
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m
|
1863
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1864
|
+
Connecting to database specified by database.yml
|
1865
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1866
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1867
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1868
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
|
1869
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1870
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1871
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1872
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
|
1873
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1874
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
|
1875
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1876
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
|
1877
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1878
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
|
1879
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1880
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
|
1881
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')[0m
|
1882
|
+
[1m[35m (1055.4ms)[0m commit transaction
|
1883
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1884
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1885
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1886
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1887
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1888
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1889
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1890
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1891
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1892
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1894
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
1895
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1896
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1897
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1898
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1899
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
1900
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1901
|
+
Connecting to database specified by database.yml
|
1902
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1903
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1904
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1905
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
|
1906
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1907
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1908
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1909
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
|
1910
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1911
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
|
1912
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1913
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
|
1914
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1915
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
|
1916
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1917
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
|
1918
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')[0m
|
1919
|
+
[1m[35m (929.5ms)[0m commit transaction
|
1920
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1921
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1922
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1923
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1924
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1925
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1926
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1927
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1928
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1929
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1930
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1931
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
1932
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1933
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1934
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1935
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1936
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
1937
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1938
|
+
Connecting to database specified by database.yml
|
1939
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1940
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1941
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1942
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
|
1943
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1944
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1945
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1946
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
|
1947
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1948
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
|
1949
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1950
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
|
1951
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1952
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
|
1953
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1954
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
|
1955
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')[0m
|
1956
|
+
[1m[35m (266.3ms)[0m commit transaction
|
1957
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1958
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1959
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1960
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1961
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1962
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1963
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1964
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
1965
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
1966
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1967
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1968
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
1969
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
1970
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
1971
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
1972
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
|
1973
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1974
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1975
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
1976
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
|
1977
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1978
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1979
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
1980
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1981
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1982
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
1983
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m
|
1984
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1985
|
+
Connecting to database specified by database.yml
|
1986
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1987
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
1988
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
1989
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
|
1990
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
1991
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
1992
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
1993
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
|
1994
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
1995
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
|
1996
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
1997
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
|
1998
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
1999
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
|
2000
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
2001
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
|
2002
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')[0m
|
2003
|
+
[1m[35m (287.7ms)[0m commit transaction
|
2004
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2005
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2006
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2007
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2008
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2009
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2010
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2011
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
2012
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
2013
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2014
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2015
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
2016
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
2017
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
2018
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
2019
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
|
2020
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2021
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2022
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
2023
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
|
2024
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2025
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2026
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))[0m
|
2027
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2028
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2029
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
2030
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))[0m
|
2031
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2032
|
+
Connecting to database specified by database.yml
|
2033
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2034
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2035
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2036
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
|
2037
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2038
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2039
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2040
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
|
2041
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2042
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
|
2043
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2044
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
|
2045
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2046
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
|
2047
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2048
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
|
2049
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')[0m
|
2050
|
+
[1m[35m (336.9ms)[0m commit transaction
|
2051
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2052
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2053
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2054
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2055
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2056
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2057
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2058
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
2059
|
+
[1m[36mSQL (0.3ms)[0m [1mSELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
2060
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2061
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2062
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
|
2063
|
+
[1m[36mAuthor Load (0.2ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))[0m
|
2064
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
|
2065
|
+
[1m[36mAuthor Load (0.2ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))[0m
|
2066
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
|
2067
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2068
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2069
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
2070
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
|
2071
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2072
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2073
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2074
|
+
Connecting to database specified by database.yml
|
2075
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2076
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2077
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2078
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
|
2079
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2080
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2081
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2082
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
|
2083
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2084
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
|
2085
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2086
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
|
2087
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2088
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
|
2089
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2090
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
|
2091
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')[0m
|
2092
|
+
[1m[35m (286.4ms)[0m commit transaction
|
2093
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2094
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%')
|
2095
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2096
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2097
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2098
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2099
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2100
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2101
|
+
[1m[36mAuthor Load (0.3ms)[0m [1mSELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
2102
|
+
[1m[35mSQL (0.4ms)[0m SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
2103
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2105
|
+
[1m[36mAuthor Load (0.3ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
2106
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
|
2107
|
+
[1m[36mAuthor Load (0.2ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))[0m
|
2108
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
|
2109
|
+
[1m[36mAuthor Load (0.2ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))[0m
|
2110
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2111
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2112
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
2113
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
2114
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2115
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2116
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
|
2117
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2118
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2119
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
2120
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
|
2121
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2122
|
+
Connecting to database specified by database.yml
|
2123
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2124
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2125
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2126
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
|
2127
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2128
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2129
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2130
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
|
2131
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2132
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
|
2133
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2134
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
|
2135
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2136
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
|
2137
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2138
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
|
2139
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')[0m
|
2140
|
+
[1m[35m (286.4ms)[0m commit transaction
|
2141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2142
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%')
|
2143
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2144
|
+
Connecting to database specified by database.yml
|
2145
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2146
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2147
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2148
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
|
2149
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2150
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2151
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2152
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
|
2153
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2154
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
|
2155
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2156
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
|
2157
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2158
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
|
2159
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2160
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
|
2161
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')[0m
|
2162
|
+
[1m[35m (981.8ms)[0m commit transaction
|
2163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2164
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2165
|
+
Connecting to database specified by database.yml
|
2166
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2167
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2168
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2169
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
|
2170
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2171
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2172
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2173
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
|
2174
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2175
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
|
2176
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2177
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
|
2178
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2179
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
|
2180
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2181
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
|
2182
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')[0m
|
2183
|
+
[1m[35m (317.2ms)[0m commit transaction
|
2184
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2185
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2186
|
+
Connecting to database specified by database.yml
|
2187
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2188
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2189
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2190
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
|
2191
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2192
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2193
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2194
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
|
2195
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2196
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
|
2197
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2198
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
|
2199
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2200
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
|
2201
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2202
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
|
2203
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')[0m
|
2204
|
+
[1m[35m (280.7ms)[0m commit transaction
|
2205
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2206
|
+
[1m[35mAuthor Load (0.2ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%')
|
2207
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2208
|
+
Connecting to database specified by database.yml
|
2209
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2210
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2211
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2212
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
|
2213
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2214
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2215
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2216
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
|
2217
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2218
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
|
2219
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2220
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
|
2221
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2222
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
|
2223
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2224
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
|
2225
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')[0m
|
2226
|
+
[1m[35m (315.9ms)[0m commit transaction
|
2227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2228
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary')) AND (name like '%av%')
|
2229
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2230
|
+
Connecting to database specified by database.yml
|
2231
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2232
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2233
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2234
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
|
2235
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2236
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2237
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2238
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
|
2239
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2240
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
|
2241
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2242
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
|
2243
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2244
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
|
2245
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2246
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
|
2247
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')[0m
|
2248
|
+
[1m[35m (237.7ms)[0m commit transaction
|
2249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2250
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary')) AND (name like '%av%')
|
2251
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2252
|
+
Connecting to database specified by database.yml
|
2253
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2254
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2255
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2256
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
|
2257
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2258
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2259
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2260
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
|
2261
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2262
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
|
2263
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2264
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
|
2265
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2266
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
|
2267
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2268
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
|
2269
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')[0m
|
2270
|
+
[1m[35m (355.9ms)[0m commit transaction
|
2271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2272
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary')) AND (name like '%av%')
|
2273
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2274
|
+
Connecting to database specified by database.yml
|
2275
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2276
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2277
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2278
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
|
2279
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2280
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2281
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2282
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
|
2283
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2284
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
|
2285
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2286
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
|
2287
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2288
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
|
2289
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2290
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
|
2291
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')[0m
|
2292
|
+
[1m[35m (487.9ms)[0m commit transaction
|
2293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2294
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2295
|
+
Connecting to database specified by database.yml
|
2296
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2297
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2298
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2299
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
|
2300
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2301
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2302
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2303
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
|
2304
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2305
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
|
2306
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2307
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
|
2308
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2309
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
|
2310
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2311
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
|
2312
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')[0m
|
2313
|
+
[1m[35m (315.1ms)[0m commit transaction
|
2314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2315
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2316
|
+
Connecting to database specified by database.yml
|
2317
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2318
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2319
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2320
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
|
2321
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2322
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2323
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2324
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
|
2325
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2326
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
|
2327
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2328
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
|
2329
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2330
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
|
2331
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2332
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
|
2333
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')[0m
|
2334
|
+
[1m[35m (834.5ms)[0m commit transaction
|
2335
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2336
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2337
|
+
Connecting to database specified by database.yml
|
2338
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2339
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2340
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2341
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
|
2342
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2343
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2344
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2345
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
|
2346
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2347
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
|
2348
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2349
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
|
2350
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2351
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
|
2352
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2353
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
|
2354
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')[0m
|
2355
|
+
[1m[35m (289.9ms)[0m commit transaction
|
2356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2357
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2358
|
+
Connecting to database specified by database.yml
|
2359
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2360
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2361
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2362
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
|
2363
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2364
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2365
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2366
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
|
2367
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2368
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
|
2369
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2370
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
|
2371
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2372
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
|
2373
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2374
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
|
2375
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')[0m
|
2376
|
+
[1m[35m (338.3ms)[0m commit transaction
|
2377
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2378
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2379
|
+
Connecting to database specified by database.yml
|
2380
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2381
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2382
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2383
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
|
2384
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2385
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2386
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2387
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
|
2388
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2389
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
|
2390
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2391
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
|
2392
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2393
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
|
2394
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2395
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
|
2396
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')[0m
|
2397
|
+
[1m[35m (378.0ms)[0m commit transaction
|
2398
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2399
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2400
|
+
Connecting to database specified by database.yml
|
2401
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2402
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2403
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2404
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
|
2405
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2406
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2407
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2408
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
|
2409
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2410
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
|
2411
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2412
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
|
2413
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2414
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
|
2415
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2416
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
|
2417
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')[0m
|
2418
|
+
[1m[35m (376.8ms)[0m commit transaction
|
2419
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2420
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
2421
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2422
|
+
Connecting to database specified by database.yml
|
2423
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2424
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2425
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2426
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
|
2427
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2428
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2429
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2430
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
|
2431
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2432
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
|
2433
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2434
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
|
2435
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2436
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
|
2437
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2438
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
|
2439
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')[0m
|
2440
|
+
[1m[35m (279.6ms)[0m commit transaction
|
2441
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2442
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
2443
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2444
|
+
Connecting to database specified by database.yml
|
2445
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2446
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "authors"
|
2447
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2448
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
|
2449
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2450
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "posts"
|
2451
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2452
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
|
2453
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2454
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
|
2455
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2456
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
|
2457
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2458
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
|
2459
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2460
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
|
2461
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')[0m
|
2462
|
+
[1m[35m (295.6ms)[0m commit transaction
|
2463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2464
|
+
[1m[35mAuthor Load (0.3ms)[0m SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
|
2465
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2466
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2467
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2468
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2469
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2470
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2471
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))[0m
|
2472
|
+
[1m[35mSQL (0.1ms)[0m SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
|
2473
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2474
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2475
|
+
[1m[36mAuthor Load (0.1ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))[0m
|
2476
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
|
2477
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))[0m
|
2478
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
|
2479
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))[0m
|
2480
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2481
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2482
|
+
[1m[35mAuthor Load (0.0ms)[0m SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
|
2483
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))[0m
|
2484
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2485
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2486
|
+
[1m[35mAuthor Load (0.1ms)[0m SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
|
2487
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2488
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2489
|
+
[1m[36mAuthor Load (0.0ms)[0m [1mSELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1[0m
|
2490
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
|
2491
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_any_of
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Olivier El Mekki
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-30 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.2.13
|
22
20
|
- - <
|
@@ -25,9 +23,8 @@ dependencies:
|
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
|
-
- -
|
27
|
+
- - '>='
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 3.2.13
|
33
30
|
- - <
|
@@ -36,17 +33,15 @@ dependencies:
|
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
34
|
name: sqlite3
|
38
35
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
|
-
- -
|
37
|
+
- - '>='
|
42
38
|
- !ruby/object:Gem::Version
|
43
39
|
version: '0'
|
44
40
|
type: :development
|
45
41
|
prerelease: false
|
46
42
|
version_requirements: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
43
|
requirements:
|
49
|
-
- -
|
44
|
+
- - '>='
|
50
45
|
- !ruby/object:Gem::Version
|
51
46
|
version: '0'
|
52
47
|
description: Any_of allows to compute dynamic OR queries.
|
@@ -111,33 +106,26 @@ files:
|
|
111
106
|
- test/dummy/public/404.html
|
112
107
|
homepage: https://github.com/oelmekki/activerecord_any_of
|
113
108
|
licenses: []
|
109
|
+
metadata: {}
|
114
110
|
post_install_message:
|
115
111
|
rdoc_options: []
|
116
112
|
require_paths:
|
117
113
|
- lib
|
118
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
-
none: false
|
120
115
|
requirements:
|
121
|
-
- -
|
116
|
+
- - '>='
|
122
117
|
- !ruby/object:Gem::Version
|
123
118
|
version: '0'
|
124
|
-
segments:
|
125
|
-
- 0
|
126
|
-
hash: 720996038142532507
|
127
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
-
none: false
|
129
120
|
requirements:
|
130
|
-
- -
|
121
|
+
- - '>='
|
131
122
|
- !ruby/object:Gem::Version
|
132
123
|
version: '0'
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
hash: 720996038142532507
|
136
124
|
requirements: []
|
137
125
|
rubyforge_project:
|
138
|
-
rubygems_version:
|
126
|
+
rubygems_version: 2.0.3
|
139
127
|
signing_key:
|
140
|
-
specification_version:
|
128
|
+
specification_version: 4
|
141
129
|
summary: Mongoid's any_of like implementation for activerecord
|
142
130
|
test_files:
|
143
131
|
- test/fixtures/authors.yml
|