data_fabric 1.2.7 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/CHANGELOG +7 -0
  2. data/README.rdoc +9 -8
  3. data/Rakefile +9 -41
  4. data/TESTING.rdoc +3 -3
  5. data/example23/Rakefile +28 -27
  6. data/example23/config/environment.rb +4 -2
  7. data/example30/Gemfile +5 -0
  8. data/example30/Gemfile.lock +79 -0
  9. data/example30/README +256 -0
  10. data/example30/Rakefile +52 -0
  11. data/{example → example30}/app/controllers/accounts_controller.rb +0 -0
  12. data/{example/app/controllers/application.rb → example30/app/controllers/application_controller.rb} +0 -0
  13. data/{example → example30}/app/controllers/figments_controller.rb +0 -0
  14. data/example30/app/helpers/application_helper.rb +2 -0
  15. data/{example → example30}/app/models/account.rb +0 -0
  16. data/{example → example30}/app/models/figment.rb +0 -0
  17. data/{example → example30}/app/views/accounts/index.html.erb +2 -2
  18. data/{example → example30}/app/views/layouts/application.html.erb +0 -0
  19. data/example30/config.ru +4 -0
  20. data/example30/config/application.rb +42 -0
  21. data/example30/config/boot.rb +13 -0
  22. data/{example → example30}/config/database.yml +0 -0
  23. data/example30/config/environment.rb +5 -0
  24. data/example30/config/environments/development.rb +26 -0
  25. data/example30/config/environments/production.rb +49 -0
  26. data/example30/config/environments/test.rb +35 -0
  27. data/example30/config/initializers/backtrace_silencers.rb +7 -0
  28. data/{example → example30}/config/initializers/inflections.rb +2 -2
  29. data/{example → example30}/config/initializers/mime_types.rb +0 -0
  30. data/example30/config/initializers/secret_token.rb +7 -0
  31. data/example30/config/initializers/session_store.rb +8 -0
  32. data/example30/config/locales/en.yml +5 -0
  33. data/example30/config/routes.rb +65 -0
  34. data/example30/db/development.sqlite3 +0 -0
  35. data/{example → example30}/db/migrate/20080702154628_create_accounts.rb +0 -0
  36. data/{example → example30}/db/migrate/20080702154820_create_figments.rb +0 -0
  37. data/example30/db/s0_development.sqlite3 +0 -0
  38. data/example30/db/s0_test.sqlite3 +0 -0
  39. data/example30/db/s1_development.sqlite3 +0 -0
  40. data/example30/db/s1_test.sqlite3 +0 -0
  41. data/{example23 → example30}/db/schema.rb +7 -6
  42. data/example30/db/seeds.rb +7 -0
  43. data/example30/db/test.sqlite3 +0 -0
  44. data/example30/log/development.log +132 -0
  45. data/example30/log/test.log +444 -0
  46. data/example30/script/rails +6 -0
  47. data/{example → example30}/test/fixtures/accounts.yml +0 -0
  48. data/{example → example30}/test/functional/accounts_controller_test.rb +0 -0
  49. data/{example → example30}/test/integration/account_figments_test.rb +0 -0
  50. data/example30/test/performance/browsing_test.rb +9 -0
  51. data/example30/test/test_helper.rb +13 -0
  52. data/lib/data_fabric.rb +14 -21
  53. data/lib/data_fabric/{ar22.rb → connection_proxy.rb} +43 -63
  54. data/lib/data_fabric/extensions.rb +29 -0
  55. data/lib/data_fabric/version.rb +1 -1
  56. data/test/connection_test.rb +17 -12
  57. data/test/database_test.rb +3 -11
  58. data/test/test_helper.rb +3 -8
  59. data/test/thread_test.rb +0 -14
  60. data/test/vr_austin_master.db +0 -0
  61. data/test/vr_austin_slave.db +0 -0
  62. data/test/vr_dallas_master.db +0 -0
  63. data/test/vr_dallas_slave.db +0 -0
  64. metadata +72 -99
  65. data/example/Rakefile +0 -58
  66. data/example/app/helpers/accounts_helper.rb +0 -2
  67. data/example/app/helpers/application_helper.rb +0 -3
  68. data/example/app/helpers/figments_helper.rb +0 -2
  69. data/example/config/boot.rb +0 -109
  70. data/example/config/environment.rb +0 -67
  71. data/example/config/environments/development.rb +0 -17
  72. data/example/config/environments/production.rb +0 -22
  73. data/example/config/environments/test.rb +0 -22
  74. data/example/config/initializers/new_rails_defaults.rb +0 -15
  75. data/example/config/routes.rb +0 -45
  76. data/example/db/schema.rb +0 -28
  77. data/example/public/404.html +0 -30
  78. data/example/public/422.html +0 -30
  79. data/example/public/500.html +0 -30
  80. data/example/public/dispatch.cgi +0 -10
  81. data/example/public/dispatch.fcgi +0 -24
  82. data/example/public/dispatch.rb +0 -10
  83. data/example/public/favicon.ico +0 -0
  84. data/example/public/images/rails.png +0 -0
  85. data/example/public/robots.txt +0 -5
  86. data/example/script/about +0 -3
  87. data/example/script/console +0 -3
  88. data/example/script/dbconsole +0 -3
  89. data/example/script/destroy +0 -3
  90. data/example/script/generate +0 -3
  91. data/example/script/performance/benchmarker +0 -3
  92. data/example/script/performance/profiler +0 -3
  93. data/example/script/performance/request +0 -3
  94. data/example/script/plugin +0 -3
  95. data/example/script/process/inspector +0 -3
  96. data/example/script/process/reaper +0 -3
  97. data/example/script/process/spawner +0 -3
  98. data/example/script/runner +0 -3
  99. data/example/script/server +0 -3
  100. data/example/test/test_helper.rb +0 -41
  101. data/example23/db/development.sqlite3 +0 -0
  102. data/example23/db/s0_development.sqlite3 +0 -0
  103. data/example23/db/s0_test.sqlite3 +0 -0
  104. data/example23/db/s1_development.sqlite3 +0 -0
  105. data/example23/db/s1_test.sqlite3 +0 -0
  106. data/example23/db/test.sqlite3 +0 -0
  107. data/example23/log/development.log +0 -295
  108. data/example23/log/test.log +0 -551
  109. data/example23/vendor/plugins/data_fabric/init.rb +0 -3
  110. data/example23/vendor/plugins/data_fabric/lib/data_fabric.rb +0 -106
  111. data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar20.rb +0 -133
  112. data/example23/vendor/plugins/data_fabric/lib/data_fabric/ar22.rb +0 -181
  113. data/example23/vendor/plugins/data_fabric/lib/data_fabric/dash.rb +0 -20
  114. data/example23/vendor/plugins/data_fabric/lib/data_fabric/version.rb +0 -7
  115. data/init.rb +0 -3
  116. data/lib/data_fabric/ar20.rb +0 -133
  117. data/lib/data_fabric/dash.rb +0 -20
  118. data/rails/init.rb +0 -1
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
-
6
- <head>
7
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
- <title>We're sorry, but something went wrong (500)</title>
9
- <style type="text/css">
10
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
- div.dialog {
12
- width: 25em;
13
- padding: 0 4em;
14
- margin: 4em auto 0 auto;
15
- border: 1px solid #ccc;
16
- border-right-color: #999;
17
- border-bottom-color: #999;
18
- }
19
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
- </style>
21
- </head>
22
-
23
- <body>
24
- <!-- This file lives in public/500.html -->
25
- <div class="dialog">
26
- <h1>We're sorry, but something went wrong.</h1>
27
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
28
- </div>
29
- </body>
30
- </html>
@@ -1,10 +0,0 @@
1
- #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
2
-
3
- require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4
-
5
- # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
6
- # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
7
- require "dispatcher"
8
-
9
- ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10
- Dispatcher.dispatch
@@ -1,24 +0,0 @@
1
- #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
2
- #
3
- # You may specify the path to the FastCGI crash log (a log of unhandled
4
- # exceptions which forced the FastCGI instance to exit, great for debugging)
5
- # and the number of requests to process before running garbage collection.
6
- #
7
- # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
8
- # and the GC period is nil (turned off). A reasonable number of requests
9
- # could range from 10-100 depending on the memory footprint of your app.
10
- #
11
- # Example:
12
- # # Default log path, normal GC behavior.
13
- # RailsFCGIHandler.process!
14
- #
15
- # # Default log path, 50 requests between GC.
16
- # RailsFCGIHandler.process! nil, 50
17
- #
18
- # # Custom log path, normal GC behavior.
19
- # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
20
- #
21
- require File.dirname(__FILE__) + "/../config/environment"
22
- require 'fcgi_handler'
23
-
24
- RailsFCGIHandler.process!
@@ -1,10 +0,0 @@
1
- #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
2
-
3
- require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4
-
5
- # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
6
- # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
7
- require "dispatcher"
8
-
9
- ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10
- Dispatcher.dispatch
File without changes
Binary file
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-Agent: *
5
- # Disallow: /
data/example/script/about DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/about'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/console'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/dbconsole'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/destroy'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/generate'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/performance/benchmarker'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/performance/profiler'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/performance/request'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/plugin'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/process/inspector'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/process/reaper'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../../config/boot'
3
- require 'commands/process/spawner'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/runner'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/server'
@@ -1,41 +0,0 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
- require 'test_help'
4
-
5
- ActiveRecord::Base.logger = Logger.new(STDOUT)
6
- ActiveRecord::Base.logger.level = Logger::DEBUG
7
-
8
- class Test::Unit::TestCase
9
- # Transactional fixtures accelerate your tests by wrapping each test method
10
- # in a transaction that's rolled back on completion. This ensures that the
11
- # test database remains unchanged so your fixtures don't have to be reloaded
12
- # between every test method. Fewer database queries means faster tests.
13
- #
14
- # Read Mike Clark's excellent walkthrough at
15
- # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
16
- #
17
- # Every Active Record database supports transactions except MyISAM tables
18
- # in MySQL. Turn off transactional fixtures in this case; however, if you
19
- # don't care one way or the other, switching from MyISAM to InnoDB tables
20
- # is recommended.
21
- #
22
- # The only drawback to using transactional fixtures is when you actually
23
- # need to test transactions. Since your test is bracketed by a transaction,
24
- # any transactions started in your code will be automatically rolled back.
25
- self.use_transactional_fixtures = true
26
-
27
- # Instantiated fixtures are slow, but give you @david where otherwise you
28
- # would need people(:david). If you don't want to migrate your existing
29
- # test cases which use the @david style and don't mind the speed hit (each
30
- # instantiated fixtures translates to a database query per test method),
31
- # then set this back to true.
32
- self.use_instantiated_fixtures = false
33
-
34
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
35
- #
36
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
37
- # -- they do not yet inherit this setting
38
- fixtures :all
39
-
40
- # Add more helper methods to be used by all tests here...
41
- end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,295 +0,0 @@
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')