has_defaults 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/test.yml +102 -0
- data/.gitignore +2 -1
- data/.ruby-version +1 -0
- data/CHANGELOG.md +23 -0
- data/Gemfile +1 -0
- data/Gemfile.3.2.mysql2 +16 -0
- data/Gemfile.3.2.mysql2.lock +75 -0
- data/Gemfile.4.2.mysql2 +15 -0
- data/Gemfile.4.2.mysql2.lock +73 -0
- data/Gemfile.4.2.pg +15 -0
- data/Gemfile.4.2.pg.lock +73 -0
- data/Gemfile.5.2.mysql2 +15 -0
- data/Gemfile.5.2.mysql2.lock +71 -0
- data/Gemfile.5.2.pg +16 -0
- data/Gemfile.5.2.pg.lock +77 -0
- data/Gemfile.6.1.pg +15 -0
- data/Gemfile.6.1.pg.lock +75 -0
- data/Gemfile.lock +1 -0
- data/{MIT-LICENSE → LICENSE} +1 -1
- data/README.md +70 -0
- data/Rakefile +5 -29
- data/has_defaults.gemspec +24 -14
- data/lib/has_defaults/active_record_ext.rb +27 -6
- data/lib/has_defaults/version.rb +1 -1
- data/lib/has_defaults.rb +1 -3
- metadata +57 -132
- data/README +0 -74
- data/pkg/has_defaults-0.3.0.gem +0 -0
- data/spec/app_root/log/in_memory.log +0 -147
- data/spec/rails-2.3/Gemfile +0 -8
- data/spec/rails-2.3/Gemfile.lock +0 -51
- data/spec/rails-2.3/Rakefile +0 -11
- data/spec/rails-2.3/app_root/config/boot.rb +0 -129
- data/spec/rails-2.3/app_root/config/database.yml +0 -4
- data/spec/rails-2.3/app_root/config/environment.rb +0 -14
- data/spec/rails-2.3/app_root/config/environments/test.rb +0 -28
- data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
- data/spec/rails-2.3/app_root/config/routes.rb +0 -4
- data/spec/rails-2.3/app_root/lib/console_with_fixtures.rb +0 -4
- data/spec/rails-2.3/app_root/log/.gitignore +0 -1
- data/spec/rails-2.3/app_root/script/console +0 -7
- data/spec/rails-2.3/rcov.opts +0 -2
- data/spec/rails-2.3/spec.opts +0 -4
- data/spec/rails-2.3/spec_helper.rb +0 -24
- data/spec/rails-3.0/.rspec +0 -2
- data/spec/rails-3.0/Gemfile +0 -9
- data/spec/rails-3.0/Gemfile.lock +0 -101
- data/spec/rails-3.0/Rakefile +0 -10
- data/spec/rails-3.0/app_root/.gitignore +0 -4
- data/spec/rails-3.0/app_root/config/application.rb +0 -32
- data/spec/rails-3.0/app_root/config/boot.rb +0 -13
- data/spec/rails-3.0/app_root/config/database.yml +0 -4
- data/spec/rails-3.0/app_root/config/environment.rb +0 -5
- data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
- data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
- data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
- data/spec/rails-3.0/app_root/config/locales/en.yml +0 -5
- data/spec/rails-3.0/app_root/config/routes.rb +0 -58
- data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
- data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
- data/spec/rails-3.0/app_root/script/rails +0 -6
- data/spec/rails-3.0/log/in_memory.log +0 -33
- data/spec/rails-3.0/rcov.opts +0 -2
- data/spec/rails-3.0/spec_helper.rb +0 -25
- data/spec/rails-3.2/.rspec +0 -2
- data/spec/rails-3.2/Gemfile +0 -9
- data/spec/rails-3.2/Gemfile.lock +0 -120
- data/spec/rails-3.2/Rakefile +0 -10
- data/spec/rails-3.2/app_root/.gitignore +0 -4
- data/spec/rails-3.2/app_root/config/application.rb +0 -32
- data/spec/rails-3.2/app_root/config/boot.rb +0 -13
- data/spec/rails-3.2/app_root/config/database.yml +0 -4
- data/spec/rails-3.2/app_root/config/environment.rb +0 -5
- data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
- data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
- data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
- data/spec/rails-3.2/app_root/config/locales/en.yml +0 -5
- data/spec/rails-3.2/app_root/config/routes.rb +0 -58
- data/spec/rails-3.2/app_root/lib/tasks/.gitkeep +0 -0
- data/spec/rails-3.2/app_root/log/.gitkeep +0 -0
- data/spec/rails-3.2/app_root/script/rails +0 -6
- data/spec/rails-3.2/log/in_memory.log +0 -33
- data/spec/rails-3.2/rcov.opts +0 -2
- data/spec/rails-3.2/spec_helper.rb +0 -25
- data/spec/shared/app_root/app/controllers/application_controller.rb +0 -2
- data/spec/shared/app_root/app/models/donut.rb +0 -21
- data/spec/shared/app_root/app/models/model_without_defaults.rb +0 -2
- data/spec/shared/app_root/app/models/pastry.rb +0 -6
- data/spec/shared/app_root/db/migrate/001_create_pastries.rb +0 -18
- data/spec/shared/app_root/db/migrate/002_create_model_without_defaults.rb +0 -12
- data/spec/shared/has_defaults/active_record_ext_spec.rb +0 -84
data/lib/has_defaults.rb
CHANGED
metadata
CHANGED
@@ -1,157 +1,82 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_defaults
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 0
|
10
|
-
version: 0.4.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Henning Koch
|
14
8
|
autorequire:
|
15
|
-
bindir:
|
9
|
+
bindir: exe
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2021-08-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: activerecord
|
23
|
-
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
27
17
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
33
20
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Default values for ActiveRecord models
|
28
|
+
email:
|
29
|
+
- henning.koch@makandra.de
|
37
30
|
executables: []
|
38
|
-
|
39
31
|
extensions: []
|
40
|
-
|
41
32
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
|
44
|
-
- .gitignore
|
45
|
-
-
|
46
|
-
-
|
33
|
+
files:
|
34
|
+
- ".github/workflows/test.yml"
|
35
|
+
- ".gitignore"
|
36
|
+
- ".ruby-version"
|
37
|
+
- CHANGELOG.md
|
38
|
+
- Gemfile
|
39
|
+
- Gemfile.3.2.mysql2
|
40
|
+
- Gemfile.3.2.mysql2.lock
|
41
|
+
- Gemfile.4.2.mysql2
|
42
|
+
- Gemfile.4.2.mysql2.lock
|
43
|
+
- Gemfile.4.2.pg
|
44
|
+
- Gemfile.4.2.pg.lock
|
45
|
+
- Gemfile.5.2.mysql2
|
46
|
+
- Gemfile.5.2.mysql2.lock
|
47
|
+
- Gemfile.5.2.pg
|
48
|
+
- Gemfile.5.2.pg.lock
|
49
|
+
- Gemfile.6.1.pg
|
50
|
+
- Gemfile.6.1.pg.lock
|
51
|
+
- Gemfile.lock
|
52
|
+
- LICENSE
|
53
|
+
- README.md
|
47
54
|
- Rakefile
|
48
55
|
- has_defaults.gemspec
|
49
56
|
- lib/has_defaults.rb
|
50
57
|
- lib/has_defaults/active_record_ext.rb
|
51
58
|
- lib/has_defaults/version.rb
|
52
|
-
- pkg/has_defaults-0.3.0.gem
|
53
|
-
- spec/app_root/log/in_memory.log
|
54
|
-
- spec/rails-2.3/Gemfile
|
55
|
-
- spec/rails-2.3/Gemfile.lock
|
56
|
-
- spec/rails-2.3/Rakefile
|
57
|
-
- spec/rails-2.3/app_root/config/boot.rb
|
58
|
-
- spec/rails-2.3/app_root/config/database.yml
|
59
|
-
- spec/rails-2.3/app_root/config/environment.rb
|
60
|
-
- spec/rails-2.3/app_root/config/environments/test.rb
|
61
|
-
- spec/rails-2.3/app_root/config/preinitializer.rb
|
62
|
-
- spec/rails-2.3/app_root/config/routes.rb
|
63
|
-
- spec/rails-2.3/app_root/lib/console_with_fixtures.rb
|
64
|
-
- spec/rails-2.3/app_root/log/.gitignore
|
65
|
-
- spec/rails-2.3/app_root/script/console
|
66
|
-
- spec/rails-2.3/rcov.opts
|
67
|
-
- spec/rails-2.3/spec.opts
|
68
|
-
- spec/rails-2.3/spec_helper.rb
|
69
|
-
- spec/rails-3.0/.rspec
|
70
|
-
- spec/rails-3.0/Gemfile
|
71
|
-
- spec/rails-3.0/Gemfile.lock
|
72
|
-
- spec/rails-3.0/Rakefile
|
73
|
-
- spec/rails-3.0/app_root/.gitignore
|
74
|
-
- spec/rails-3.0/app_root/config/application.rb
|
75
|
-
- spec/rails-3.0/app_root/config/boot.rb
|
76
|
-
- spec/rails-3.0/app_root/config/database.yml
|
77
|
-
- spec/rails-3.0/app_root/config/environment.rb
|
78
|
-
- spec/rails-3.0/app_root/config/environments/test.rb
|
79
|
-
- spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb
|
80
|
-
- spec/rails-3.0/app_root/config/initializers/inflections.rb
|
81
|
-
- spec/rails-3.0/app_root/config/initializers/mime_types.rb
|
82
|
-
- spec/rails-3.0/app_root/config/initializers/secret_token.rb
|
83
|
-
- spec/rails-3.0/app_root/config/initializers/session_store.rb
|
84
|
-
- spec/rails-3.0/app_root/config/locales/en.yml
|
85
|
-
- spec/rails-3.0/app_root/config/routes.rb
|
86
|
-
- spec/rails-3.0/app_root/lib/tasks/.gitkeep
|
87
|
-
- spec/rails-3.0/app_root/log/.gitkeep
|
88
|
-
- spec/rails-3.0/app_root/script/rails
|
89
|
-
- spec/rails-3.0/log/in_memory.log
|
90
|
-
- spec/rails-3.0/rcov.opts
|
91
|
-
- spec/rails-3.0/spec_helper.rb
|
92
|
-
- spec/rails-3.2/.rspec
|
93
|
-
- spec/rails-3.2/Gemfile
|
94
|
-
- spec/rails-3.2/Gemfile.lock
|
95
|
-
- spec/rails-3.2/Rakefile
|
96
|
-
- spec/rails-3.2/app_root/.gitignore
|
97
|
-
- spec/rails-3.2/app_root/config/application.rb
|
98
|
-
- spec/rails-3.2/app_root/config/boot.rb
|
99
|
-
- spec/rails-3.2/app_root/config/database.yml
|
100
|
-
- spec/rails-3.2/app_root/config/environment.rb
|
101
|
-
- spec/rails-3.2/app_root/config/environments/test.rb
|
102
|
-
- spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb
|
103
|
-
- spec/rails-3.2/app_root/config/initializers/inflections.rb
|
104
|
-
- spec/rails-3.2/app_root/config/initializers/mime_types.rb
|
105
|
-
- spec/rails-3.2/app_root/config/initializers/secret_token.rb
|
106
|
-
- spec/rails-3.2/app_root/config/initializers/session_store.rb
|
107
|
-
- spec/rails-3.2/app_root/config/locales/en.yml
|
108
|
-
- spec/rails-3.2/app_root/config/routes.rb
|
109
|
-
- spec/rails-3.2/app_root/lib/tasks/.gitkeep
|
110
|
-
- spec/rails-3.2/app_root/log/.gitkeep
|
111
|
-
- spec/rails-3.2/app_root/script/rails
|
112
|
-
- spec/rails-3.2/log/in_memory.log
|
113
|
-
- spec/rails-3.2/rcov.opts
|
114
|
-
- spec/rails-3.2/spec_helper.rb
|
115
|
-
- spec/shared/app_root/app/controllers/application_controller.rb
|
116
|
-
- spec/shared/app_root/app/models/donut.rb
|
117
|
-
- spec/shared/app_root/app/models/model_without_defaults.rb
|
118
|
-
- spec/shared/app_root/app/models/pastry.rb
|
119
|
-
- spec/shared/app_root/db/migrate/001_create_pastries.rb
|
120
|
-
- spec/shared/app_root/db/migrate/002_create_model_without_defaults.rb
|
121
|
-
- spec/shared/has_defaults/active_record_ext_spec.rb
|
122
|
-
has_rdoc: true
|
123
59
|
homepage: https://github.com/makandra/has_defaults
|
124
|
-
licenses:
|
125
|
-
|
60
|
+
licenses:
|
61
|
+
- MIT
|
62
|
+
metadata: {}
|
126
63
|
post_install_message:
|
127
64
|
rdoc_options: []
|
128
|
-
|
129
|
-
require_paths:
|
65
|
+
require_paths:
|
130
66
|
- lib
|
131
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
-
|
133
|
-
requirements:
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
134
69
|
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
version: "0"
|
140
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
-
none: false
|
142
|
-
requirements:
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 2.3.0
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
143
74
|
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
|
146
|
-
segments:
|
147
|
-
- 0
|
148
|
-
version: "0"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
149
77
|
requirements: []
|
150
|
-
|
151
|
-
rubyforge_project:
|
152
|
-
rubygems_version: 1.3.7
|
78
|
+
rubygems_version: 3.2.26
|
153
79
|
signing_key:
|
154
|
-
specification_version:
|
155
|
-
summary: Default values for ActiveRecord models
|
80
|
+
specification_version: 4
|
81
|
+
summary: Default values for ActiveRecord models
|
156
82
|
test_files: []
|
157
|
-
|
data/README
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
has_defaults
|
2
|
-
============
|
3
|
-
|
4
|
-
Default values for ActiveRecord models.
|
5
|
-
|
6
|
-
INSTALLATION
|
7
|
-
------------
|
8
|
-
|
9
|
-
In your `Gemfile`
|
10
|
-
|
11
|
-
gem 'has_defaults'
|
12
|
-
|
13
|
-
Now run
|
14
|
-
|
15
|
-
bundle install
|
16
|
-
|
17
|
-
|
18
|
-
USAGE
|
19
|
-
-----
|
20
|
-
|
21
|
-
Add the method call `has_defaults` to your model.
|
22
|
-
|
23
|
-
class Page < ActiveRecord::Base
|
24
|
-
has_defaults :title => "New page", :body => "Put your text here"
|
25
|
-
end
|
26
|
-
|
27
|
-
Attributes will be set only if it's a new record and the attribute is blank.
|
28
|
-
|
29
|
-
Retrieve the default attribute with the `default_for` instance method:
|
30
|
-
|
31
|
-
@page.default_for(:title)
|
32
|
-
|
33
|
-
You can pass Proc as attribute:
|
34
|
-
|
35
|
-
has_defaults :expires_at => proc { Time.now }
|
36
|
-
|
37
|
-
You can override the default attributes as follow:
|
38
|
-
|
39
|
-
Page.has_defaults_options = {:title => "Here's your new page", :body => "Write your page text"}
|
40
|
-
|
41
|
-
NOTE
|
42
|
-
----
|
43
|
-
|
44
|
-
Is **Ruby 1.9** ready!
|
45
|
-
|
46
|
-
MAINTAINER
|
47
|
-
----------
|
48
|
-
|
49
|
-
* Original version by Nando Vieira (<http://simplesideias.com.br>)
|
50
|
-
* Patches in this fork by Henning Koch (<http://www.makandra.de/>)
|
51
|
-
|
52
|
-
LICENSE:
|
53
|
-
--------
|
54
|
-
|
55
|
-
(The MIT License)
|
56
|
-
|
57
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
58
|
-
a copy of this software and associated documentation files (the
|
59
|
-
'Software'), to deal in the Software without restriction, including
|
60
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
61
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
62
|
-
permit persons to whom the Software is furnished to do so, subject to
|
63
|
-
the following conditions:
|
64
|
-
|
65
|
-
The above copyright notice and this permission notice shall be
|
66
|
-
included in all copies or substantial portions of the Software.
|
67
|
-
|
68
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
69
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
70
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
71
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
72
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
73
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
74
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/pkg/has_defaults-0.3.0.gem
DELETED
Binary file
|
@@ -1,147 +0,0 @@
|
|
1
|
-
# Logfile created on Mon Mar 22 10:14:11 +0100 2010 [4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
|
2
|
-
FROM sqlite_master
|
3
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4
|
-
[0m
|
5
|
-
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
6
|
-
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7
|
-
[4;35;1mSQL (0.2ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
8
|
-
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
9
|
-
FROM sqlite_master
|
10
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
11
|
-
[0m
|
12
|
-
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
13
|
-
Migrating to CreatePastries (1)
|
14
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) [0m
|
15
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('1')[0m
|
16
|
-
Migrating to CreateModelWithoutDefaults (2)
|
17
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
18
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('2')[0m
|
19
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')[0m
|
20
|
-
[4;35;1mDonut Load (0.3ms)[0m [0mSELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1[0m
|
21
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')[0m
|
22
|
-
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
23
|
-
FROM sqlite_master
|
24
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
25
|
-
[0m
|
26
|
-
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
27
|
-
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
28
|
-
[4;35;1mSQL (0.2ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
29
|
-
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
30
|
-
FROM sqlite_master
|
31
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
32
|
-
[0m
|
33
|
-
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
34
|
-
Migrating to CreatePastries (1)
|
35
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) [0m
|
36
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('1')[0m
|
37
|
-
Migrating to CreateModelWithoutDefaults (2)
|
38
|
-
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
39
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('2')[0m
|
40
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')[0m
|
41
|
-
[4;35;1mDonut Load (0.3ms)[0m [0mSELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1[0m
|
42
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')[0m
|
43
|
-
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
44
|
-
FROM sqlite_master
|
45
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
46
|
-
[0m
|
47
|
-
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
48
|
-
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
49
|
-
[4;35;1mSQL (0.2ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
50
|
-
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
51
|
-
FROM sqlite_master
|
52
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
53
|
-
[0m
|
54
|
-
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
55
|
-
Migrating to CreatePastries (1)
|
56
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) [0m
|
57
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('1')[0m
|
58
|
-
Migrating to CreateModelWithoutDefaults (2)
|
59
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
60
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('2')[0m
|
61
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')[0m
|
62
|
-
[4;35;1mDonut Load (0.3ms)[0m [0mSELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1[0m
|
63
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')[0m
|
64
|
-
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
65
|
-
FROM sqlite_master
|
66
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
67
|
-
[0m
|
68
|
-
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
69
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
70
|
-
[4;35;1mSQL (0.2ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
71
|
-
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
72
|
-
FROM sqlite_master
|
73
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
74
|
-
[0m
|
75
|
-
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
76
|
-
Migrating to CreatePastries (1)
|
77
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) [0m
|
78
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('1')[0m
|
79
|
-
Migrating to CreateModelWithoutDefaults (2)
|
80
|
-
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
81
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('2')[0m
|
82
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')[0m
|
83
|
-
[4;35;1mDonut Load (0.3ms)[0m [0mSELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1[0m
|
84
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')[0m
|
85
|
-
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
86
|
-
FROM sqlite_master
|
87
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
88
|
-
[0m
|
89
|
-
[4;35;1mSQL (0.7ms)[0m [0mselect sqlite_version(*)[0m
|
90
|
-
[4;36;1mSQL (0.8ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
91
|
-
[4;35;1mSQL (0.5ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
92
|
-
[4;36;1mSQL (0.6ms)[0m [0;1m SELECT name
|
93
|
-
FROM sqlite_master
|
94
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
95
|
-
[0m
|
96
|
-
[4;35;1mSQL (0.3ms)[0m [0mSELECT version FROM schema_migrations[0m
|
97
|
-
Migrating to CreatePastries (1)
|
98
|
-
[4;36;1mSQL (0.9ms)[0m [0;1mCREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) [0m
|
99
|
-
[4;35;1mSQL (0.3ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('1')[0m
|
100
|
-
Migrating to CreateModelWithoutDefaults (2)
|
101
|
-
[4;36;1mSQL (0.6ms)[0m [0;1mCREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
102
|
-
[4;35;1mSQL (0.3ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('2')[0m
|
103
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')[0m
|
104
|
-
[4;35;1mDonut Load (0.3ms)[0m [0mSELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1[0m
|
105
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')[0m
|
106
|
-
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
107
|
-
FROM sqlite_master
|
108
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
109
|
-
[0m
|
110
|
-
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
111
|
-
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
112
|
-
[4;35;1mSQL (0.2ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
113
|
-
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
114
|
-
FROM sqlite_master
|
115
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
116
|
-
[0m
|
117
|
-
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
118
|
-
Migrating to CreatePastries (1)
|
119
|
-
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) [0m
|
120
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('1')[0m
|
121
|
-
Migrating to CreateModelWithoutDefaults (2)
|
122
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
123
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('2')[0m
|
124
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')[0m
|
125
|
-
[4;35;1mDonut Load (0.3ms)[0m [0mSELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1[0m
|
126
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')[0m
|
127
|
-
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
128
|
-
FROM sqlite_master
|
129
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
130
|
-
[0m
|
131
|
-
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
132
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
133
|
-
[4;35;1mSQL (0.2ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
134
|
-
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
135
|
-
FROM sqlite_master
|
136
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
137
|
-
[0m
|
138
|
-
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM schema_migrations[0m
|
139
|
-
Migrating to CreatePastries (1)
|
140
|
-
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "pastries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "flavor" varchar(255), "name" varchar(255), "maker" varchar(255), "main_ingredient" varchar(255)) [0m
|
141
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('1')[0m
|
142
|
-
Migrating to CreateModelWithoutDefaults (2)
|
143
|
-
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "model_without_defaults" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) [0m
|
144
|
-
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO schema_migrations (version) VALUES ('2')[0m
|
145
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'vanilla')[0m
|
146
|
-
[4;35;1mDonut Load (0.3ms)[0m [0mSELECT * FROM "pastries" WHERE ( ("pastries"."type" = 'Donut' ) ) LIMIT 1[0m
|
147
|
-
[4;36;1mDonut Create (0.1ms)[0m [0;1mINSERT INTO "pastries" ("name", "main_ingredient", "type", "maker", "flavor") VALUES('Cream', 'flour', 'Donut', 'Dunkin Donuts', 'cream')[0m
|