connections 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +36 -28
- data/lib/connections/connectable.rb +7 -3
- data/lib/connections/connector.rb +9 -5
- data/lib/connections/version.rb +1 -1
- data/test/connections_test.rb +13 -5
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +25 -340
- data/test/dummy/log/test.log +2438 -3832
- metadata +14 -14
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Connections
|
1
|
+
# Connections [![Build Status](https://secure.travis-ci.org/balvig/connections.png?branch=master)](http://travis-ci.org/balvig/connections)
|
2
2
|
|
3
3
|
Most social apps need some kind of follow/like/watch/stalk/etc
|
4
4
|
features that connects one model to another.
|
@@ -7,8 +7,6 @@ Instead of having to recreate this functionality for every project I
|
|
7
7
|
decided to create a gem that easily allows you to add these features
|
8
8
|
using any naming you prefer.
|
9
9
|
|
10
|
-
[![Build Status](https://secure.travis-ci.org/balvig/connections.png?branch=master)](http://travis-ci.org/balvig/connections)
|
11
|
-
|
12
10
|
## Installation
|
13
11
|
|
14
12
|
Add the gem to the gemfile:
|
@@ -26,42 +24,52 @@ Use `connects_with` to enable a model to connect to other models and
|
|
26
24
|
`connectable_with ` to allow a model to be connected to using
|
27
25
|
whatever naming scheme you prefer (follow, like, watch, etc)
|
28
26
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
```ruby
|
28
|
+
class User < ActiveRecord::Base
|
29
|
+
connects_with :follow, :like
|
30
|
+
connectable_with :follow
|
31
|
+
end
|
33
32
|
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
class Post < ActiveRecord::Base
|
34
|
+
connectable_with :like
|
35
|
+
end
|
36
|
+
```
|
37
37
|
|
38
38
|
Depending on the naming scheme you choose Connections will try to figure out the
|
39
39
|
grammar and add appropriately named methods. For example in the case of
|
40
40
|
"Follow" and "Like" the following methods will be added:
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
42
|
+
```ruby
|
43
|
+
# Follow
|
44
|
+
user.follow(other_user) # Creates a 'Follow' connection from user -> other_user
|
45
|
+
user.unfollow(other_user) # Removes 'Follow' connection between user -> other_user
|
46
|
+
user.toggle_follow(other_user) # Toggles the connection on/off (useful for toggle buttons)
|
47
|
+
user.follows?(other_user) # Returns true if the user if following other_user
|
48
|
+
user.following(:user) # Returns a list of all the users the user is following
|
49
|
+
user.following.size # Returns a total count of followers of the user
|
50
|
+
other_user.followers(:user) #Returns a list of all the user's followers who are class 'User'
|
51
|
+
other_user.followers.size #Returns a total count of all the user's followers
|
52
|
+
|
53
|
+
# Like
|
54
|
+
user.like(post)
|
55
|
+
user.unlike(post)
|
56
|
+
user.toggle_like(post)
|
57
|
+
user.likes?(post)
|
58
|
+
user.liking(:post)
|
59
|
+
post.liking.size
|
60
|
+
post.likers(:user)
|
61
|
+
post.likers.size
|
62
|
+
```
|
57
63
|
|
58
64
|
That's it! If you want to add extra functionality to the join model (such
|
59
65
|
as using callbacks etc) you can explicitly define the model in your
|
60
66
|
project like this:
|
61
67
|
|
62
|
-
|
63
|
-
|
64
|
-
|
68
|
+
```ruby
|
69
|
+
class Follow < Connections::Connection
|
70
|
+
...
|
71
|
+
end
|
72
|
+
```
|
65
73
|
|
66
74
|
## Credits
|
67
75
|
|
@@ -9,9 +9,13 @@ module Connections
|
|
9
9
|
class_eval do
|
10
10
|
|
11
11
|
# user.followers(:user)
|
12
|
-
define_method :"#{t.to_s.sub(/e$/,'')}ers" do |class_name|
|
13
|
-
|
14
|
-
|
12
|
+
define_method :"#{t.to_s.sub(/e$/,'')}ers" do |class_name = nil|
|
13
|
+
if class_name
|
14
|
+
klass = class_name.to_s.classify.constantize
|
15
|
+
klass.joins(:connections).where("connections_connections.type = ? AND connectable_type = ? AND connectable_id = ?", t.to_s.classify, self.class.base_class.to_s, self)
|
16
|
+
else
|
17
|
+
incoming_connections.where('connections_connections.type = ?', t.to_s.classify)
|
18
|
+
end
|
15
19
|
end
|
16
20
|
end
|
17
21
|
end
|
@@ -13,8 +13,7 @@ module Connections
|
|
13
13
|
|
14
14
|
# user.follow(other_user)
|
15
15
|
define_method t do |connectable|
|
16
|
-
|
17
|
-
klass.create do |c|
|
16
|
+
Connections::Connection.create do |c|
|
18
17
|
c.type = t.to_s.classify
|
19
18
|
c.connector = self
|
20
19
|
c.connectable = connectable
|
@@ -42,10 +41,15 @@ module Connections
|
|
42
41
|
end
|
43
42
|
|
44
43
|
# user.following(:user)
|
45
|
-
define_method :"#{t.to_s.sub(/e$/,'')}ing" do |class_name|
|
46
|
-
|
47
|
-
|
44
|
+
define_method :"#{t.to_s.sub(/e$/,'')}ing" do |class_name = nil|
|
45
|
+
if class_name
|
46
|
+
klass = class_name.to_s.classify.constantize
|
47
|
+
klass.joins(:incoming_connections).where("connections_connections.type = ? AND connector_type = ? AND connector_id = ?", t.to_s.classify, self.class.base_class.to_s, self)
|
48
|
+
else
|
49
|
+
connections.where('connections_connections.type = ?', t.to_s.classify)
|
50
|
+
end
|
48
51
|
end
|
52
|
+
|
49
53
|
end
|
50
54
|
end
|
51
55
|
end
|
data/lib/connections/version.rb
CHANGED
data/test/connections_test.rb
CHANGED
@@ -29,25 +29,32 @@ class ConnectionsTest < ActiveSupport::TestCase
|
|
29
29
|
assert !@follower.follows?(@user)
|
30
30
|
end
|
31
31
|
|
32
|
-
test '#following' do
|
32
|
+
test '#following with arg' do
|
33
33
|
@follower.follow(@user)
|
34
34
|
@follower.follow(@post)
|
35
35
|
assert_equal [@user], @follower.following(:user)
|
36
36
|
assert_equal [@post], @follower.following(:post)
|
37
37
|
end
|
38
38
|
|
39
|
-
test '#
|
40
|
-
|
41
|
-
|
39
|
+
test '#following without arg' do
|
40
|
+
@follower.follow(@user)
|
41
|
+
@follower.follow(@post)
|
42
|
+
assert_equal 2, @follower.following.size
|
42
43
|
end
|
43
44
|
|
44
|
-
test '#followers' do
|
45
|
+
test '#followers with arg' do
|
45
46
|
@follower.follow(@user)
|
46
47
|
@follower.follow(@post)
|
47
48
|
assert_equal [@follower], @user.followers(:user)
|
48
49
|
assert_equal [@follower], @post.followers(:user)
|
49
50
|
end
|
50
51
|
|
52
|
+
test '#followers without arg' do
|
53
|
+
@follower.follow(@post)
|
54
|
+
@user.follow(@post)
|
55
|
+
assert_equal 2, @post.followers.size
|
56
|
+
end
|
57
|
+
|
51
58
|
# Explicit Like class defined
|
52
59
|
test '#like' do
|
53
60
|
assert !@user.likes?(@post)
|
@@ -78,4 +85,5 @@ class ConnectionsTest < ActiveSupport::TestCase
|
|
78
85
|
@user.like(@post)
|
79
86
|
assert_equal [@post], @user.likes.map(&:connectable)
|
80
87
|
end
|
88
|
+
|
81
89
|
end
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,342 +1,27 @@
|
|
1
|
-
|
2
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
4
|
-
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
7
|
-
[1m[35m (0.0ms)[0m begin transaction
|
8
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connecter_id" integer, "connectable_id" integer, "connecter_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
9
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120311000457')
|
10
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
11
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
12
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
13
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
14
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
15
|
-
Migrating to CreateUsers (20120307051243)
|
16
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
17
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
19
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120307051243')[0m
|
20
|
-
[1m[35m (2.4ms)[0m commit transaction
|
21
|
-
Migrating to CreatePosts (20120307051308)
|
22
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
24
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120307051308')[0m
|
25
|
-
[1m[35m (0.9ms)[0m commit transaction
|
26
|
-
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
27
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
28
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("connections_connections")[0m
|
29
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
30
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
31
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
32
|
-
Migrating to CreateUsers (20120307051243)
|
33
|
-
Migrating to CreatePosts (20120307051308)
|
34
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
35
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
36
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
37
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
38
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
39
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
40
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
41
|
-
Migrating to CreateUsers (20120307051243)
|
42
|
-
Migrating to CreatePosts (20120307051308)
|
43
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
44
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
45
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
46
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
47
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
48
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
49
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
50
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connecter_id" integer, "connectable_id" integer, "connecter_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
51
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
52
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
53
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
54
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
55
|
-
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
56
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
57
|
-
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120311000457')
|
58
|
-
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120307051243')[0m
|
59
|
-
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051308')
|
60
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
61
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
62
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
63
|
-
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
64
|
-
[1m[35m (0.0ms)[0m begin transaction
|
65
|
-
[1m[36m (0.5ms)[0m [1mDROP TABLE "connections_connections"[0m
|
66
|
-
[1m[35m (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20120311000457'
|
67
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
68
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
69
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
70
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
71
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
72
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
73
|
-
Migrating to CreateUsers (20120307051243)
|
74
|
-
Migrating to CreatePosts (20120307051308)
|
75
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
76
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
77
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
78
|
-
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120311000457')[0m
|
79
|
-
[1m[35m (1.0ms)[0m commit transaction
|
80
|
-
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
81
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
82
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("connections_connections")[0m
|
83
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
84
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
85
|
-
[1m[36m (0.6ms)[0m [1mselect sqlite_version(*)[0m
|
86
|
-
[1m[35m (2.3ms)[0m DROP TABLE "connections_connections"
|
87
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
88
|
-
[1m[35m (1.6ms)[0m DROP TABLE "posts"
|
89
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
90
|
-
[1m[35m (1.5ms)[0m DROP TABLE "users"
|
91
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
92
|
-
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
93
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
94
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
95
|
-
Migrating to CreateUsers (20120307051243)
|
96
|
-
Migrating to CreatePosts (20120307051308)
|
97
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
98
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
99
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
100
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
101
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
102
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
103
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
104
|
-
Migrating to CreateUsers (20120307051243)
|
105
|
-
Migrating to CreatePosts (20120307051308)
|
106
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
107
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
108
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
109
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
110
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
111
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
112
|
-
|
113
|
-
|
114
|
-
Started GET "/" for 127.0.0.1 at Sat Mar 10 20:25:05 -0800 2012
|
115
|
-
|
116
|
-
ActionController::RoutingError (No route matches [GET] "/"):
|
117
|
-
actionpack (3.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
118
|
-
actionpack (3.2.2) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
119
|
-
railties (3.2.2) lib/rails/rack/logger.rb:26:in `call_app'
|
120
|
-
railties (3.2.2) lib/rails/rack/logger.rb:16:in `call'
|
121
|
-
actionpack (3.2.2) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
122
|
-
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
|
123
|
-
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
|
124
|
-
activesupport (3.2.2) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
125
|
-
rack (1.4.1) lib/rack/lock.rb:15:in `call'
|
126
|
-
actionpack (3.2.2) lib/action_dispatch/middleware/static.rb:61:in `call'
|
127
|
-
railties (3.2.2) lib/rails/engine.rb:479:in `call'
|
128
|
-
railties (3.2.2) lib/rails/application.rb:220:in `call'
|
129
|
-
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
|
130
|
-
railties (3.2.2) lib/rails/rack/log_tailer.rb:14:in `call'
|
131
|
-
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
|
132
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
|
133
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
|
134
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
|
135
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:in `start'
|
136
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
|
137
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:95:in `start'
|
138
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:in `each'
|
139
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:in `start'
|
140
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:23:in `start'
|
141
|
-
/Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:82:in `start'
|
142
|
-
rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
|
143
|
-
rack (1.4.1) lib/rack/server.rb:265:in `start'
|
144
|
-
railties (3.2.2) lib/rails/commands/server.rb:70:in `start'
|
145
|
-
railties (3.2.2) lib/rails/commands.rb:55
|
146
|
-
railties (3.2.2) lib/rails/commands.rb:50:in `tap'
|
147
|
-
railties (3.2.2) lib/rails/commands.rb:50
|
148
|
-
script/rails:6:in `require'
|
149
|
-
script/rails:6
|
150
|
-
|
151
|
-
|
152
|
-
Rendered /Users/jens/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.0ms)
|
153
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
154
|
-
Migrating to CreateUsers (20120307051243)
|
155
|
-
Migrating to CreatePosts (20120307051308)
|
156
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
157
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
158
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
159
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
160
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
161
|
-
[1m[36m (0.5ms)[0m [1mselect sqlite_version(*)[0m
|
162
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
163
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("connections_connections")[0m
|
164
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
165
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
166
|
-
[1m[36m (0.5ms)[0m [1mselect sqlite_version(*)[0m
|
167
|
-
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
168
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("connections_connections")[0m
|
169
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
170
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
171
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
172
|
-
Migrating to CreateUsers (20120307051243)
|
173
|
-
Migrating to CreatePosts (20120307051308)
|
174
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
175
|
-
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
176
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
177
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("connections_connections")
|
178
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
179
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
180
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
181
|
-
[1m[35m (2.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
182
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
183
|
-
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
184
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
185
|
-
Migrating to CreateUsers (20120307051243)
|
186
|
-
[1m[35m (0.0ms)[0m begin transaction
|
187
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
188
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051243')
|
189
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
190
|
-
Migrating to CreatePosts (20120307051308)
|
191
|
-
[1m[35m (0.0ms)[0m begin transaction
|
192
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
193
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051308')
|
194
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
195
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
196
|
-
[1m[35m (0.0ms)[0m begin transaction
|
197
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
198
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120311000457')
|
199
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
200
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
201
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
202
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
203
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
204
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
205
|
-
[1m[36m (0.6ms)[0m [1mselect sqlite_version(*)[0m
|
206
|
-
[1m[35m (2.7ms)[0m DROP TABLE "connections_connections"
|
207
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
208
|
-
[1m[35m (1.1ms)[0m DROP TABLE "posts"
|
209
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
210
|
-
[1m[35m (1.1ms)[0m DROP TABLE "users"
|
211
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
212
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
213
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
214
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
215
|
-
Migrating to CreateUsers (20120307051243)
|
216
|
-
Migrating to CreatePosts (20120307051308)
|
217
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
218
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
219
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
220
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
221
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
222
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
223
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
224
|
-
Migrating to CreateUsers (20120307051243)
|
225
|
-
Migrating to CreatePosts (20120307051308)
|
226
|
-
Migrating to CreateConnectionsConnections (20120311045747)
|
227
|
-
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
228
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229
|
-
[1m[35m (0.1ms)[0m CREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
230
|
-
SQLite3::SQLException: table "connections_connections" already exists: CREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
231
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
232
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
233
|
-
[1m[35m (2.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
234
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
235
|
-
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
236
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
237
|
-
Migrating to CreateUsers (20120307051243)
|
238
|
-
[1m[35m (0.0ms)[0m begin transaction
|
239
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
240
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051243')
|
241
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
242
|
-
Migrating to CreatePosts (20120307051308)
|
243
|
-
[1m[35m (0.0ms)[0m begin transaction
|
244
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
245
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051308')
|
246
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
247
|
-
Migrating to CreateConnectionsConnections (20120311045747)
|
248
|
-
[1m[35m (0.0ms)[0m begin transaction
|
249
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
250
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120311045747')
|
251
|
-
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
252
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
253
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
254
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
255
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
256
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
257
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
258
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
259
|
-
[1m[36m (2.6ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
260
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
261
|
-
[1m[36m (1.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
262
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
263
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
264
|
-
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
265
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
266
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120311045747')
|
267
|
-
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120307051243')[0m
|
268
|
-
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051308')
|
269
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
270
|
-
[1m[35m (2.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
271
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
272
|
-
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
273
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
274
|
-
Migrating to CreateUsers (20120307051243)
|
275
|
-
[1m[35m (0.1ms)[0m begin transaction
|
276
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
277
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051243')
|
278
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
279
|
-
Migrating to CreatePosts (20120307051308)
|
280
|
-
[1m[35m (0.0ms)[0m begin transaction
|
281
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
282
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051308')
|
283
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
284
|
-
Migrating to CreateConnections (20120311000457)
|
285
|
-
[1m[35m (0.0ms)[0m begin transaction
|
286
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
287
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120311000457')
|
288
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
289
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
290
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
291
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections")
|
292
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
293
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
294
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
295
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
296
|
-
[1m[36m (1.6ms)[0m [1mCREATE TABLE "connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
297
|
-
[1m[35m (1.6ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
298
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
299
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
300
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
301
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
302
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
303
|
-
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120311000457')
|
304
|
-
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120307051243')[0m
|
305
|
-
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051308')
|
1
|
+
Connecting to database specified by database.yml
|
306
2
|
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
307
|
-
[1m[35m (
|
308
|
-
[1m[36m (
|
309
|
-
[1m[35m (
|
310
|
-
|
311
|
-
|
312
|
-
[1m[35m (
|
313
|
-
[1m[36m (
|
314
|
-
[1m[35m (
|
315
|
-
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
316
|
-
Migrating to CreatePosts (20120307051308)
|
317
|
-
[1m[35m (0.0ms)[0m begin transaction
|
318
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
319
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051308')
|
320
|
-
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
321
|
-
Migrating to CreateConnectionsConnections (20120311000457)
|
322
|
-
[1m[35m (0.1ms)[0m begin transaction
|
323
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
324
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120311000457')
|
325
|
-
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
326
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
327
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
328
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("connections_connections")
|
329
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("posts")[0m
|
330
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
331
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
332
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
333
|
-
[1m[36m (2.8ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
334
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
335
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
336
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
337
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
338
|
-
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[35m (135.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
4
|
+
[1m[36m (4.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5
|
+
[1m[35m (2.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
6
|
+
Connecting to database specified by database.yml
|
7
|
+
[1m[36m (1.5ms)[0m [1mselect sqlite_version(*)[0m
|
8
|
+
[1m[35m (41.7ms)[0m CREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
9
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
10
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
339
11
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
340
|
-
[1m[35m (
|
341
|
-
[1m[36m (
|
342
|
-
[1m[35m (
|
12
|
+
[1m[35m (5.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120311000457')
|
13
|
+
[1m[36m (4.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120307051243')[0m
|
14
|
+
[1m[35m (5.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051308')
|
15
|
+
[1m[36m (1.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
[1m[36m (1.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
18
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
19
|
+
[1m[36m (44.5ms)[0m [1mCREATE TABLE "connections_connections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "connector_id" integer, "connectable_id" integer, "connector_type" varchar(255), "connectable_type" varchar(255), "type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
20
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
21
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
22
|
+
[1m[35m (5.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
23
|
+
[1m[36m (4.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
24
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
25
|
+
[1m[36m (4.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120311000457')[0m
|
26
|
+
[1m[35m (4.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051243')
|
27
|
+
[1m[36m (5.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120307051308')[0m
|