better_delegation 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +22 -0
- data/Rakefile +48 -0
- data/VERSION +1 -0
- data/better_delegation.gemspec +60 -0
- data/init.rb +1 -0
- data/lib/active_support/core_ext/module/better_delegation.rb +33 -0
- data/lib/better_delegation.rb +1 -0
- data/rails/init.rb +1 -0
- data/spec/better_delegation_spec.rb +44 -0
- data/spec/db/database.yml +3 -0
- data/spec/db/schema.rb +11 -0
- data/spec/debug.log +869 -0
- data/spec/spec_helper.rb +14 -0
- metadata +82 -0
data/.document
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Josh N. Abbott
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
= better_delegation
|
2
|
+
|
3
|
+
Better method delegation for ActiveRecord. Specifically when it comes to handling 'nil' objects.
|
4
|
+
|
5
|
+
While Rails does support method delegation to a nil object, it will always return 'nil' if the object delegated to is nil.
|
6
|
+
|
7
|
+
This gem will return whatever the object delegated to would return. It's especially useful for example when you have a method that would typically return 'false' (because that's what the database column default is set to). For example an `is_active` method might return false by default. When the delegating object calls `is_active` on a nil object, the nil object would return 'false', not nil.
|
8
|
+
|
9
|
+
== Note on Patches/Pull Requests
|
10
|
+
|
11
|
+
* Fork the project.
|
12
|
+
* Make your feature addition or bug fix.
|
13
|
+
* Add tests for it. This is important so I don't break it in a
|
14
|
+
future version unintentionally.
|
15
|
+
* Commit, do not mess with rakefile, version, or history.
|
16
|
+
(if you want to have your own version, that is fine but
|
17
|
+
bump version in a commit by itself I can ignore when I pull)
|
18
|
+
* Send me a pull request. Bonus points for topic branches.
|
19
|
+
|
20
|
+
== Copyright
|
21
|
+
|
22
|
+
Copyright (c) 2009 Josh N. Abbott. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "better_delegation"
|
8
|
+
gem.summary = %Q{Extends the Object#delegate method to work better with `nil` objects.}
|
9
|
+
gem.description = %Q{Calling a delegated method on a nil object with better_delegation won't just return nil, it will return the default column value as specified by object being delegated to.}
|
10
|
+
gem.email = "joshnabbott@gmail.com"
|
11
|
+
gem.homepage = "http://github.com/joshnabbott/better_delegation"
|
12
|
+
gem.authors = ["Josh N. Abbott"]
|
13
|
+
gem.add_development_dependency "rspec", '>= 1.0'
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
end
|
16
|
+
rescue LoadError
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
18
|
+
end
|
19
|
+
|
20
|
+
require 'spec/rake/spectask'
|
21
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
22
|
+
spec.libs << 'lib' << 'spec'
|
23
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
24
|
+
end
|
25
|
+
|
26
|
+
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
27
|
+
spec.libs << 'lib' << 'spec'
|
28
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
29
|
+
spec.rcov = true
|
30
|
+
end
|
31
|
+
|
32
|
+
task :spec => :check_dependencies
|
33
|
+
|
34
|
+
task :default => :spec
|
35
|
+
|
36
|
+
require 'rake/rdoctask'
|
37
|
+
Rake::RDocTask.new do |rdoc|
|
38
|
+
if File.exist?('VERSION')
|
39
|
+
version = File.read('VERSION')
|
40
|
+
else
|
41
|
+
version = ""
|
42
|
+
end
|
43
|
+
|
44
|
+
rdoc.rdoc_dir = 'rdoc'
|
45
|
+
rdoc.title = "better_delegation #{version}"
|
46
|
+
rdoc.rdoc_files.include('README*')
|
47
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
48
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.0
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{better_delegation}
|
8
|
+
s.version = "1.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Josh N. Abbott"]
|
12
|
+
s.date = %q{2009-11-11}
|
13
|
+
s.description = %q{Calling a delegated method on a nil object with better_delegation won't just return nil, it will return the default column value as specified by object being delegated to.}
|
14
|
+
s.email = %q{joshnabbott@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"better_delegation.gemspec",
|
27
|
+
"init.rb",
|
28
|
+
"lib/active_support/core_ext/module/better_delegation.rb",
|
29
|
+
"lib/better_delegation.rb",
|
30
|
+
"rails/init.rb",
|
31
|
+
"spec/better_delegation_spec.rb",
|
32
|
+
"spec/db/database.yml",
|
33
|
+
"spec/db/schema.rb",
|
34
|
+
"spec/debug.log",
|
35
|
+
"spec/spec_helper.rb"
|
36
|
+
]
|
37
|
+
s.homepage = %q{http://github.com/joshnabbott/better_delegation}
|
38
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
39
|
+
s.require_paths = ["lib"]
|
40
|
+
s.rubygems_version = %q{1.3.5}
|
41
|
+
s.summary = %q{Extends the Object#delegate method to work better with `nil` objects.}
|
42
|
+
s.test_files = [
|
43
|
+
"spec/better_delegation_spec.rb",
|
44
|
+
"spec/db/schema.rb",
|
45
|
+
"spec/spec_helper.rb"
|
46
|
+
]
|
47
|
+
|
48
|
+
if s.respond_to? :specification_version then
|
49
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
50
|
+
s.specification_version = 3
|
51
|
+
|
52
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
53
|
+
s.add_development_dependency(%q<rspec>, [">= 1.0"])
|
54
|
+
else
|
55
|
+
s.add_dependency(%q<rspec>, [">= 1.0"])
|
56
|
+
end
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<rspec>, [">= 1.0"])
|
59
|
+
end
|
60
|
+
end
|
data/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'rails', 'init')
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module ActiveRecord
|
2
|
+
class Base
|
3
|
+
class << self
|
4
|
+
def delegate(*methods)
|
5
|
+
options = methods.pop
|
6
|
+
unless options.is_a?(Hash) && to = options[:to]
|
7
|
+
raise ArgumentError, "Delegation needs a target. Supply an options hash with a :to key as the last argument (e.g. delegate :hello, :to => :greeter)."
|
8
|
+
end
|
9
|
+
|
10
|
+
if options[:prefix] == true && options[:to].to_s =~ /^[^a-z_]/
|
11
|
+
raise ArgumentError, "Can only automatically set the delegation prefix when delegating to a method."
|
12
|
+
end
|
13
|
+
|
14
|
+
prefix = options[:prefix] && "#{options[:prefix] == true ? to : options[:prefix]}_"
|
15
|
+
|
16
|
+
methods.each do |method|
|
17
|
+
define_method method do
|
18
|
+
send(:delegator_for, to).send(method)
|
19
|
+
end
|
20
|
+
define_method "#{method}=" do |value|
|
21
|
+
send(:delegator_for, to).send("#{method}=", value)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
protected
|
28
|
+
def delegator_for(association)
|
29
|
+
send("#{association}=", self.class.reflect_on_association(association).klass.new) if send(association).nil?
|
30
|
+
send(association)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'active_support', 'core_ext', 'module', 'better_delegation')
|
data/rails/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'better_delegation')
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
2
|
+
|
3
|
+
class BillingAddress < ActiveRecord::Base
|
4
|
+
belongs_to :person
|
5
|
+
end
|
6
|
+
|
7
|
+
class Person < ActiveRecord::Base
|
8
|
+
has_one :billing_address
|
9
|
+
delegate :address_one, :is_primary_address, :to => :billing_address
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "delegate" do
|
13
|
+
before(:each) do
|
14
|
+
@josh = Person.new(:name => 'Josh')
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "Delegator" do
|
18
|
+
it "should respond_to delegate" do
|
19
|
+
ActiveRecord::Base.should respond_to('delegate')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should not raise an error with a nil assocation" do
|
24
|
+
lambda { @josh.address_one }.should_not raise_error(NoMethodError)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should create an empty instance of association when there's a nil association" do
|
28
|
+
@josh.address_one
|
29
|
+
@josh.billing_address.should_not be_nil
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should return associations default value for method delegated to" do
|
33
|
+
@josh.address_one.should be_nil
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should return associations default value for method delegated to" do
|
37
|
+
@josh.is_primary_address.should eql(false)
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should return the value of the method delegated to" do
|
41
|
+
@billing_address = @josh.build_billing_address(:address_one => '123 Happy Lane')
|
42
|
+
@josh.address_one.should eql('123 Happy Lane')
|
43
|
+
end
|
44
|
+
end
|
data/spec/db/schema.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
ActiveRecord::Schema.define(:version => 0) do
|
2
|
+
create_table :people, :force => true do |t|
|
3
|
+
t.string :name
|
4
|
+
end
|
5
|
+
|
6
|
+
create_table :billing_addresses, :force => true do |t|
|
7
|
+
t.belongs_to :person
|
8
|
+
t.string :address_one
|
9
|
+
t.boolean :is_primary_address, :null => false, :default => false
|
10
|
+
end
|
11
|
+
end
|
data/spec/debug.log
ADDED
@@ -0,0 +1,869 @@
|
|
1
|
+
# Logfile created on Wed Nov 11 10:32:35 -0800 2009 by /
|
2
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
3
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
4
|
+
FROM sqlite_master
|
5
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
6
|
+
[0m
|
7
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
8
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
9
|
+
FROM sqlite_master
|
10
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
11
|
+
[0m
|
12
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
13
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
14
|
+
FROM sqlite_master
|
15
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
16
|
+
[0m
|
17
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
18
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
19
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
20
|
+
FROM sqlite_master
|
21
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
22
|
+
[0m
|
23
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
24
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
25
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
26
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
27
|
+
FROM sqlite_master
|
28
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
29
|
+
[0m
|
30
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
31
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
32
|
+
FROM sqlite_master
|
33
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
34
|
+
[0m
|
35
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
36
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
37
|
+
FROM sqlite_master
|
38
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
39
|
+
[0m
|
40
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
41
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
42
|
+
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
43
|
+
FROM sqlite_master
|
44
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
45
|
+
[0m
|
46
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
47
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
48
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
49
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
50
|
+
FROM sqlite_master
|
51
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
52
|
+
[0m
|
53
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
54
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
55
|
+
FROM sqlite_master
|
56
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
57
|
+
[0m
|
58
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
59
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
60
|
+
FROM sqlite_master
|
61
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
62
|
+
[0m
|
63
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
64
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
65
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
66
|
+
FROM sqlite_master
|
67
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
68
|
+
[0m
|
69
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
70
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
71
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
72
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
73
|
+
FROM sqlite_master
|
74
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
75
|
+
[0m
|
76
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
77
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
78
|
+
FROM sqlite_master
|
79
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
80
|
+
[0m
|
81
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
82
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
83
|
+
FROM sqlite_master
|
84
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
85
|
+
[0m
|
86
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
87
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
88
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
89
|
+
FROM sqlite_master
|
90
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
91
|
+
[0m
|
92
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
93
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
94
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
95
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
96
|
+
FROM sqlite_master
|
97
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
98
|
+
[0m
|
99
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
100
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
101
|
+
FROM sqlite_master
|
102
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
103
|
+
[0m
|
104
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
105
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
106
|
+
FROM sqlite_master
|
107
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
108
|
+
[0m
|
109
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
110
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
111
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
112
|
+
FROM sqlite_master
|
113
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
114
|
+
[0m
|
115
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
116
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
117
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
118
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
119
|
+
FROM sqlite_master
|
120
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
121
|
+
[0m
|
122
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
123
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
124
|
+
FROM sqlite_master
|
125
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
126
|
+
[0m
|
127
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
128
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
129
|
+
FROM sqlite_master
|
130
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
131
|
+
[0m
|
132
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
133
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
134
|
+
[4;36;1mSQL (0.1ms)[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.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
139
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
140
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
141
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
142
|
+
FROM sqlite_master
|
143
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
144
|
+
[0m
|
145
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
146
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
147
|
+
FROM sqlite_master
|
148
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
149
|
+
[0m
|
150
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
151
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
152
|
+
FROM sqlite_master
|
153
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
154
|
+
[0m
|
155
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
156
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
157
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
158
|
+
FROM sqlite_master
|
159
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
160
|
+
[0m
|
161
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
162
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
163
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
164
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
165
|
+
FROM sqlite_master
|
166
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
167
|
+
[0m
|
168
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
169
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
170
|
+
FROM sqlite_master
|
171
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
172
|
+
[0m
|
173
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
174
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
175
|
+
FROM sqlite_master
|
176
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
177
|
+
[0m
|
178
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
179
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
180
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
181
|
+
FROM sqlite_master
|
182
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
183
|
+
[0m
|
184
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
185
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
186
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
187
|
+
FROM sqlite_master
|
188
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
189
|
+
[0m
|
190
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
191
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
192
|
+
FROM sqlite_master
|
193
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
194
|
+
[0m
|
195
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
196
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
197
|
+
FROM sqlite_master
|
198
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
199
|
+
[0m
|
200
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
201
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
202
|
+
FROM sqlite_master
|
203
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
204
|
+
[0m
|
205
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
206
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
207
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
208
|
+
FROM sqlite_master
|
209
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
210
|
+
[0m
|
211
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
212
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
213
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
214
|
+
FROM sqlite_master
|
215
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
216
|
+
[0m
|
217
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
218
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
219
|
+
FROM sqlite_master
|
220
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
221
|
+
[0m
|
222
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
223
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
224
|
+
FROM sqlite_master
|
225
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
226
|
+
[0m
|
227
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
228
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
229
|
+
FROM sqlite_master
|
230
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
231
|
+
[0m
|
232
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
233
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
234
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
235
|
+
FROM sqlite_master
|
236
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
237
|
+
[0m
|
238
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
239
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
240
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
241
|
+
FROM sqlite_master
|
242
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
243
|
+
[0m
|
244
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
245
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
246
|
+
FROM sqlite_master
|
247
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
248
|
+
[0m
|
249
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
250
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
251
|
+
FROM sqlite_master
|
252
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
253
|
+
[0m
|
254
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
255
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
256
|
+
FROM sqlite_master
|
257
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
258
|
+
[0m
|
259
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
260
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
261
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
262
|
+
FROM sqlite_master
|
263
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
264
|
+
[0m
|
265
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
266
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
267
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
268
|
+
FROM sqlite_master
|
269
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
270
|
+
[0m
|
271
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
272
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
273
|
+
FROM sqlite_master
|
274
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
275
|
+
[0m
|
276
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
277
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
278
|
+
FROM sqlite_master
|
279
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
280
|
+
[0m
|
281
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
282
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
283
|
+
FROM sqlite_master
|
284
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
285
|
+
[0m
|
286
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
287
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
288
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
289
|
+
FROM sqlite_master
|
290
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
291
|
+
[0m
|
292
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
293
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
294
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
295
|
+
FROM sqlite_master
|
296
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
297
|
+
[0m
|
298
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
299
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
300
|
+
FROM sqlite_master
|
301
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
302
|
+
[0m
|
303
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
304
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
305
|
+
FROM sqlite_master
|
306
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
307
|
+
[0m
|
308
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
309
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
310
|
+
FROM sqlite_master
|
311
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
312
|
+
[0m
|
313
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
314
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
315
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
316
|
+
FROM sqlite_master
|
317
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
318
|
+
[0m
|
319
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
320
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
321
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
322
|
+
FROM sqlite_master
|
323
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
324
|
+
[0m
|
325
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
326
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
327
|
+
FROM sqlite_master
|
328
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
329
|
+
[0m
|
330
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
331
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
332
|
+
FROM sqlite_master
|
333
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
334
|
+
[0m
|
335
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
336
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
337
|
+
FROM sqlite_master
|
338
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
339
|
+
[0m
|
340
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
341
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
342
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
343
|
+
FROM sqlite_master
|
344
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
345
|
+
[0m
|
346
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
347
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
348
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
349
|
+
FROM sqlite_master
|
350
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
351
|
+
[0m
|
352
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
353
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
354
|
+
FROM sqlite_master
|
355
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
356
|
+
[0m
|
357
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
358
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
359
|
+
FROM sqlite_master
|
360
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
361
|
+
[0m
|
362
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
363
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
364
|
+
FROM sqlite_master
|
365
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
366
|
+
[0m
|
367
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
368
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
369
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
370
|
+
FROM sqlite_master
|
371
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
372
|
+
[0m
|
373
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
374
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
375
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
376
|
+
FROM sqlite_master
|
377
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
378
|
+
[0m
|
379
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
380
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
381
|
+
FROM sqlite_master
|
382
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
383
|
+
[0m
|
384
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
385
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
386
|
+
FROM sqlite_master
|
387
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
388
|
+
[0m
|
389
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
390
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
391
|
+
FROM sqlite_master
|
392
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
393
|
+
[0m
|
394
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
395
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
396
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
397
|
+
FROM sqlite_master
|
398
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
399
|
+
[0m
|
400
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
401
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
402
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
403
|
+
FROM sqlite_master
|
404
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
405
|
+
[0m
|
406
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
407
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
408
|
+
FROM sqlite_master
|
409
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
410
|
+
[0m
|
411
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
412
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
413
|
+
FROM sqlite_master
|
414
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
415
|
+
[0m
|
416
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
417
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
418
|
+
FROM sqlite_master
|
419
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
420
|
+
[0m
|
421
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
422
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
423
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
424
|
+
FROM sqlite_master
|
425
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
426
|
+
[0m
|
427
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
428
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
429
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
430
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
431
|
+
FROM sqlite_master
|
432
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
433
|
+
[0m
|
434
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
435
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
436
|
+
FROM sqlite_master
|
437
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
438
|
+
[0m
|
439
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
440
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
441
|
+
FROM sqlite_master
|
442
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
443
|
+
[0m
|
444
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
445
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
446
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
447
|
+
FROM sqlite_master
|
448
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
449
|
+
[0m
|
450
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
451
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
452
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
453
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
454
|
+
FROM sqlite_master
|
455
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
456
|
+
[0m
|
457
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
458
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
459
|
+
FROM sqlite_master
|
460
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
461
|
+
[0m
|
462
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
463
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
464
|
+
FROM sqlite_master
|
465
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
466
|
+
[0m
|
467
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
468
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
469
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
470
|
+
FROM sqlite_master
|
471
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
472
|
+
[0m
|
473
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
474
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
475
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
476
|
+
FROM sqlite_master
|
477
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
478
|
+
[0m
|
479
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
480
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
481
|
+
FROM sqlite_master
|
482
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
483
|
+
[0m
|
484
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
485
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
486
|
+
FROM sqlite_master
|
487
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
488
|
+
[0m
|
489
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
490
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
491
|
+
FROM sqlite_master
|
492
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
493
|
+
[0m
|
494
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
495
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
496
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
497
|
+
FROM sqlite_master
|
498
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
499
|
+
[0m
|
500
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
501
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
502
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
503
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
504
|
+
FROM sqlite_master
|
505
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
506
|
+
[0m
|
507
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
508
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
509
|
+
FROM sqlite_master
|
510
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
511
|
+
[0m
|
512
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
513
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
514
|
+
FROM sqlite_master
|
515
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
516
|
+
[0m
|
517
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
518
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
519
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
520
|
+
FROM sqlite_master
|
521
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
522
|
+
[0m
|
523
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
524
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
525
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
526
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
527
|
+
FROM sqlite_master
|
528
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
529
|
+
[0m
|
530
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
531
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
532
|
+
FROM sqlite_master
|
533
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
534
|
+
[0m
|
535
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
536
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
537
|
+
FROM sqlite_master
|
538
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
539
|
+
[0m
|
540
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
541
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
542
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
543
|
+
FROM sqlite_master
|
544
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
545
|
+
[0m
|
546
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
547
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
548
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
549
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
550
|
+
FROM sqlite_master
|
551
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
552
|
+
[0m
|
553
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
554
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
555
|
+
FROM sqlite_master
|
556
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
557
|
+
[0m
|
558
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
559
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
560
|
+
FROM sqlite_master
|
561
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
562
|
+
[0m
|
563
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
564
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
565
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
566
|
+
FROM sqlite_master
|
567
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
568
|
+
[0m
|
569
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
570
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
571
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
572
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
573
|
+
FROM sqlite_master
|
574
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
575
|
+
[0m
|
576
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
577
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
578
|
+
FROM sqlite_master
|
579
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
580
|
+
[0m
|
581
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
582
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
583
|
+
FROM sqlite_master
|
584
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
585
|
+
[0m
|
586
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
587
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
588
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
589
|
+
FROM sqlite_master
|
590
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
591
|
+
[0m
|
592
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
593
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
594
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
595
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
596
|
+
FROM sqlite_master
|
597
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
598
|
+
[0m
|
599
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
600
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
601
|
+
FROM sqlite_master
|
602
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
603
|
+
[0m
|
604
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
605
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
606
|
+
FROM sqlite_master
|
607
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
608
|
+
[0m
|
609
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
610
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
611
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
612
|
+
FROM sqlite_master
|
613
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
614
|
+
[0m
|
615
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
616
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
617
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
618
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
619
|
+
FROM sqlite_master
|
620
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
621
|
+
[0m
|
622
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
623
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
624
|
+
FROM sqlite_master
|
625
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
626
|
+
[0m
|
627
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
628
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
629
|
+
FROM sqlite_master
|
630
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
631
|
+
[0m
|
632
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
633
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
634
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
635
|
+
FROM sqlite_master
|
636
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
637
|
+
[0m
|
638
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
639
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
640
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
641
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
642
|
+
FROM sqlite_master
|
643
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
644
|
+
[0m
|
645
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
646
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
647
|
+
FROM sqlite_master
|
648
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
649
|
+
[0m
|
650
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255)) [0m
|
651
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
652
|
+
FROM sqlite_master
|
653
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
654
|
+
[0m
|
655
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
656
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
657
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
658
|
+
FROM sqlite_master
|
659
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
660
|
+
[0m
|
661
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
662
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
663
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
664
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
665
|
+
FROM sqlite_master
|
666
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
667
|
+
[0m
|
668
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
669
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
670
|
+
FROM sqlite_master
|
671
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
672
|
+
[0m
|
673
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_active" boolean DEFAULT 'f' NOT NULL) [0m
|
674
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
675
|
+
FROM sqlite_master
|
676
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
677
|
+
[0m
|
678
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
679
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
680
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
681
|
+
FROM sqlite_master
|
682
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
683
|
+
[0m
|
684
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
685
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
686
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
687
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
688
|
+
FROM sqlite_master
|
689
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
690
|
+
[0m
|
691
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
692
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
693
|
+
FROM sqlite_master
|
694
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
695
|
+
[0m
|
696
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
697
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
698
|
+
FROM sqlite_master
|
699
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
700
|
+
[0m
|
701
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
702
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
703
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
704
|
+
FROM sqlite_master
|
705
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
706
|
+
[0m
|
707
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
708
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
709
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
710
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
711
|
+
FROM sqlite_master
|
712
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
713
|
+
[0m
|
714
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
715
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
716
|
+
FROM sqlite_master
|
717
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
718
|
+
[0m
|
719
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
720
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
721
|
+
FROM sqlite_master
|
722
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
723
|
+
[0m
|
724
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
725
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
726
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
727
|
+
FROM sqlite_master
|
728
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
729
|
+
[0m
|
730
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
731
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
732
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
733
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
734
|
+
FROM sqlite_master
|
735
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
736
|
+
[0m
|
737
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
738
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
739
|
+
FROM sqlite_master
|
740
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
741
|
+
[0m
|
742
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
743
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
744
|
+
FROM sqlite_master
|
745
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
746
|
+
[0m
|
747
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
748
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
749
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
750
|
+
FROM sqlite_master
|
751
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
752
|
+
[0m
|
753
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
754
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
755
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
756
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
757
|
+
FROM sqlite_master
|
758
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
759
|
+
[0m
|
760
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
761
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
762
|
+
FROM sqlite_master
|
763
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
764
|
+
[0m
|
765
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
766
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
767
|
+
FROM sqlite_master
|
768
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
769
|
+
[0m
|
770
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
771
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
772
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
773
|
+
FROM sqlite_master
|
774
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
775
|
+
[0m
|
776
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
777
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
778
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
779
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
780
|
+
FROM sqlite_master
|
781
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
782
|
+
[0m
|
783
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
784
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
785
|
+
FROM sqlite_master
|
786
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
787
|
+
[0m
|
788
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
789
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
790
|
+
FROM sqlite_master
|
791
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
792
|
+
[0m
|
793
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
794
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
795
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
796
|
+
FROM sqlite_master
|
797
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
798
|
+
[0m
|
799
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
800
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
801
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
802
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
803
|
+
FROM sqlite_master
|
804
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
805
|
+
[0m
|
806
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
807
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
808
|
+
FROM sqlite_master
|
809
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
810
|
+
[0m
|
811
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
812
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
813
|
+
FROM sqlite_master
|
814
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
815
|
+
[0m
|
816
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
817
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
818
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
819
|
+
FROM sqlite_master
|
820
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
821
|
+
[0m
|
822
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
823
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
824
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
825
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
826
|
+
FROM sqlite_master
|
827
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
828
|
+
[0m
|
829
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
830
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
831
|
+
FROM sqlite_master
|
832
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
833
|
+
[0m
|
834
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
835
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
836
|
+
FROM sqlite_master
|
837
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
838
|
+
[0m
|
839
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
840
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
841
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
842
|
+
FROM sqlite_master
|
843
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
844
|
+
[0m
|
845
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
846
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
847
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
848
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
849
|
+
FROM sqlite_master
|
850
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
851
|
+
[0m
|
852
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
853
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
854
|
+
FROM sqlite_master
|
855
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
856
|
+
[0m
|
857
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "billing_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "address_one" varchar(255), "is_primary_address" boolean DEFAULT 'f' NOT NULL) [0m
|
858
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
859
|
+
FROM sqlite_master
|
860
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
861
|
+
[0m
|
862
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
863
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
864
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
865
|
+
FROM sqlite_master
|
866
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
867
|
+
[0m
|
868
|
+
[4;35;1mSQL (0.0ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
869
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'rubygems'
|
4
|
+
require 'active_record'
|
5
|
+
require 'better_delegation'
|
6
|
+
require 'spec'
|
7
|
+
require 'spec/autorun'
|
8
|
+
|
9
|
+
spec_dir = File.dirname(__FILE__)
|
10
|
+
ActiveRecord::Base.logger = Logger.new(spec_dir + "/debug.log")
|
11
|
+
|
12
|
+
databases = YAML::load(IO.read(spec_dir + "/db/database.yml"))
|
13
|
+
ActiveRecord::Base.establish_connection(databases[ENV["DB"] || "sqlite3"])
|
14
|
+
load(File.join(spec_dir, "db", "schema.rb"))
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: better_delegation
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Josh N. Abbott
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-11-11 00:00:00 -08:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "1.0"
|
24
|
+
version:
|
25
|
+
description: Calling a delegated method on a nil object with better_delegation won't just return nil, it will return the default column value as specified by object being delegated to.
|
26
|
+
email: joshnabbott@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- LICENSE
|
33
|
+
- README.rdoc
|
34
|
+
files:
|
35
|
+
- .document
|
36
|
+
- .gitignore
|
37
|
+
- LICENSE
|
38
|
+
- README.rdoc
|
39
|
+
- Rakefile
|
40
|
+
- VERSION
|
41
|
+
- better_delegation.gemspec
|
42
|
+
- init.rb
|
43
|
+
- lib/active_support/core_ext/module/better_delegation.rb
|
44
|
+
- lib/better_delegation.rb
|
45
|
+
- rails/init.rb
|
46
|
+
- spec/better_delegation_spec.rb
|
47
|
+
- spec/db/database.yml
|
48
|
+
- spec/db/schema.rb
|
49
|
+
- spec/debug.log
|
50
|
+
- spec/spec_helper.rb
|
51
|
+
has_rdoc: true
|
52
|
+
homepage: http://github.com/joshnabbott/better_delegation
|
53
|
+
licenses: []
|
54
|
+
|
55
|
+
post_install_message:
|
56
|
+
rdoc_options:
|
57
|
+
- --charset=UTF-8
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
version:
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: "0"
|
71
|
+
version:
|
72
|
+
requirements: []
|
73
|
+
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 1.3.5
|
76
|
+
signing_key:
|
77
|
+
specification_version: 3
|
78
|
+
summary: Extends the Object#delegate method to work better with `nil` objects.
|
79
|
+
test_files:
|
80
|
+
- spec/better_delegation_spec.rb
|
81
|
+
- spec/db/schema.rb
|
82
|
+
- spec/spec_helper.rb
|