annotator 0.0.8.1 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e281a273299bac0706dd5c95fae62865b18690bd
4
+ data.tar.gz: ee3b54dea76bd7cda81563f1686fdd5e80eb4397
5
+ SHA512:
6
+ metadata.gz: 1db22454981d881233579c0f3f0a49a21de06f5e0fd0a23017b846722fc309349a8593ff7649edf86f2f7b37d3d6b9c55a4c41b723001f9d602c72a471a456ed
7
+ data.tar.gz: 049863c3d57c5b11d90eca21cb0c26449b88d71e63dec0af4a6def6dbcd4970d4cf626dddbe6101ebecb369a5b7f082f64c858ef1a8ab4a63e4323a9496dce60
@@ -1,4 +1,6 @@
1
1
  = Annotator
2
+ {<img src="https://gemnasium.com/tech-angels/annotator.png" alt="Dependency Status" />}[https://gemnasium.com/tech-angels/annotator]
3
+ {<img src="https://travis-ci.org/tech-angels/annotator.png?branch=master" alt="Build Status" />}[https://travis-ci.org/tech-angels/annotator]
2
4
 
3
5
  If you just want to have column descriptions in your model file, {annotate_models}[https://github.com/ctran/annotate_models] should suite you well. Annotator will help you if you want to also keep your own comments about these columns.
4
6
 
@@ -79,11 +79,20 @@ module Annotator
79
79
  end
80
80
  end
81
81
 
82
+ # default value could be a multiple lines string, which would ruin annotations,
83
+ # so we truncate it and display inspect of that string
84
+ def truncate_default(str)
85
+ return str unless str.kind_of? String
86
+ str.sub!(/^'(.*)'$/m,'\1')
87
+ str = "#{str[0..10]}..." if str.size > 10
88
+ str.inspect
89
+ end
90
+
82
91
  # Human readable description of given column type
83
92
  def type_str(c)
84
93
  ret = c.type.to_s
85
94
  ret << ", primary" if c.primary
86
- ret << ", default=#{c.default}" if c.default
95
+ ret << ", default=#{truncate_default(c.default)}" if c.default
87
96
  ret << ", not null" unless c.null
88
97
  ret << ", limit=#{c.limit}" if c.limit && (c.limit != 255 && c.type != :string)
89
98
  ret
@@ -1,3 +1,3 @@
1
1
  module Annotator
2
- VERSION = "0.0.8.1"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -30,6 +30,7 @@ class AnnotatorTest < ActiveSupport::TestCase
30
30
  assert_equal File.read(asset_file 'foo_annotated_bad_column_nodoc.rb' ), File.read(app_file 'foo.rb' )
31
31
  end
32
32
 
33
+ # also tests multiline default values
33
34
  test "annotating devise columns" do
34
35
  assert_equal File.read(asset_file 'user_annotated.rb' ), File.read(app_file 'user.rb' )
35
36
  end
@@ -7,8 +7,9 @@
7
7
  # * created_at [datetime, not null] - creation time
8
8
  # * current_sign_in_at [datetime] - Devise Trackable module
9
9
  # * current_sign_in_ip [string] - Devise Trackable module
10
- # * email [string, default=, not null]
11
- # * encrypted_password [string, default=, not null] - Devise encrypted password
10
+ # * description [string, default="Long\nmultil..."] - TODO: document me
11
+ # * email [string, default="", not null]
12
+ # * encrypted_password [string, default="", not null] - Devise encrypted password
12
13
  # * failed_attempts [integer, default=0] - Devise Lockable module
13
14
  # * last_sign_in_at [datetime] - Devise Trackable module
14
15
  # * last_sign_in_ip [string] - Devise Trackable module
@@ -29,6 +30,4 @@ class User < ActiveRecord::Base
29
30
  :recoverable, :rememberable, :trackable, :validatable]
30
31
  end
31
32
 
32
- # Setup accessible (or protected) attributes for your model
33
- attr_accessible :email, :password, :password_confirmation, :remember_me
34
33
  end
@@ -6,6 +6,4 @@ class User < ActiveRecord::Base
6
6
  :recoverable, :rememberable, :trackable, :validatable]
7
7
  end
8
8
 
9
- # Setup accessible (or protected) attributes for your model
10
- attr_accessible :email, :password, :password_confirmation, :remember_me
11
9
  end
@@ -6,9 +6,6 @@ Dummy::Application.configure do
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
9
  # Show full error reports and disable caching
13
10
  config.consider_all_requests_local = true
14
11
  config.action_controller.perform_caching = false
@@ -22,9 +19,6 @@ Dummy::Application.configure do
22
19
  # Only use best-standards-support built into browsers
23
20
  config.action_dispatch.best_standards_support = :builtin
24
21
 
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
22
  # Log the query plan for queries taking more than this (works
29
23
  # with SQLite, MySQL, and PostgreSQL)
30
24
  config.active_record.auto_explain_threshold_in_seconds = 0.5
@@ -11,9 +11,6 @@ Dummy::Application.configure do
11
11
  config.serve_static_assets = true
12
12
  config.static_cache_control = "public, max-age=3600"
13
13
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
14
  # Show full error reports and disable caching
18
15
  config.consider_all_requests_local = true
19
16
  config.action_controller.perform_caching = false
@@ -29,9 +26,6 @@ Dummy::Application.configure do
29
26
  # ActionMailer::Base.deliveries array.
30
27
  config.action_mailer.delivery_method = :test
31
28
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
29
  # Print deprecation notices to the stderr
36
30
  config.active_support.deprecation = :stderr
37
31
  end
@@ -4,7 +4,7 @@ class CreateFoos < ActiveRecord::Migration
4
4
  t.text :body
5
5
  t.string :title
6
6
  t.integer :random_number
7
- t.timestamps
7
+ t.timestamps :null => false
8
8
  end
9
9
  end
10
10
  end
@@ -36,8 +36,10 @@ class DeviseCreateUsers < ActiveRecord::Migration
36
36
  ## Token authenticatable
37
37
  t.string :authentication_token
38
38
 
39
+ # Something exctra to test default values annotations
40
+ t.string :description, :default => "Long\nmultiline\nstring"
39
41
 
40
- t.timestamps
42
+ t.timestamps :null => false
41
43
  end
42
44
 
43
45
  add_index :users, :email, :unique => true
@@ -2,7 +2,7 @@ class CreatePapers < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :papers do |t|
4
4
 
5
- t.timestamps
5
+ t.timestamps :null => false
6
6
  end
7
7
  end
8
8
  end
@@ -4,7 +4,7 @@ class CreateBoos < ActiveRecord::Migration
4
4
  t.references :foo
5
5
  t.integer :poly_id
6
6
  t.string :poly_type
7
- t.timestamps
7
+ t.timestamps :null => false
8
8
  end
9
9
  end
10
10
  end
@@ -5,7 +5,7 @@ class CreateRoos < ActiveRecord::Migration
5
5
  t.integer :poly_id
6
6
  t.string :poly_type
7
7
  t.integer :foo_id
8
- t.timestamps
8
+ t.timestamps :null => false
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annotator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.1
5
- prerelease:
4
+ version: 0.0.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tech-Angels
@@ -10,54 +9,48 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2013-06-10 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activerecord
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ~>
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '3.0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ~>
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: '3.0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: sqlite3
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: rails
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ~>
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '3.0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ~>
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '3.0'
63
56
  description: ''
@@ -67,187 +60,180 @@ executables: []
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
70
- - lib/tasks/annotator_tasks.rake
71
- - lib/annotator.rb
72
- - lib/annotator/railtie.rb
73
- - lib/annotator/initial_description/devise.rb
74
- - lib/annotator/initial_description/rails.rb
63
+ - lib/annotator/attributes.rb
75
64
  - lib/annotator/initial_description/base.rb
76
- - lib/annotator/initial_description/paperclip.rb
77
65
  - lib/annotator/initial_description/belongs_to.rb
66
+ - lib/annotator/initial_description/devise.rb
67
+ - lib/annotator/initial_description/paperclip.rb
68
+ - lib/annotator/initial_description/rails.rb
78
69
  - lib/annotator/initial_description.rb
79
- - lib/annotator/version.rb
80
- - lib/annotator/attributes.rb
81
70
  - lib/annotator/model.rb
71
+ - lib/annotator/railtie.rb
72
+ - lib/annotator/version.rb
73
+ - lib/annotator.rb
74
+ - lib/tasks/annotator_tasks.rake
82
75
  - MIT-LICENSE
83
76
  - Rakefile
84
77
  - README.rdoc
85
- - test/assets/foo_require_first.rb
86
- - test/assets/user_annotated.rb
87
- - test/assets/moo_hoo_annotated.rb
88
- - test/assets/boo_encoding_annotated.rb
78
+ - test/annotator_test.rb
79
+ - test/assets/boo_annotated.rb
89
80
  - test/assets/boo_encoding.rb
90
- - test/assets/roo_initially_annotated.rb
81
+ - test/assets/boo_encoding_annotated.rb
91
82
  - test/assets/foo_annotated.rb
92
- - test/assets/foo_annotated_with_comments.rb
93
- - test/assets/boo_annotated.rb
94
- - test/assets/foo_annotated_bad_column_nodoc.rb
95
- - test/assets/paper_annotated.rb
96
83
  - test/assets/foo_annotated_bad_column.rb
84
+ - test/assets/foo_annotated_bad_column_nodoc.rb
97
85
  - test/assets/foo_annotated_column_fixed.rb
86
+ - test/assets/foo_annotated_with_comments.rb
87
+ - test/assets/foo_require_first.rb
88
+ - test/assets/moo_hoo_annotated.rb
89
+ - test/assets/paper_annotated.rb
90
+ - test/assets/roo_initially_annotated.rb
98
91
  - test/assets/roo_reannotated.rb
99
- - test/annotator_test.rb
100
- - test/test_helper.rb
101
- - test/dummy/app/helpers/application_helper.rb
102
- - test/dummy/app/assets/stylesheets/application.css
92
+ - test/assets/user_annotated.rb
103
93
  - test/dummy/app/assets/javascripts/application.js
94
+ - test/dummy/app/assets/stylesheets/application.css
104
95
  - test/dummy/app/controllers/application_controller.rb
105
- - test/dummy/app/models/user.rb
106
- - test/dummy/app/models/nomodel.rb
96
+ - test/dummy/app/helpers/application_helper.rb
97
+ - test/dummy/app/models/boo.rb
107
98
  - test/dummy/app/models/foo.rb
108
- - test/dummy/app/models/paper.rb
109
99
  - test/dummy/app/models/moo/hoo.rb
100
+ - test/dummy/app/models/nomodel.rb
101
+ - test/dummy/app/models/paper.rb
110
102
  - test/dummy/app/models/roo.rb
111
- - test/dummy/app/models/boo.rb
103
+ - test/dummy/app/models/user.rb
112
104
  - test/dummy/app/views/layouts/application.html.erb
113
- - test/dummy/config/routes.rb
105
+ - test/dummy/config/application.rb
106
+ - test/dummy/config/boot.rb
107
+ - test/dummy/config/database.yml
114
108
  - test/dummy/config/environment.rb
115
- - test/dummy/config/environments/production.rb
116
109
  - test/dummy/config/environments/development.rb
110
+ - test/dummy/config/environments/production.rb
117
111
  - test/dummy/config/environments/test.rb
118
- - test/dummy/config/application.rb
119
- - test/dummy/config/locales/en.yml
120
- - test/dummy/config/database.yml
121
- - test/dummy/config/boot.rb
122
- - test/dummy/config/initializers/wrap_parameters.rb
123
- - test/dummy/config/initializers/mime_types.rb
124
- - test/dummy/config/initializers/session_store.rb
125
112
  - test/dummy/config/initializers/backtrace_silencers.rb
126
- - test/dummy/config/initializers/secret_token.rb
127
113
  - test/dummy/config/initializers/inflections.rb
128
- - test/dummy/script/rails
129
- - test/dummy/log/development.log
130
- - test/dummy/log/test.log
114
+ - test/dummy/config/initializers/mime_types.rb
115
+ - test/dummy/config/initializers/secret_token.rb
116
+ - test/dummy/config/initializers/session_store.rb
117
+ - test/dummy/config/initializers/wrap_parameters.rb
118
+ - test/dummy/config/locales/en.yml
119
+ - test/dummy/config/routes.rb
131
120
  - test/dummy/config.ru
132
- - test/dummy/Rakefile
133
- - test/dummy/db/development.sqlite3
134
- - test/dummy/db/migrate/20120527023350_create_papers.rb
121
+ - test/dummy/db/migrate/20120219112425_create_foos.rb
135
122
  - test/dummy/db/migrate/20120527020350_devise_create_users.rb
123
+ - test/dummy/db/migrate/20120527023350_create_papers.rb
136
124
  - test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
137
- - test/dummy/db/migrate/20120708043543_create_roos.rb
138
- - test/dummy/db/migrate/20120219112425_create_foos.rb
139
125
  - test/dummy/db/migrate/20120527025142_create_boos.rb
126
+ - test/dummy/db/migrate/20120708043543_create_roos.rb
140
127
  - test/dummy/db/schema.rb
128
+ - test/dummy/public/404.html
129
+ - test/dummy/public/422.html
130
+ - test/dummy/public/500.html
131
+ - test/dummy/public/favicon.ico
132
+ - test/dummy/Rakefile
133
+ - test/dummy/README.rdoc
134
+ - test/dummy/script/rails
141
135
  - test/dummy/test/fixtures/boos.yml
142
- - test/dummy/test/fixtures/papers.yml
143
- - test/dummy/test/fixtures/users.yml
144
136
  - test/dummy/test/fixtures/foos.yml
137
+ - test/dummy/test/fixtures/papers.yml
145
138
  - test/dummy/test/fixtures/roos.yml
146
- - test/dummy/test/unit/paper_test.rb
139
+ - test/dummy/test/fixtures/users.yml
147
140
  - test/dummy/test/unit/boo_test.rb
148
- - test/dummy/test/unit/user_test.rb
149
- - test/dummy/test/unit/roo_test.rb
150
141
  - test/dummy/test/unit/foo_test.rb
151
- - test/dummy/README.rdoc
152
- - test/dummy/public/favicon.ico
153
- - test/dummy/public/404.html
154
- - test/dummy/public/500.html
155
- - test/dummy/public/422.html
142
+ - test/dummy/test/unit/paper_test.rb
143
+ - test/dummy/test/unit/roo_test.rb
144
+ - test/dummy/test/unit/user_test.rb
156
145
  - test/support/test_app.rb
146
+ - test/test_helper.rb
157
147
  homepage: https://github.com/tech-angels/annotator
158
148
  licenses: []
149
+ metadata: {}
159
150
  post_install_message:
160
151
  rdoc_options: []
161
152
  require_paths:
162
153
  - lib
163
154
  required_ruby_version: !ruby/object:Gem::Requirement
164
- none: false
165
155
  requirements:
166
- - - ! '>='
156
+ - - '>='
167
157
  - !ruby/object:Gem::Version
168
158
  version: '0'
169
159
  required_rubygems_version: !ruby/object:Gem::Requirement
170
- none: false
171
160
  requirements:
172
- - - ! '>='
161
+ - - '>='
173
162
  - !ruby/object:Gem::Version
174
163
  version: '0'
175
164
  requirements: []
176
165
  rubyforge_project:
177
- rubygems_version: 1.8.23
166
+ rubygems_version: 2.0.3
178
167
  signing_key:
179
- specification_version: 3
168
+ specification_version: 4
180
169
  summary: Annotate your models and keep your comments about fields.
181
170
  test_files:
182
- - test/assets/foo_require_first.rb
183
- - test/assets/user_annotated.rb
184
- - test/assets/moo_hoo_annotated.rb
185
- - test/assets/boo_encoding_annotated.rb
171
+ - test/annotator_test.rb
172
+ - test/assets/boo_annotated.rb
186
173
  - test/assets/boo_encoding.rb
187
- - test/assets/roo_initially_annotated.rb
174
+ - test/assets/boo_encoding_annotated.rb
188
175
  - test/assets/foo_annotated.rb
189
- - test/assets/foo_annotated_with_comments.rb
190
- - test/assets/boo_annotated.rb
191
- - test/assets/foo_annotated_bad_column_nodoc.rb
192
- - test/assets/paper_annotated.rb
193
176
  - test/assets/foo_annotated_bad_column.rb
177
+ - test/assets/foo_annotated_bad_column_nodoc.rb
194
178
  - test/assets/foo_annotated_column_fixed.rb
179
+ - test/assets/foo_annotated_with_comments.rb
180
+ - test/assets/foo_require_first.rb
181
+ - test/assets/moo_hoo_annotated.rb
182
+ - test/assets/paper_annotated.rb
183
+ - test/assets/roo_initially_annotated.rb
195
184
  - test/assets/roo_reannotated.rb
196
- - test/annotator_test.rb
197
- - test/test_helper.rb
198
- - test/dummy/app/helpers/application_helper.rb
199
- - test/dummy/app/assets/stylesheets/application.css
185
+ - test/assets/user_annotated.rb
200
186
  - test/dummy/app/assets/javascripts/application.js
187
+ - test/dummy/app/assets/stylesheets/application.css
201
188
  - test/dummy/app/controllers/application_controller.rb
202
- - test/dummy/app/models/user.rb
203
- - test/dummy/app/models/nomodel.rb
189
+ - test/dummy/app/helpers/application_helper.rb
190
+ - test/dummy/app/models/boo.rb
204
191
  - test/dummy/app/models/foo.rb
205
- - test/dummy/app/models/paper.rb
206
192
  - test/dummy/app/models/moo/hoo.rb
193
+ - test/dummy/app/models/nomodel.rb
194
+ - test/dummy/app/models/paper.rb
207
195
  - test/dummy/app/models/roo.rb
208
- - test/dummy/app/models/boo.rb
196
+ - test/dummy/app/models/user.rb
209
197
  - test/dummy/app/views/layouts/application.html.erb
210
- - test/dummy/config/routes.rb
198
+ - test/dummy/config/application.rb
199
+ - test/dummy/config/boot.rb
200
+ - test/dummy/config/database.yml
211
201
  - test/dummy/config/environment.rb
212
- - test/dummy/config/environments/production.rb
213
202
  - test/dummy/config/environments/development.rb
203
+ - test/dummy/config/environments/production.rb
214
204
  - test/dummy/config/environments/test.rb
215
- - test/dummy/config/application.rb
216
- - test/dummy/config/locales/en.yml
217
- - test/dummy/config/database.yml
218
- - test/dummy/config/boot.rb
219
- - test/dummy/config/initializers/wrap_parameters.rb
220
- - test/dummy/config/initializers/mime_types.rb
221
- - test/dummy/config/initializers/session_store.rb
222
205
  - test/dummy/config/initializers/backtrace_silencers.rb
223
- - test/dummy/config/initializers/secret_token.rb
224
206
  - test/dummy/config/initializers/inflections.rb
225
- - test/dummy/script/rails
226
- - test/dummy/log/development.log
227
- - test/dummy/log/test.log
207
+ - test/dummy/config/initializers/mime_types.rb
208
+ - test/dummy/config/initializers/secret_token.rb
209
+ - test/dummy/config/initializers/session_store.rb
210
+ - test/dummy/config/initializers/wrap_parameters.rb
211
+ - test/dummy/config/locales/en.yml
212
+ - test/dummy/config/routes.rb
228
213
  - test/dummy/config.ru
229
- - test/dummy/Rakefile
230
- - test/dummy/db/development.sqlite3
231
- - test/dummy/db/migrate/20120527023350_create_papers.rb
214
+ - test/dummy/db/migrate/20120219112425_create_foos.rb
232
215
  - test/dummy/db/migrate/20120527020350_devise_create_users.rb
216
+ - test/dummy/db/migrate/20120527023350_create_papers.rb
233
217
  - test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
234
- - test/dummy/db/migrate/20120708043543_create_roos.rb
235
- - test/dummy/db/migrate/20120219112425_create_foos.rb
236
218
  - test/dummy/db/migrate/20120527025142_create_boos.rb
219
+ - test/dummy/db/migrate/20120708043543_create_roos.rb
237
220
  - test/dummy/db/schema.rb
221
+ - test/dummy/public/404.html
222
+ - test/dummy/public/422.html
223
+ - test/dummy/public/500.html
224
+ - test/dummy/public/favicon.ico
225
+ - test/dummy/Rakefile
226
+ - test/dummy/README.rdoc
227
+ - test/dummy/script/rails
238
228
  - test/dummy/test/fixtures/boos.yml
239
- - test/dummy/test/fixtures/papers.yml
240
- - test/dummy/test/fixtures/users.yml
241
229
  - test/dummy/test/fixtures/foos.yml
230
+ - test/dummy/test/fixtures/papers.yml
242
231
  - test/dummy/test/fixtures/roos.yml
243
- - test/dummy/test/unit/paper_test.rb
232
+ - test/dummy/test/fixtures/users.yml
244
233
  - test/dummy/test/unit/boo_test.rb
245
- - test/dummy/test/unit/user_test.rb
246
- - test/dummy/test/unit/roo_test.rb
247
234
  - test/dummy/test/unit/foo_test.rb
248
- - test/dummy/README.rdoc
249
- - test/dummy/public/favicon.ico
250
- - test/dummy/public/404.html
251
- - test/dummy/public/500.html
252
- - test/dummy/public/422.html
235
+ - test/dummy/test/unit/paper_test.rb
236
+ - test/dummy/test/unit/roo_test.rb
237
+ - test/dummy/test/unit/user_test.rb
253
238
  - test/support/test_app.rb
239
+ - test/test_helper.rb
@@ -1,170 +0,0 @@
1
-  (0.0ms) select sqlite_version(*)
2
-  (14.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
-  (0.0ms) PRAGMA index_list("schema_migrations")
4
-  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
- Migrating to CreateFoos (20120219112425)
7
-  (0.1ms) begin transaction
8
-  (0.4ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
9
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120219112425')
10
-  (2.8ms) commit transaction
11
-  (0.2ms) select sqlite_version(*)
12
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
13
-  (0.0ms) PRAGMA index_list("foos")
14
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
15
-  (0.2ms) select sqlite_version(*)
16
-  (15.7ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
17
-  (3.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
18
-  (0.0ms) PRAGMA index_list("schema_migrations")
19
-  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
20
-  (0.1ms) SELECT version FROM "schema_migrations"
21
-  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120219112425')
22
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
23
-  (0.1ms) select sqlite_version(*)
24
-  (5.8ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
25
-  (3.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
26
-  (0.0ms) PRAGMA index_list("schema_migrations")
27
-  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28
-  (0.1ms) SELECT version FROM "schema_migrations"
29
-  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120219112425')
30
-  (0.0ms) select sqlite_version(*)
31
-  (5.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
32
-  (0.0ms) PRAGMA index_list("schema_migrations")
33
-  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
34
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
35
- Migrating to CreateFoos (20120219112425)
36
-  (0.0ms) begin transaction
37
-  (0.4ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
38
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120219112425')
39
-  (3.3ms) commit transaction
40
- Migrating to DeviseCreateUsers (20120527020350)
41
-  (0.0ms) begin transaction
42
-  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "password_salt" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "authentication_token" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
43
-  (0.0ms) PRAGMA index_list("users")
44
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
45
-  (0.0ms) PRAGMA index_list("users")
46
-  (0.0ms) PRAGMA index_info('index_users_on_email')
47
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
48
-  (0.0ms) PRAGMA index_list("users")
49
-  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
50
-  (0.0ms) PRAGMA index_info('index_users_on_email')
51
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
52
-  (0.0ms) PRAGMA index_list("users")
53
-  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
54
-  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
55
-  (0.0ms) PRAGMA index_info('index_users_on_email')
56
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")
57
-  (0.0ms) PRAGMA index_list("users")
58
-  (0.0ms) PRAGMA index_info('index_users_on_unlock_token')
59
-  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
60
-  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
61
-  (0.0ms) PRAGMA index_info('index_users_on_email')
62
-  (0.1ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
63
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527020350')
64
-  (3.6ms) commit transaction
65
-  (0.2ms) select sqlite_version(*)
66
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
67
-  (0.0ms) PRAGMA index_list("foos")
68
-  (0.0ms) PRAGMA index_list("users")
69
-  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
70
-  (0.0ms) PRAGMA index_info('index_users_on_unlock_token')
71
-  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
72
-  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
73
-  (0.0ms) PRAGMA index_info('index_users_on_email')
74
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
75
- Migrating to CreateFoos (20120219112425)
76
- Migrating to DeviseCreateUsers (20120527020350)
77
- Migrating to CreatePapers (20120527023350)
78
-  (0.0ms) select sqlite_version(*)
79
-  (0.0ms) begin transaction
80
-  (0.2ms) CREATE TABLE "papers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
81
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527023350')
82
-  (5.4ms) commit transaction
83
- Migrating to AddAttachmentAvatarToPapers (20120527023417)
84
-  (0.0ms) begin transaction
85
-  (0.3ms) ALTER TABLE "papers" ADD "avatar_file_name" varchar(255)
86
-  (0.2ms) ALTER TABLE "papers" ADD "avatar_content_type" varchar(255)
87
-  (0.2ms) ALTER TABLE "papers" ADD "avatar_file_size" integer
88
-  (0.2ms) ALTER TABLE "papers" ADD "avatar_updated_at" datetime
89
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527023417')
90
-  (3.8ms) commit transaction
91
- Migrating to CreateBoos (20120527025142)
92
-  (0.0ms) begin transaction
93
-  (0.4ms) CREATE TABLE "boos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer, "poly_id" integer, "poly_type" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
94
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527025142')
95
-  (4.0ms) commit transaction
96
-  (0.4ms) select sqlite_version(*)
97
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
98
-  (0.0ms) PRAGMA index_list("boos")
99
-  (0.0ms) PRAGMA index_list("foos")
100
-  (0.0ms) PRAGMA index_list("papers")
101
-  (0.1ms) PRAGMA index_list("users")
102
-  (0.1ms) PRAGMA index_info('index_users_on_authentication_token')
103
-  (0.1ms) PRAGMA index_info('index_users_on_unlock_token')
104
-  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
105
-  (0.1ms) PRAGMA index_info('index_users_on_reset_password_token')
106
-  (0.0ms) PRAGMA index_info('index_users_on_email')
107
-  (0.1ms) select sqlite_version(*)
108
-  (14.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
109
-  (0.0ms) PRAGMA index_list("schema_migrations")
110
-  (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
111
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
112
- Migrating to CreateFoos (20120219112425)
113
-  (0.0ms) begin transaction
114
-  (0.4ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "body" text, "title" varchar(255), "random_number" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
115
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120219112425')
116
-  (7.1ms) commit transaction
117
- Migrating to DeviseCreateUsers (20120527020350)
118
-  (0.0ms) begin transaction
119
-  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "password_salt" varchar(255), "confirmation_token" varchar(255), "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar(255), "failed_attempts" integer DEFAULT 0, "unlock_token" varchar(255), "locked_at" datetime, "authentication_token" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
120
-  (0.0ms) PRAGMA index_list("users")
121
-  (0.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
122
-  (0.1ms) PRAGMA index_list("users")
123
-  (0.0ms) PRAGMA index_info('index_users_on_email')
124
-  (0.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
125
-  (0.1ms) PRAGMA index_list("users")
126
-  (0.1ms) PRAGMA index_info('index_users_on_reset_password_token')
127
-  (0.0ms) PRAGMA index_info('index_users_on_email')
128
-  (0.2ms) CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
129
-  (0.1ms) PRAGMA index_list("users")
130
-  (0.1ms) PRAGMA index_info('index_users_on_confirmation_token')
131
-  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
132
-  (0.0ms) PRAGMA index_info('index_users_on_email')
133
-  (0.2ms) CREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")
134
-  (0.1ms) PRAGMA index_list("users")
135
-  (0.1ms) PRAGMA index_info('index_users_on_unlock_token')
136
-  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
137
-  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
138
-  (0.0ms) PRAGMA index_info('index_users_on_email')
139
-  (0.2ms) CREATE UNIQUE INDEX "index_users_on_authentication_token" ON "users" ("authentication_token")
140
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527020350')
141
-  (3.8ms) commit transaction
142
- Migrating to CreatePapers (20120527023350)
143
-  (0.0ms) begin transaction
144
-  (0.2ms) CREATE TABLE "papers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
145
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527023350')
146
-  (3.8ms) commit transaction
147
- Migrating to AddAttachmentAvatarToPapers (20120527023417)
148
-  (0.0ms) begin transaction
149
-  (0.3ms) ALTER TABLE "papers" ADD "avatar_file_name" varchar(255)
150
-  (0.1ms) ALTER TABLE "papers" ADD "avatar_content_type" varchar(255)
151
-  (0.2ms) ALTER TABLE "papers" ADD "avatar_file_size" integer
152
-  (0.2ms) ALTER TABLE "papers" ADD "avatar_updated_at" datetime
153
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527023417')
154
-  (3.2ms) commit transaction
155
- Migrating to CreateBoos (20120527025142)
156
-  (0.0ms) begin transaction
157
-  (0.3ms) CREATE TABLE "boos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "foo_id" integer, "poly_id" integer, "poly_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
158
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120527025142')
159
-  (3.7ms) commit transaction
160
-  (0.4ms) select sqlite_version(*)
161
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
162
-  (0.0ms) PRAGMA index_list("boos")
163
-  (0.0ms) PRAGMA index_list("foos")
164
-  (0.0ms) PRAGMA index_list("papers")
165
-  (0.0ms) PRAGMA index_list("users")
166
-  (0.0ms) PRAGMA index_info('index_users_on_authentication_token')
167
-  (0.0ms) PRAGMA index_info('index_users_on_unlock_token')
168
-  (0.0ms) PRAGMA index_info('index_users_on_confirmation_token')
169
-  (0.0ms) PRAGMA index_info('index_users_on_reset_password_token')
170
-  (0.0ms) PRAGMA index_info('index_users_on_email')
@@ -1,2 +0,0 @@
1
-  (0.2ms) begin transaction
2
-  (0.0ms) rollback transaction