activerecord 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

Files changed (70) hide show
  1. data/CHANGELOG +8 -1
  2. data/Rakefile +32 -15
  3. data/examples/performance.rb +162 -0
  4. data/lib/active_record/associations.rb +37 -5
  5. data/lib/active_record/associations/association_collection.rb +1 -0
  6. data/lib/active_record/associations/has_and_belongs_to_many_association.rb +16 -0
  7. data/lib/active_record/associations/has_many_association.rb +1 -0
  8. data/lib/active_record/associations/has_many_through_association.rb +13 -3
  9. data/lib/active_record/associations/has_one_through_association.rb +8 -2
  10. data/lib/active_record/autosave_association.rb +4 -3
  11. data/lib/active_record/base.rb +18 -10
  12. data/lib/active_record/calculations.rb +2 -0
  13. data/lib/active_record/connection_adapters/abstract/schema_definitions.rb +16 -2
  14. data/lib/active_record/connection_adapters/abstract/schema_statements.rb +2 -2
  15. data/lib/active_record/connection_adapters/abstract_adapter.rb +7 -0
  16. data/lib/active_record/connection_adapters/mysql_adapter.rb +17 -8
  17. data/lib/active_record/connection_adapters/postgresql_adapter.rb +32 -13
  18. data/lib/active_record/connection_adapters/sqlite_adapter.rb +12 -0
  19. data/lib/active_record/dirty.rb +1 -1
  20. data/lib/active_record/fixtures.rb +9 -7
  21. data/lib/active_record/i18n_interpolation_deprecation.rb +1 -1
  22. data/lib/active_record/locale/en.yml +4 -0
  23. data/lib/active_record/named_scope.rb +1 -6
  24. data/lib/active_record/reflection.rb +1 -1
  25. data/lib/active_record/schema_dumper.rb +1 -2
  26. data/lib/active_record/serializers/json_serializer.rb +5 -3
  27. data/lib/active_record/serializers/xml_serializer.rb +6 -2
  28. data/lib/active_record/validations.rb +148 -79
  29. data/lib/active_record/version.rb +1 -1
  30. data/test/cases/adapter_test.rb +12 -0
  31. data/test/cases/associations/belongs_to_associations_test.rb +0 -18
  32. data/test/cases/associations/eager_load_nested_include_test.rb +5 -5
  33. data/test/cases/associations/habtm_join_table_test.rb +56 -0
  34. data/test/cases/associations/has_many_associations_test.rb +56 -2
  35. data/test/cases/associations/has_many_through_associations_test.rb +46 -1
  36. data/test/cases/associations/has_one_through_associations_test.rb +10 -0
  37. data/test/cases/associations/join_model_test.rb +4 -4
  38. data/test/cases/base_test.rb +49 -4
  39. data/test/cases/calculations_test.rb +6 -0
  40. data/test/cases/column_definition_test.rb +34 -0
  41. data/test/cases/dirty_test.rb +10 -0
  42. data/test/cases/finder_test.rb +15 -50
  43. data/test/cases/fixtures_test.rb +1 -1
  44. data/test/cases/i18n_test.rb +5 -0
  45. data/test/cases/method_scoping_test.rb +1 -1
  46. data/test/cases/migration_test.rb +39 -11
  47. data/test/cases/modules_test.rb +42 -0
  48. data/test/cases/named_scope_test.rb +6 -4
  49. data/test/cases/pk_test.rb +18 -0
  50. data/test/cases/reflection_test.rb +2 -2
  51. data/test/cases/schema_dumper_test.rb +19 -1
  52. data/test/cases/validations_i18n_test.rb +656 -624
  53. data/test/cases/validations_test.rb +12 -2
  54. data/test/cases/xml_serialization_test.rb +20 -0
  55. data/test/fixtures/fixture_database.sqlite +0 -0
  56. data/test/fixtures/fixture_database.sqlite3 +0 -0
  57. data/test/fixtures/fixture_database_2.sqlite +0 -0
  58. data/test/fixtures/fixture_database_2.sqlite3 +0 -0
  59. data/test/fixtures/posts.yml +3 -0
  60. data/test/models/author.rb +1 -0
  61. data/test/models/comment.rb +5 -1
  62. data/test/models/company.rb +2 -0
  63. data/test/models/company_in_module.rb +1 -1
  64. data/test/models/contract.rb +5 -0
  65. data/test/models/organization.rb +2 -0
  66. data/test/models/topic.rb +0 -2
  67. data/test/schema/postgresql_specific_schema.rb +13 -2
  68. data/test/schema/schema.rb +4 -0
  69. metadata +12 -54
  70. data/test/debug.log +0 -415
@@ -345,13 +345,13 @@ class ValidationsTest < ActiveRecord::TestCase
345
345
  def test_validate_uniqueness
346
346
  Topic.validates_uniqueness_of(:title)
347
347
 
348
- t = Topic.new("title" => "I'm unique!")
348
+ t = Topic.new("title" => "I'm uniqué!")
349
349
  assert t.save, "Should save t as unique"
350
350
 
351
351
  t.content = "Remaining unique"
352
352
  assert t.save, "Should still save t as unique"
353
353
 
354
- t2 = Topic.new("title" => "I'm unique!")
354
+ t2 = Topic.new("title" => "I'm uniqué!")
355
355
  assert !t2.valid?, "Shouldn't be valid"
356
356
  assert !t2.save, "Shouldn't save t2 as unique"
357
357
  assert_equal "has already been taken", t2.errors.on(:title)
@@ -539,6 +539,16 @@ class ValidationsTest < ActiveRecord::TestCase
539
539
  assert !e2.valid?, "Created an event whose title, with limit taken into account, is not unique"
540
540
  end
541
541
 
542
+ def test_validate_uniqueness_with_limit_and_utf8
543
+ with_kcode('UTF8') do
544
+ # Event.title is limited to 5 characters
545
+ e1 = Event.create(:title => "一二三四五")
546
+ assert e1.valid?, "Could not create an event with a unique, 5 character title"
547
+ e2 = Event.create(:title => "一二三四五六七八")
548
+ assert !e2.valid?, "Created an event whose title, with limit taken into account, is not unique"
549
+ end
550
+ end
551
+
542
552
  def test_validate_straight_inheritance_uniqueness
543
553
  w1 = IneptWizard.create(:name => "Rincewind", :city => "Ankh-Morpork")
544
554
  assert w1.valid?, "Saving w1"
@@ -4,6 +4,7 @@ require 'models/post'
4
4
  require 'models/author'
5
5
  require 'models/tagging'
6
6
  require 'models/comment'
7
+ require 'models/company_in_module'
7
8
 
8
9
  class XmlSerializationTest < ActiveRecord::TestCase
9
10
  def test_should_serialize_default_root
@@ -129,6 +130,25 @@ class NilXmlSerializationTest < ActiveRecord::TestCase
129
130
  end
130
131
  end
131
132
 
133
+ class DatabaseConnectedXmlModuleSerializationTest < ActiveRecord::TestCase
134
+
135
+ fixtures :projects, :developers, :developers_projects
136
+
137
+ def test_module
138
+ project = MyApplication::Business::Project.find :first
139
+ xml = project.to_xml
140
+ assert_match %r{<my-application-business-project>}, xml
141
+ assert_match %r{</my-application-business-project>}, xml
142
+ end
143
+
144
+ def test_module_with_include
145
+ project = MyApplication::Business::Project.find :first
146
+ xml = project.to_xml :include => :developers
147
+ assert_match %r{<developer type="MyApplication::Business::Developer">}, xml
148
+ assert_match %r{</developer>}, xml
149
+ end
150
+ end
151
+
132
152
  class DatabaseConnectedXmlSerializationTest < ActiveRecord::TestCase
133
153
  fixtures :authors, :posts
134
154
  # to_xml used to mess with the hash the user provided which
@@ -4,6 +4,7 @@ welcome:
4
4
  title: Welcome to the weblog
5
5
  body: Such a lovely day
6
6
  comments_count: 2
7
+ taggings_count: 1
7
8
  type: Post
8
9
 
9
10
  thinking:
@@ -11,6 +12,8 @@ thinking:
11
12
  author_id: 1
12
13
  title: So I was thinking
13
14
  body: Like I hopefully always am
15
+ comments_count: 1
16
+ taggings_count: 1
14
17
  type: SpecialPost
15
18
 
16
19
  authorless:
@@ -1,5 +1,6 @@
1
1
  class Author < ActiveRecord::Base
2
2
  has_many :posts
3
+ has_many :very_special_comments, :through => :posts
3
4
  has_many :posts_with_comments, :include => :comments, :class_name => "Post"
4
5
  has_many :popular_grouped_posts, :include => :comments, :class_name => "Post", :group => "type", :having => "SUM(comments_count) > 1", :select => "type"
5
6
  has_many :posts_with_comments_sorted_by_comment_id, :include => :comments, :class_name => "Post", :order => 'comments.id'
@@ -1,6 +1,10 @@
1
1
  class Comment < ActiveRecord::Base
2
2
  named_scope :containing_the_letter_e, :conditions => "comments.body LIKE '%e%'"
3
-
3
+ named_scope :for_first_post, :conditions => { :post_id => 1 }
4
+ named_scope :for_first_author,
5
+ :joins => :post,
6
+ :conditions => { "posts.author_id" => 1 }
7
+
4
8
  belongs_to :post, :counter_cache => true
5
9
 
6
10
  def self.what_are_you
@@ -9,6 +9,8 @@ class Company < AbstractCompany
9
9
  validates_presence_of :name
10
10
 
11
11
  has_one :dummy_account, :foreign_key => "firm_id", :class_name => "Account"
12
+ has_many :contracts
13
+ has_many :developers, :through => :contracts
12
14
 
13
15
  def arbitrary_method
14
16
  "I am Jack's profound disappointment"
@@ -11,7 +11,7 @@ module MyApplication
11
11
  has_many :clients_like_ms, :conditions => "name = 'Microsoft'", :class_name => "Client", :order => "id"
12
12
  has_many :clients_using_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}'
13
13
 
14
- has_one :account, :dependent => :destroy
14
+ has_one :account, :class_name => 'MyApplication::Billing::Account', :dependent => :destroy
15
15
  end
16
16
 
17
17
  class Client < Company
@@ -0,0 +1,5 @@
1
+ class Contract < ActiveRecord::Base
2
+ belongs_to :company
3
+ belongs_to :developer
4
+ end
5
+
@@ -1,4 +1,6 @@
1
1
  class Organization < ActiveRecord::Base
2
2
  has_many :member_details
3
3
  has_many :members, :through => :member_details
4
+
5
+ named_scope :clubs, { :from => 'clubs' }
4
6
  end
@@ -35,8 +35,6 @@ class Topic < ActiveRecord::Base
35
35
  end
36
36
  named_scope :named_extension, :extend => NamedExtension
37
37
  named_scope :multiple_extensions, :extend => [MultipleExtensionTwo, MultipleExtensionOne]
38
-
39
- named_scope :by_rejected_ids, lambda {{ :conditions => { :id => all(:conditions => {:approved => false}).map(&:id) } }}
40
38
 
41
39
  has_many :replies, :dependent => :destroy, :foreign_key => "parent_id"
42
40
  has_many :replies_with_primary_key, :class_name => "Reply", :dependent => :destroy, :primary_key => "title", :foreign_key => "parent_title"
@@ -1,7 +1,7 @@
1
1
  ActiveRecord::Schema.define do
2
2
 
3
3
  %w(postgresql_arrays postgresql_moneys postgresql_numbers postgresql_times postgresql_network_addresses postgresql_bit_strings
4
- postgresql_oids defaults geometrics).each do |table_name|
4
+ postgresql_oids postgresql_xml_data_type defaults geometrics).each do |table_name|
5
5
  execute "DROP TABLE IF EXISTS #{quote_table_name table_name}"
6
6
  end
7
7
 
@@ -100,4 +100,15 @@ _SQL
100
100
  obj_id OID
101
101
  );
102
102
  _SQL
103
- end
103
+
104
+ begin
105
+ execute <<_SQL
106
+ CREATE TABLE postgresql_xml_data_type (
107
+ id SERIAL PRIMARY KEY,
108
+ data xml
109
+ );
110
+ _SQL
111
+ rescue #This version of PostgreSQL either has no XML support or is was not compiled with XML support: skipping table
112
+ end
113
+ end
114
+
@@ -125,6 +125,10 @@ ActiveRecord::Schema.define do
125
125
  t.integer :extendedWarranty, :null => false
126
126
  end
127
127
 
128
+ create_table :contracts, :force => true do |t|
129
+ t.integer :developer_id
130
+ t.integer :company_id
131
+ end
128
132
 
129
133
  create_table :customers, :force => true do |t|
130
134
  t.string :name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ autorequire: active_record
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-20 00:00:00 -05:00
12
+ date: 2009-09-04 00:00:00 +12:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.3
23
+ version: 2.3.4
24
24
  version:
25
25
  description: Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.
26
26
  email: david@loudthinking.com
@@ -36,10 +36,8 @@ files:
36
36
  - README
37
37
  - RUNNING_UNIT_TESTS
38
38
  - CHANGELOG
39
- - lib/active_record
40
39
  - lib/active_record/aggregations.rb
41
40
  - lib/active_record/association_preload.rb
42
- - lib/active_record/associations
43
41
  - lib/active_record/associations/association_collection.rb
44
42
  - lib/active_record/associations/association_proxy.rb
45
43
  - lib/active_record/associations/belongs_to_association.rb
@@ -56,8 +54,6 @@ files:
56
54
  - lib/active_record/batches.rb
57
55
  - lib/active_record/calculations.rb
58
56
  - lib/active_record/callbacks.rb
59
- - lib/active_record/connection_adapters
60
- - lib/active_record/connection_adapters/abstract
61
57
  - lib/active_record/connection_adapters/abstract/connection_pool.rb
62
58
  - lib/active_record/connection_adapters/abstract/connection_specification.rb
63
59
  - lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -75,9 +71,7 @@ files:
75
71
  - lib/active_record/dynamic_scope_match.rb
76
72
  - lib/active_record/fixtures.rb
77
73
  - lib/active_record/i18n_interpolation_deprecation.rb
78
- - lib/active_record/locale
79
74
  - lib/active_record/locale/en.yml
80
- - lib/active_record/locking
81
75
  - lib/active_record/locking/optimistic.rb
82
76
  - lib/active_record/locking/pessimistic.rb
83
77
  - lib/active_record/migration.rb
@@ -89,7 +83,6 @@ files:
89
83
  - lib/active_record/schema.rb
90
84
  - lib/active_record/schema_dumper.rb
91
85
  - lib/active_record/serialization.rb
92
- - lib/active_record/serializers
93
86
  - lib/active_record/serializers/json_serializer.rb
94
87
  - lib/active_record/serializers/xml_serializer.rb
95
88
  - lib/active_record/session_store.rb
@@ -100,17 +93,14 @@ files:
100
93
  - lib/active_record/version.rb
101
94
  - lib/active_record.rb
102
95
  - lib/activerecord.rb
103
- - test/assets
104
96
  - test/assets/example.log
105
97
  - test/assets/flowers.jpg
106
- - test/cases
107
98
  - test/cases/aaa_create_tables_test.rb
108
99
  - test/cases/active_schema_test_mysql.rb
109
100
  - test/cases/active_schema_test_postgresql.rb
110
101
  - test/cases/adapter_test.rb
111
102
  - test/cases/aggregations_test.rb
112
103
  - test/cases/ar_schema_test.rb
113
- - test/cases/associations
114
104
  - test/cases/associations/belongs_to_associations_test.rb
115
105
  - test/cases/associations/callbacks_test.rb
116
106
  - test/cases/associations/cascaded_eager_loading_test.rb
@@ -119,6 +109,7 @@ files:
119
109
  - test/cases/associations/eager_singularization_test.rb
120
110
  - test/cases/associations/eager_test.rb
121
111
  - test/cases/associations/extension_test.rb
112
+ - test/cases/associations/habtm_join_table_test.rb
122
113
  - test/cases/associations/has_and_belongs_to_many_associations_test.rb
123
114
  - test/cases/associations/has_many_associations_test.rb
124
115
  - test/cases/associations/has_many_through_associations_test.rb
@@ -188,44 +179,24 @@ files:
188
179
  - test/cases/validations_test.rb
189
180
  - test/cases/xml_serialization_test.rb
190
181
  - test/config.rb
191
- - test/connections
192
- - test/connections/jdbc_jdbcderby
193
182
  - test/connections/jdbc_jdbcderby/connection.rb
194
- - test/connections/jdbc_jdbch2
195
183
  - test/connections/jdbc_jdbch2/connection.rb
196
- - test/connections/jdbc_jdbchsqldb
197
184
  - test/connections/jdbc_jdbchsqldb/connection.rb
198
- - test/connections/jdbc_jdbcmysql
199
185
  - test/connections/jdbc_jdbcmysql/connection.rb
200
- - test/connections/jdbc_jdbcpostgresql
201
186
  - test/connections/jdbc_jdbcpostgresql/connection.rb
202
- - test/connections/jdbc_jdbcsqlite3
203
187
  - test/connections/jdbc_jdbcsqlite3/connection.rb
204
- - test/connections/native_db2
205
188
  - test/connections/native_db2/connection.rb
206
- - test/connections/native_firebird
207
189
  - test/connections/native_firebird/connection.rb
208
- - test/connections/native_frontbase
209
190
  - test/connections/native_frontbase/connection.rb
210
- - test/connections/native_mysql
211
191
  - test/connections/native_mysql/connection.rb
212
- - test/connections/native_openbase
213
192
  - test/connections/native_openbase/connection.rb
214
- - test/connections/native_oracle
215
193
  - test/connections/native_oracle/connection.rb
216
- - test/connections/native_postgresql
217
194
  - test/connections/native_postgresql/connection.rb
218
- - test/connections/native_sqlite
219
195
  - test/connections/native_sqlite/connection.rb
220
- - test/connections/native_sqlite3
221
196
  - test/connections/native_sqlite3/connection.rb
222
197
  - test/connections/native_sqlite3/in_memory_connection.rb
223
- - test/connections/native_sybase
224
198
  - test/connections/native_sybase/connection.rb
225
- - test/debug.log
226
- - test/fixtures
227
199
  - test/fixtures/accounts.yml
228
- - test/fixtures/all
229
200
  - test/fixtures/all/developers.yml
230
201
  - test/fixtures/all/people.csv
231
202
  - test/fixtures/all/tasks.yml
@@ -234,9 +205,7 @@ files:
234
205
  - test/fixtures/authors.yml
235
206
  - test/fixtures/binaries.yml
236
207
  - test/fixtures/books.yml
237
- - test/fixtures/categories
238
208
  - test/fixtures/categories/special_categories.yml
239
- - test/fixtures/categories/subsubdir
240
209
  - test/fixtures/categories/subsubdir/arbitrary_filename.yml
241
210
  - test/fixtures/categories.yml
242
211
  - test/fixtures/categories_ordered.yml
@@ -252,7 +221,9 @@ files:
252
221
  - test/fixtures/developers_projects.yml
253
222
  - test/fixtures/edges.yml
254
223
  - test/fixtures/entrants.yml
224
+ - test/fixtures/fixture_database.sqlite
255
225
  - test/fixtures/fixture_database.sqlite3
226
+ - test/fixtures/fixture_database_2.sqlite
256
227
  - test/fixtures/fixture_database_2.sqlite3
257
228
  - test/fixtures/fk_test_has_fk.yml
258
229
  - test/fixtures/fk_test_has_pk.yml
@@ -268,10 +239,7 @@ files:
268
239
  - test/fixtures/mixed_case_monkeys.yml
269
240
  - test/fixtures/mixins.yml
270
241
  - test/fixtures/movies.yml
271
- - test/fixtures/naked
272
- - test/fixtures/naked/csv
273
242
  - test/fixtures/naked/csv/accounts.csv
274
- - test/fixtures/naked/yml
275
243
  - test/fixtures/naked/yml/accounts.yml
276
244
  - test/fixtures/naked/yml/companies.yml
277
245
  - test/fixtures/naked/yml/courses.yml
@@ -287,7 +255,6 @@ files:
287
255
  - test/fixtures/projects.yml
288
256
  - test/fixtures/readers.yml
289
257
  - test/fixtures/references.yml
290
- - test/fixtures/reserved_words
291
258
  - test/fixtures/reserved_words/distinct.yml
292
259
  - test/fixtures/reserved_words/distincts_selects.yml
293
260
  - test/fixtures/reserved_words/group.yml
@@ -305,39 +272,27 @@ files:
305
272
  - test/fixtures/treasures.yml
306
273
  - test/fixtures/vertices.yml
307
274
  - test/fixtures/warehouse-things.yml
308
- - test/migrations
309
- - test/migrations/broken
310
275
  - test/migrations/broken/100_migration_that_raises_exception.rb
311
- - test/migrations/decimal
312
276
  - test/migrations/decimal/1_give_me_big_numbers.rb
313
- - test/migrations/duplicate
314
277
  - test/migrations/duplicate/1_people_have_last_names.rb
315
278
  - test/migrations/duplicate/2_we_need_reminders.rb
316
279
  - test/migrations/duplicate/3_foo.rb
317
280
  - test/migrations/duplicate/3_innocent_jointable.rb
318
- - test/migrations/duplicate_names
319
281
  - test/migrations/duplicate_names/20080507052938_chunky.rb
320
282
  - test/migrations/duplicate_names/20080507053028_chunky.rb
321
- - test/migrations/interleaved
322
- - test/migrations/interleaved/pass_1
323
283
  - test/migrations/interleaved/pass_1/3_innocent_jointable.rb
324
- - test/migrations/interleaved/pass_2
325
284
  - test/migrations/interleaved/pass_2/1_people_have_last_names.rb
326
285
  - test/migrations/interleaved/pass_2/3_innocent_jointable.rb
327
- - test/migrations/interleaved/pass_3
328
286
  - test/migrations/interleaved/pass_3/1_people_have_last_names.rb
329
287
  - test/migrations/interleaved/pass_3/2_i_raise_on_down.rb
330
288
  - test/migrations/interleaved/pass_3/3_innocent_jointable.rb
331
- - test/migrations/missing
332
289
  - test/migrations/missing/1000_people_have_middle_names.rb
333
290
  - test/migrations/missing/1_people_have_last_names.rb
334
291
  - test/migrations/missing/3_we_need_reminders.rb
335
292
  - test/migrations/missing/4_innocent_jointable.rb
336
- - test/migrations/valid
337
293
  - test/migrations/valid/1_people_have_last_names.rb
338
294
  - test/migrations/valid/2_we_need_reminders.rb
339
295
  - test/migrations/valid/3_innocent_jointable.rb
340
- - test/models
341
296
  - test/models/author.rb
342
297
  - test/models/auto_id.rb
343
298
  - test/models/binary.rb
@@ -353,6 +308,7 @@ files:
353
308
  - test/models/company_in_module.rb
354
309
  - test/models/computer.rb
355
310
  - test/models/contact.rb
311
+ - test/models/contract.rb
356
312
  - test/models/course.rb
357
313
  - test/models/customer.rb
358
314
  - test/models/default.rb
@@ -402,15 +358,17 @@ files:
402
358
  - test/models/treasure.rb
403
359
  - test/models/vertex.rb
404
360
  - test/models/warehouse_thing.rb
405
- - test/schema
406
361
  - test/schema/mysql_specific_schema.rb
407
362
  - test/schema/postgresql_specific_schema.rb
408
363
  - test/schema/schema.rb
409
364
  - test/schema/schema2.rb
410
365
  - test/schema/sqlite_specific_schema.rb
411
366
  - examples/associations.png
367
+ - examples/performance.rb
412
368
  has_rdoc: true
413
369
  homepage: http://www.rubyonrails.org
370
+ licenses: []
371
+
414
372
  post_install_message:
415
373
  rdoc_options:
416
374
  - --main
@@ -432,9 +390,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
390
  requirements: []
433
391
 
434
392
  rubyforge_project: activerecord
435
- rubygems_version: 1.3.1
393
+ rubygems_version: 1.3.2
436
394
  signing_key:
437
- specification_version: 2
395
+ specification_version: 3
438
396
  summary: Implements the ActiveRecord pattern for ORM.
439
397
  test_files: []
440
398
 
@@ -1,415 +0,0 @@
1
- # Logfile created on Mon Feb 23 11:47:55 +0100 2009 by /
2
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
3
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
4
- Post Load (1.1ms) SELECT * FROM "posts" ORDER BY id asc
5
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
6
- SQL (2.8ms)  SELECT name
7
- FROM sqlite_master
8
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
9
- 
10
- SQL (2.5ms)  SELECT name
11
- FROM sqlite_master
12
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13
- 
14
- SQL (2.4ms)  SELECT name
15
- FROM sqlite_master
16
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
17
- 
18
- SQL (2.4ms)  SELECT name
19
- FROM sqlite_master
20
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
21
- 
22
- SQL (2.3ms)  SELECT name
23
- FROM sqlite_master
24
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
25
- 
26
- SQL (2.0ms)  SELECT name
27
- FROM sqlite_master
28
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
29
- 
30
- SQL (2.0ms)  SELECT name
31
- FROM sqlite_master
32
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
33
- 
34
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
35
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
36
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
37
- SQL (0.2ms) SELECT count(*) AS count_all FROM "posts" 
38
- SQL (2.0ms)  SELECT name
39
- FROM sqlite_master
40
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
41
- 
42
- Post Load (1.2ms) SELECT * FROM "posts" ORDER BY id asc
43
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
44
- Post Load (0.4ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 2
45
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
46
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
47
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
48
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
49
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 2
50
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
51
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
52
- Post Load (0.9ms) SELECT * FROM "posts" ORDER BY id asc
53
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
54
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 2
55
- Post Load (0.9ms) SELECT * FROM "posts" ORDER BY id asc
56
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
57
- Post Load (1.2ms) SELECT * FROM "posts" ORDER BY id asc
58
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
59
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 2
60
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
61
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
62
- Post Load (0.9ms) SELECT * FROM "posts" ORDER BY id asc
63
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
64
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
65
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
66
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
67
- Post Load (1.1ms) SELECT * FROM "posts" ORDER BY id asc
68
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
69
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
70
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
71
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
72
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
73
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
74
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
75
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
76
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
77
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
78
- SQL (0.2ms) SELECT count(*) AS count_all FROM "posts" 
79
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
80
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
81
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
82
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
83
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
84
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
85
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
86
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
87
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
88
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
89
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
90
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
91
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
92
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
93
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
94
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
95
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
96
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
97
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
98
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
99
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
100
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
101
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
102
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
103
- Post Load (0.9ms) SELECT * FROM "posts" ORDER BY id asc
104
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
105
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
106
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
107
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
108
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
109
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
110
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
111
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
112
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
113
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
114
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
115
- SQL (2.0ms)  SELECT name
116
- FROM sqlite_master
117
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
118
- 
119
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
120
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
121
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
122
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
123
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
124
- SQL (2.3ms)  SELECT name
125
- FROM sqlite_master
126
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
127
- 
128
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
129
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
130
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
131
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
132
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
133
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
134
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
135
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
136
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
137
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
138
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
139
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
140
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
141
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
142
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
143
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
144
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
145
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
146
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
147
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
148
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
149
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
150
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
151
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
152
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 2
153
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 2
154
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 2
155
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 2
156
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 2
157
- Post Load (1.1ms) SELECT * FROM "posts" ORDER BY id asc
158
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
159
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
160
- Post Load (0.4ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 2
161
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 2
162
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 2
163
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 2
164
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 2
165
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
166
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
167
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
168
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
169
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
170
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
171
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
172
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
173
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
174
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
175
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
176
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
177
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
178
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
179
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
180
- Post Load (0.6ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
181
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
182
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
183
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
184
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
185
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
186
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
187
- Post Load (0.8ms) SELECT * FROM "posts" ORDER BY id asc
188
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
189
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
190
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
191
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
192
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
193
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
194
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
195
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
196
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
197
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
198
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
199
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
200
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
201
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
202
- Post Load (1.1ms) SELECT * FROM "posts" ORDER BY id asc
203
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
204
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
205
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
206
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
207
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
208
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
209
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
210
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
211
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
212
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
213
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
214
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
215
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
216
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
217
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
218
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
219
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
220
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
221
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
222
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
223
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
224
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
225
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
226
- Post Load (0.4ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
227
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
228
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
229
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
230
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
231
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
232
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
233
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
234
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
235
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
236
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
237
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
238
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
239
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
240
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
241
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
242
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
243
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
244
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
245
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
246
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
247
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
248
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
249
- Post Load (0.3ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
250
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
251
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
252
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
253
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
254
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
255
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
256
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
257
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 2) ORDER BY posts.id ASC LIMIT 1
258
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
259
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
260
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
261
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
262
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
263
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
264
- Post Load (1.0ms) SELECT * FROM "posts" ORDER BY id asc
265
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
266
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
267
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
268
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
269
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
270
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
271
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
272
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
273
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
274
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
275
- Post Load (0.7ms) SELECT * FROM "posts" ORDER BY id asc
276
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
277
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
278
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
279
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
280
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
281
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
282
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 0) ORDER BY posts.id ASC LIMIT 1
283
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 1) ORDER BY posts.id ASC LIMIT 1
284
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
285
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
286
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
287
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
288
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
289
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
290
- Post Load (0.6ms) SELECT * FROM "posts" ORDER BY id asc
291
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
292
- SQL (0.1ms) SELECT count(*) AS count_all FROM "posts" 
293
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id >= 2) ORDER BY posts.id ASC LIMIT 1
294
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 2) ORDER BY posts.id ASC LIMIT 1
295
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 3) ORDER BY posts.id ASC LIMIT 1
296
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 4) ORDER BY posts.id ASC LIMIT 1
297
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 5) ORDER BY posts.id ASC LIMIT 1
298
- Post Load (0.2ms) SELECT * FROM "posts" WHERE (posts.id > 6) ORDER BY posts.id ASC LIMIT 1
299
- Post Load (0.1ms) SELECT * FROM "posts" WHERE (posts.id > 7) ORDER BY posts.id ASC LIMIT 1
300
- Ship Load (0.2ms) SELECT * FROM "ships" LIMIT 1
301
- Ship Update (0.3ms) UPDATE "ships" SET "name" = 'Maersk Alabama' WHERE "id" = 2
302
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
303
- Developer Update (0.3ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 16:45:18' WHERE "id" = 1
304
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
305
- Developer Update (0.2ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 16:45:50' WHERE "id" = 1
306
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
307
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
308
- Developer Update (0.3ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 16:47:14' WHERE "id" = 1
309
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
310
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
311
- Developer Update (0.2ms) UPDATE "developers" SET "updated_at" = '2009-04-16 16:47:14' WHERE "id" = 1
312
- SQL (4.1ms)  SELECT name
313
- FROM sqlite_master
314
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
315
- 
316
- Developer Load (0.4ms) SELECT * FROM "developers" LIMIT 1
317
- Developer Update (0.3ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 17:06:16' WHERE "id" = 1
318
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
319
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
320
- Developer Update (0.2ms) UPDATE "developers" SET "created_at" = '2009-04-16 17:06:16', "updated_at" = '2009-04-16 17:06:16' WHERE "id" = 1
321
- Developer Load (0.5ms) SELECT * FROM "developers" LIMIT 1
322
- Developer Update (0.4ms) UPDATE "developers" SET "updated_at" = '2009-04-16 17:06:16' WHERE "id" = 1
323
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
324
- Developer Update (0.3ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 17:06:30' WHERE "id" = 1
325
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
326
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
327
- Developer Update (0.2ms) UPDATE "developers" SET "created_at" = '2009-04-16 17:06:30', "updated_at" = '2009-04-16 17:06:30' WHERE "id" = 1
328
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
329
- Developer Update (0.4ms) UPDATE "developers" SET "updated_at" = '2009-04-16 17:06:30' WHERE "id" = 1
330
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
331
- Developer Update (0.3ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 17:07:01' WHERE "id" = 1
332
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
333
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
334
- Developer Update (0.3ms) UPDATE "developers" SET "created_at" = '2009-04-16 17:07:01', "updated_at" = '2009-04-16 17:07:01' WHERE "id" = 1
335
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
336
- Developer Update (0.2ms) UPDATE "developers" SET "updated_at" = '2009-04-16 17:07:01' WHERE "id" = 1
337
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
338
- Developer Update (0.2ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 17:16:43' WHERE "id" = 1
339
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
340
- Pet Load (0.1ms) SELECT * FROM "pets" LIMIT 1
341
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
342
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
343
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
344
- Developer Update (0.5ms) UPDATE "developers" SET "created_at" = '2009-04-16 17:16:43', "updated_at" = '2009-04-16 17:16:43' WHERE "id" = 1
345
- Developer Load (0.5ms) SELECT * FROM "developers" LIMIT 1
346
- Developer Update (0.3ms) UPDATE "developers" SET "updated_at" = '2009-04-16 17:16:43' WHERE "id" = 1
347
- Developer Load (0.4ms) SELECT * FROM "developers" LIMIT 1
348
- Developer Update (0.3ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 17:19:07' WHERE "id" = 1
349
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
350
- Pet Load (0.1ms) SELECT * FROM "pets" LIMIT 1
351
- Owner Load (0.3ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
352
- Pet Update (0.2ms) UPDATE "pets" SET "name" = 'Fluffy the Third' WHERE "pet_id" = 1
353
- Owner Update (0.2ms) UPDATE "owners" SET "happy_at" = '2009-04-16 17:19:07', "updated_at" = '2009-04-16 17:19:07' WHERE "owner_id" = 1
354
- Owner Update (0.1ms) UPDATE "owners" SET "happy_at" = '2009-04-16 17:19:07', "updated_at" = '2009-04-16 17:19:07' WHERE "owner_id" = 1
355
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
356
- Pet Load (0.1ms) SELECT * FROM "pets" LIMIT 1
357
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
358
- Pet Update (0.2ms) UPDATE "pets" SET "name" = 'Fluffy the Third' WHERE "pet_id" = 1
359
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:19:07' WHERE "owner_id" = 1
360
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:19:07' WHERE "owner_id" = 1
361
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:19:07' WHERE "owner_id" = 1
362
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
363
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
364
- Developer Update (0.3ms) UPDATE "developers" SET "created_at" = '2009-04-16 17:19:07', "updated_at" = '2009-04-16 17:19:07' WHERE "id" = 1
365
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
366
- Developer Update (0.3ms) UPDATE "developers" SET "updated_at" = '2009-04-16 17:19:07' WHERE "id" = 1
367
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
368
- Pet Load (0.1ms) SELECT * FROM "pets" LIMIT 1
369
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
370
- Pet Destroy (0.2ms) DELETE FROM "pets" WHERE "pet_id" = 1
371
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
372
- Developer Update (0.2ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 17:20:53' WHERE "id" = 1
373
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
374
- Pet Load (0.1ms) SELECT * FROM "pets" LIMIT 1
375
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
376
- Pet Update (0.2ms) UPDATE "pets" SET "name" = 'Fluffy the Third' WHERE "pet_id" = 1
377
- Owner Update (0.1ms) UPDATE "owners" SET "happy_at" = '2009-04-16 17:20:53', "updated_at" = '2009-04-16 17:20:53' WHERE "owner_id" = 1
378
- Owner Update (0.1ms) UPDATE "owners" SET "happy_at" = '2009-04-16 17:20:53', "updated_at" = '2009-04-16 17:20:53' WHERE "owner_id" = 1
379
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
380
- Pet Load (0.1ms) SELECT * FROM "pets" LIMIT 1
381
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
382
- Pet Update (0.2ms) UPDATE "pets" SET "name" = 'Fluffy the Third' WHERE "pet_id" = 1
383
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:20:53' WHERE "owner_id" = 1
384
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:20:53' WHERE "owner_id" = 1
385
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:20:53' WHERE "owner_id" = 1
386
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
387
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
388
- Developer Update (0.2ms) UPDATE "developers" SET "created_at" = '2009-04-16 17:20:53', "updated_at" = '2009-04-16 17:20:53' WHERE "id" = 1
389
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
390
- Developer Update (0.2ms) UPDATE "developers" SET "updated_at" = '2009-04-16 17:20:53' WHERE "id" = 1
391
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
392
- Pet Load (0.2ms) SELECT * FROM "pets" LIMIT 1
393
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
394
- Pet Destroy (0.3ms) DELETE FROM "pets" WHERE "pet_id" = 1
395
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:21:31' WHERE "owner_id" = 1
396
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
397
- Developer Update (0.3ms) UPDATE "developers" SET "name" = 'Jack Bauer', "updated_at" = '2009-04-16 17:21:31' WHERE "id" = 1
398
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
399
- Pet Load (0.1ms) SELECT * FROM "pets" LIMIT 1
400
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
401
- Pet Update (0.2ms) UPDATE "pets" SET "name" = 'Fluffy the Third' WHERE "pet_id" = 1
402
- Owner Update (0.1ms) UPDATE "owners" SET "happy_at" = '2009-04-16 17:21:31', "updated_at" = '2009-04-16 17:21:31' WHERE "owner_id" = 1
403
- Owner Update (0.1ms) UPDATE "owners" SET "happy_at" = '2009-04-16 17:21:31', "updated_at" = '2009-04-16 17:21:31' WHERE "owner_id" = 1
404
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
405
- Pet Load (0.2ms) SELECT * FROM "pets" LIMIT 1
406
- Owner Load (0.1ms) SELECT * FROM "owners" WHERE ("owners"."owner_id" = 1) 
407
- Pet Update (0.3ms) UPDATE "pets" SET "name" = 'Fluffy the Third' WHERE "pet_id" = 1
408
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:21:31' WHERE "owner_id" = 1
409
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:21:31' WHERE "owner_id" = 1
410
- Owner Update (0.1ms) UPDATE "owners" SET "updated_at" = '2009-04-16 17:21:31' WHERE "owner_id" = 1
411
- Developer Load (0.3ms) SELECT * FROM "developers" LIMIT 1
412
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
413
- Developer Update (0.2ms) UPDATE "developers" SET "created_at" = '2009-04-16 17:21:31', "updated_at" = '2009-04-16 17:21:31' WHERE "id" = 1
414
- Developer Load (0.2ms) SELECT * FROM "developers" LIMIT 1
415
- Developer Update (0.2ms) UPDATE "developers" SET "updated_at" = '2009-04-16 17:21:31' WHERE "id" = 1