data_fabric 1.2.5 → 1.2.7

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.
Files changed (78) hide show
  1. data/CHANGELOG +10 -0
  2. data/README.rdoc +1 -0
  3. data/Rakefile +13 -11
  4. data/{example22 → example23}/Rakefile +0 -0
  5. data/{example22 → example23}/app/controllers/accounts_controller.rb +0 -0
  6. data/{example22/app/controllers/application.rb → example23/app/controllers/application_controller.rb} +0 -0
  7. data/{example22 → example23}/app/controllers/figments_controller.rb +0 -0
  8. data/{example22 → example23}/app/helpers/application_helper.rb +0 -0
  9. data/{example22 → example23}/app/models/account.rb +0 -0
  10. data/{example22 → example23}/app/models/figment.rb +0 -0
  11. data/{example22 → example23}/app/views/accounts/index.html.erb +0 -0
  12. data/{example22 → example23}/app/views/layouts/application.html.erb +0 -0
  13. data/{example22 → example23}/config/boot.rb +0 -0
  14. data/{example22 → example23}/config/database.yml +0 -0
  15. data/{example22 → example23}/config/environment.rb +2 -2
  16. data/{example22 → example23}/config/environments/development.rb +0 -0
  17. data/{example22 → example23}/config/environments/production.rb +0 -0
  18. data/{example22 → example23}/config/environments/test.rb +0 -0
  19. data/{example22 → example23}/config/initializers/inflections.rb +0 -0
  20. data/{example22 → example23}/config/initializers/mime_types.rb +0 -0
  21. data/{example22 → example23}/config/initializers/new_rails_defaults.rb +0 -0
  22. data/{example22 → example23}/config/locales/en.yml +0 -0
  23. data/{example22 → example23}/config/routes.rb +0 -0
  24. data/example23/db/development.sqlite3 +0 -0
  25. data/{example22 → example23}/db/migrate/20080702154628_create_accounts.rb +0 -0
  26. data/{example22 → example23}/db/migrate/20080702154820_create_figments.rb +0 -0
  27. data/example23/db/s0_development.sqlite3 +0 -0
  28. data/example23/db/s0_test.sqlite3 +0 -0
  29. data/example23/db/s1_development.sqlite3 +0 -0
  30. data/example23/db/s1_test.sqlite3 +0 -0
  31. data/example23/db/schema.rb +28 -0
  32. data/example23/db/test.sqlite3 +0 -0
  33. data/example23/log/development.log +295 -0
  34. data/example23/log/test.log +551 -0
  35. data/{example22 → example23}/public/404.html +0 -0
  36. data/{example22 → example23}/public/422.html +0 -0
  37. data/{example22 → example23}/public/500.html +0 -0
  38. data/{example22 → example23}/public/dispatch.cgi +0 -0
  39. data/{example22 → example23}/public/dispatch.fcgi +0 -0
  40. data/{example22 → example23}/public/dispatch.rb +0 -0
  41. data/{example22 → example23}/public/favicon.ico +0 -0
  42. data/{example22 → example23}/public/images/rails.png +0 -0
  43. data/{example22 → example23}/public/index.html +0 -0
  44. data/{example22 → example23}/public/robots.txt +0 -0
  45. data/{example22 → example23}/script/about +0 -0
  46. data/{example22 → example23}/script/console +0 -0
  47. data/{example22 → example23}/script/dbconsole +0 -0
  48. data/{example22 → example23}/script/destroy +0 -0
  49. data/{example22 → example23}/script/generate +0 -0
  50. data/{example22 → example23}/script/performance/benchmarker +0 -0
  51. data/{example22 → example23}/script/performance/profiler +0 -0
  52. data/{example22 → example23}/script/performance/request +0 -0
  53. data/{example22 → example23}/script/plugin +0 -0
  54. data/{example22 → example23}/script/process/inspector +0 -0
  55. data/{example22 → example23}/script/process/reaper +0 -0
  56. data/{example22 → example23}/script/process/spawner +0 -0
  57. data/{example22 → example23}/script/runner +0 -0
  58. data/{example22 → example23}/script/server +0 -0
  59. data/{example22 → example23}/test/fixtures/accounts.yml +0 -0
  60. data/{example22 → example23}/test/functional/accounts_controller_test.rb +0 -0
  61. data/{example22 → example23}/test/integration/account_figments_test.rb +0 -0
  62. data/{example22 → example23}/test/performance/browsing_test.rb +0 -0
  63. data/example23/test/test_helper.rb +3 -0
  64. data/example23/vendor/plugins/data_fabric/init.rb +3 -0
  65. data/example23/vendor/plugins/data_fabric/lib/data_fabric.rb +106 -0
  66. data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar20.rb +133 -0
  67. data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar22.rb +181 -0
  68. data/example23/vendor/plugins/data_fabric/lib/data_fabric/dash.rb +20 -0
  69. data/example23/vendor/plugins/data_fabric/lib/data_fabric/version.rb +7 -0
  70. data/lib/data_fabric/ar22.rb +2 -2
  71. data/lib/data_fabric/version.rb +1 -6
  72. data/test/connection_test.rb +1 -1
  73. data/test/database_test.rb +1 -1
  74. data/test/shard_test.rb +1 -1
  75. data/test/thread_test.rb +1 -1
  76. metadata +134 -126
  77. data/VERSION.yml +0 -4
  78. data/example22/test/test_helper.rb +0 -38
data/CHANGELOG CHANGED
@@ -1,5 +1,15 @@
1
1
  DataFabric changelog
2
2
 
3
+ v1.2.7 - 2010-08-10
4
+
5
+ - NO FUNCTIONAL CHANGES.
6
+ - Fix test suite under Ruby 1.9.2.
7
+ - Update example22 application to example23 and Rails 2.3.
8
+
9
+ v1.2.6 - Never released
10
+
11
+ - STI fixes.
12
+
3
13
  v1.2.5 - 2009-03-28
4
14
 
5
15
  - data_fabric should now work as a gem or plugin.
@@ -88,6 +88,7 @@ FiveRuns:: for paying me to develop this code and allowing its release
88
88
 
89
89
  Mike Perham <mperham@gmail.com>
90
90
  http://mikeperham.com
91
+ http://twitter.com/mperham
91
92
 
92
93
 
93
94
  == LICENSE:
data/Rakefile CHANGED
@@ -1,25 +1,28 @@
1
1
  require 'rubygems'
2
2
 
3
3
  begin
4
+ require './lib/data_fabric/version'
4
5
  require 'jeweler'
5
-
6
6
  Jeweler::Tasks.new do |p|
7
+ p.version = DataFabric::Version::STRING
7
8
  p.authors = ["Mike Perham"]
8
9
  p.email = 'mperham@gmail.com'
9
- p.rubyforge_project = 'fiveruns'
10
10
  p.summary = 'Sharding and replication support for ActiveRecord 2.x'
11
11
  p.homepage = "http://github.com/mperham/data_fabric"
12
12
  p.name = "data_fabric"
13
- p.files = FileList['*.rdoc', 'Rakefile', 'VERSION.yml', 'init.rb', 'CHANGELOG', "{lib,test,rails,example,example22}/**/*", ]
13
+ p.files = FileList['*.rdoc', 'Rakefile', 'init.rb', 'CHANGELOG', "{lib,test,rails,example,example23}/**/*", ]
14
+ p.add_development_dependency 'jeweler'
15
+ p.add_development_dependency 'flexmock'
14
16
  end
15
- rescue LoadError
16
- puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
17
+ rescue LoadError => le
18
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler: #{le.message}"
17
19
  end
18
20
 
19
21
  require 'rake/testtask'
20
22
 
21
23
  Rake::TestTask.new do |t|
22
24
  t.verbose = true
25
+ t.libs << 'test' << 'rails'
23
26
  t.test_files = FileList['test/*_test.rb']
24
27
  end
25
28
 
@@ -28,13 +31,12 @@ task :gemspec => [:clean]
28
31
  task :clean do
29
32
  FileUtils.rm_f Dir['*.gem']
30
33
  FileUtils.rm_f Dir['test/*.db']
31
- FileUtils.rm_rf 'pkg'
32
34
  FileUtils.rm_rf 'coverage'
33
35
  end
34
36
 
35
37
  desc "Install gem locally"
36
38
  task :installer do
37
- sh "sudo gem install data_fabric-*.gem"
39
+ sh "gem install data_fabric-*.gem"
38
40
  end
39
41
 
40
42
  task :gem do
@@ -43,8 +45,8 @@ end
43
45
 
44
46
  desc "Push gem to RubyForge"
45
47
  task :publish => [:clean, :gemspec, :gem, :installer] do
46
- require 'lib/data_fabric/version'
47
- sh "rubyforge add_release fiveruns data_fabric #{DataFabric::Version::STRING} data_fabric-#{DataFabric::Version::STRING}.gem"
48
+ require './lib/data_fabric/version'
49
+ sh "gem push data_fabric-#{DataFabric::Version::STRING}.gem"
48
50
  end
49
51
 
50
52
 
@@ -124,7 +126,7 @@ end
124
126
 
125
127
  # Test coverage
126
128
  begin
127
- gem 'spicycode-rcov' rescue nil
129
+ gem 'rcov' rescue nil
128
130
  require 'rcov/rcovtask'
129
131
 
130
132
  desc "Generate coverage numbers for all locally installed versions of ActiveRecord"
@@ -144,5 +146,5 @@ begin
144
146
  t.rcov_opts = ['--text-report', '--exclude', "test,Library,#{ENV['GEM_HOME']}", '--sort', 'coverage']
145
147
  end
146
148
  rescue LoadError => e
147
- puts 'Test coverage support requires \'gem install spicycode-rcov\''
149
+ puts 'Test coverage support requires \'gem install rcov\''
148
150
  end
File without changes
File without changes
@@ -5,7 +5,7 @@
5
5
  # ENV['RAILS_ENV'] ||= 'production'
6
6
 
7
7
  # Specifies gem version of Rails to use when vendor/rails is not present
8
- RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
8
+ #RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
9
9
 
10
10
  # Bootstrap the Rails environment, frameworks, and default configuration
11
11
  require File.join(File.dirname(__FILE__), 'boot')
@@ -55,7 +55,7 @@ Rails::Initializer.run do |config|
55
55
  # Make sure the secret is at least 30 characters and all random,
56
56
  # no regular words or you'll be exposed to dictionary attacks.
57
57
  config.action_controller.session = {
58
- :session_key => '_example22_session',
58
+ :key => '_example22_session',
59
59
  :secret => 'a726ae17b1f84e51e5ae5f8bc861a92dcffb188a7a1e9cb88c0c513ce9722b0983ee718c79741260669bfbc69b68044129fc11d8792b90fa912d719992cb9574'
60
60
  }
61
61
 
@@ -0,0 +1,28 @@
1
+ # This file is auto-generated from the current state of the database. Instead of editing this file,
2
+ # please use the migrations feature of Active Record to incrementally modify your database, and
3
+ # then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your database schema. If you need
6
+ # to create the application database on another system, you should be using db:schema:load, not running
7
+ # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
8
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
9
+ #
10
+ # It's strongly recommended to check this file into your version control system.
11
+
12
+ ActiveRecord::Schema.define(:version => 20080702154820) do
13
+
14
+ create_table "accounts", :force => true do |t|
15
+ t.string "name"
16
+ t.string "shard"
17
+ t.datetime "created_at"
18
+ t.datetime "updated_at"
19
+ end
20
+
21
+ create_table "figments", :force => true do |t|
22
+ t.integer "account_id"
23
+ t.integer "value"
24
+ t.datetime "created_at"
25
+ t.datetime "updated_at"
26
+ end
27
+
28
+ end
Binary file
@@ -0,0 +1,295 @@
1
+ # Logfile created on 2010-08-10 12:53:16 -0700 SQL (0.2ms)  SELECT name
2
+ FROM sqlite_master
3
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
4
+ 
5
+ SQL (0.1ms) select sqlite_version(*)
6
+ SQL (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
8
+ SQL (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9
+ SQL (0.1ms)  SELECT name
10
+ FROM sqlite_master
11
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
12
+ 
13
+ SQL (0.1ms) SELECT version FROM schema_migrations
14
+ SQL (0.3ms)  SELECT name
15
+ FROM sqlite_master
16
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
17
+ 
18
+ SQL (0.1ms) SELECT version FROM schema_migrations
19
+ Migrating to CreateAccounts (20080702154628)
20
+ SQL (0.0ms) select sqlite_version(*)
21
+ SQL (0.7ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
22
+ SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('20080702154628')
23
+ Migrating to CreateFigments (20080702154820)
24
+ SQL (0.3ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
25
+ SQL (0.1ms) INSERT INTO schema_migrations (version) VALUES ('20080702154820')
26
+ SQL (0.2ms)  SELECT name
27
+ FROM sqlite_master
28
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
29
+ 
30
+ SQL (0.1ms) SELECT version FROM schema_migrations
31
+ SQL (0.1ms)  SELECT name
32
+ FROM sqlite_master
33
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
34
+ 
35
+ SQL (0.0ms) PRAGMA index_list("accounts")
36
+ SQL (0.0ms) PRAGMA index_list("figments")
37
+ SQL (0.4ms)  SELECT name
38
+ FROM sqlite_master
39
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
40
+ 
41
+ SQL (0.1ms) SELECT version FROM schema_migrations
42
+ SQL (0.2ms) select sqlite_version(*)
43
+ SQL (0.1ms)  SELECT name
44
+ FROM sqlite_master
45
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
46
+ 
47
+ SQL (1.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
48
+ SQL (0.1ms)  SELECT name
49
+ FROM sqlite_master
50
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
51
+ 
52
+ SQL (1.1ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
53
+ SQL (0.1ms)  SELECT name
54
+ FROM sqlite_master
55
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
56
+ 
57
+ SQL (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
58
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
59
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60
+ SQL (0.2ms)  SELECT name
61
+ FROM sqlite_master
62
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
63
+ 
64
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
65
+ SQL (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
66
+ SQL (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
67
+ SQL (0.4ms)  SELECT name
68
+ FROM sqlite_master
69
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
70
+ 
71
+ SQL (0.1ms) SELECT version FROM schema_migrations
72
+ Migrating to CreateAccounts (20080702154628)
73
+ Migrating to CreateFigments (20080702154820)
74
+ SQL (0.1ms) select sqlite_version(*)
75
+ SQL (20.7ms)  SELECT name
76
+ FROM sqlite_master
77
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
78
+ 
79
+ SQL (0.2ms) SELECT version FROM schema_migrations
80
+ SQL (0.1ms)  SELECT name
81
+ FROM sqlite_master
82
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
83
+ 
84
+ SQL (0.0ms) PRAGMA index_list("accounts")
85
+ SQL (0.0ms) PRAGMA index_list("figments")
86
+ SQL (0.4ms)  SELECT name
87
+ FROM sqlite_master
88
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
89
+ 
90
+ SQL (0.1ms) SELECT version FROM schema_migrations
91
+ SQL (0.2ms) select sqlite_version(*)
92
+ SQL (0.1ms)  SELECT name
93
+ FROM sqlite_master
94
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
95
+ 
96
+ SQL (1.7ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
97
+ SQL (0.1ms)  SELECT name
98
+ FROM sqlite_master
99
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
100
+ 
101
+ SQL (1.4ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
102
+ SQL (0.1ms)  SELECT name
103
+ FROM sqlite_master
104
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
105
+ 
106
+ SQL (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
107
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
108
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
109
+ SQL (0.2ms)  SELECT name
110
+ FROM sqlite_master
111
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
112
+ 
113
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
114
+ SQL (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
115
+ SQL (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
116
+ SQL (0.4ms)  SELECT name
117
+ FROM sqlite_master
118
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
119
+ 
120
+ SQL (0.1ms) SELECT version FROM schema_migrations
121
+ SQL (0.2ms) select sqlite_version(*)
122
+ SQL (0.1ms)  SELECT name
123
+ FROM sqlite_master
124
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
125
+ 
126
+ SQL (1.2ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
127
+ SQL (0.1ms)  SELECT name
128
+ FROM sqlite_master
129
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
130
+ 
131
+ SQL (1.1ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
132
+ SQL (0.1ms)  SELECT name
133
+ FROM sqlite_master
134
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
135
+ 
136
+ SQL (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
137
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
138
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
139
+ SQL (0.2ms)  SELECT name
140
+ FROM sqlite_master
141
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
142
+ 
143
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
144
+ SQL (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
145
+ SQL (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
146
+ SQL (0.4ms)  SELECT name
147
+ FROM sqlite_master
148
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
149
+ 
150
+ SQL (0.1ms) SELECT version FROM schema_migrations
151
+ SQL (0.2ms) select sqlite_version(*)
152
+ SQL (0.1ms)  SELECT name
153
+ FROM sqlite_master
154
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
155
+ 
156
+ SQL (1.4ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
157
+ SQL (0.1ms)  SELECT name
158
+ FROM sqlite_master
159
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
160
+ 
161
+ SQL (1.2ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
162
+ SQL (0.1ms)  SELECT name
163
+ FROM sqlite_master
164
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
165
+ 
166
+ SQL (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
167
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
168
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
169
+ SQL (0.2ms)  SELECT name
170
+ FROM sqlite_master
171
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
172
+ 
173
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
174
+ SQL (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
175
+ SQL (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
176
+ SQL (0.4ms)  SELECT name
177
+ FROM sqlite_master
178
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
179
+ 
180
+ SQL (0.1ms) SELECT version FROM schema_migrations
181
+ SQL (0.2ms) select sqlite_version(*)
182
+ SQL (0.1ms)  SELECT name
183
+ FROM sqlite_master
184
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
185
+ 
186
+ SQL (1.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
187
+ SQL (0.1ms)  SELECT name
188
+ FROM sqlite_master
189
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
190
+ 
191
+ SQL (1.1ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
192
+ SQL (0.1ms)  SELECT name
193
+ FROM sqlite_master
194
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
195
+ 
196
+ SQL (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
197
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
198
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
199
+ SQL (0.2ms)  SELECT name
200
+ FROM sqlite_master
201
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
202
+ 
203
+ SQL (0.2ms) SELECT version FROM "schema_migrations"
204
+ SQL (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
205
+ SQL (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
206
+ SQL (0.4ms)  SELECT name
207
+ FROM sqlite_master
208
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
209
+ 
210
+ SQL (0.1ms) SELECT version FROM schema_migrations
211
+ SQL (0.2ms) select sqlite_version(*)
212
+ SQL (0.1ms)  SELECT name
213
+ FROM sqlite_master
214
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
215
+ 
216
+ SQL (1.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
217
+ SQL (0.1ms)  SELECT name
218
+ FROM sqlite_master
219
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
220
+ 
221
+ SQL (1.0ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
222
+ SQL (0.2ms)  SELECT name
223
+ FROM sqlite_master
224
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
225
+ 
226
+ SQL (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
227
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
228
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
229
+ SQL (0.2ms)  SELECT name
230
+ FROM sqlite_master
231
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
232
+ 
233
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
234
+ SQL (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
235
+ SQL (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
236
+ SQL (0.4ms)  SELECT name
237
+ FROM sqlite_master
238
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
239
+ 
240
+ SQL (0.1ms) SELECT version FROM schema_migrations
241
+ SQL (0.2ms) select sqlite_version(*)
242
+ SQL (0.1ms)  SELECT name
243
+ FROM sqlite_master
244
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
245
+ 
246
+ SQL (1.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
247
+ SQL (0.1ms)  SELECT name
248
+ FROM sqlite_master
249
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
250
+ 
251
+ SQL (1.1ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
252
+ SQL (0.2ms)  SELECT name
253
+ FROM sqlite_master
254
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
255
+ 
256
+ SQL (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
257
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
258
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
259
+ SQL (0.2ms)  SELECT name
260
+ FROM sqlite_master
261
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
262
+ 
263
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
264
+ SQL (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
265
+ SQL (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')
266
+ SQL (0.4ms)  SELECT name
267
+ FROM sqlite_master
268
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
269
+ 
270
+ SQL (0.1ms) SELECT version FROM schema_migrations
271
+ SQL (0.2ms) select sqlite_version(*)
272
+ SQL (0.1ms)  SELECT name
273
+ FROM sqlite_master
274
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
275
+ 
276
+ SQL (1.2ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "shard" varchar(255), "created_at" datetime, "updated_at" datetime) 
277
+ SQL (0.1ms)  SELECT name
278
+ FROM sqlite_master
279
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
280
+ 
281
+ SQL (1.2ms) CREATE TABLE "figments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "account_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime) 
282
+ SQL (0.1ms)  SELECT name
283
+ FROM sqlite_master
284
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
285
+ 
286
+ SQL (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
287
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
288
+ SQL (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
289
+ SQL (0.2ms)  SELECT name
290
+ FROM sqlite_master
291
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
292
+ 
293
+ SQL (0.2ms) SELECT version FROM "schema_migrations"
294
+ SQL (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154820')
295
+ SQL (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20080702154628')