connections 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +68 -0
- data/Rakefile +2 -0
- data/{lib → app/models}/connections/connection.rb +0 -0
- data/{test/dummy/db/migrate/20120307052433_create_connections.rb → db/migrate/20120311000457_create_connections_connections.rb} +5 -5
- data/lib/connections.rb +3 -3
- data/lib/connections/connectable.rb +1 -1
- data/lib/connections/connector.rb +1 -1
- data/lib/connections/engine.rb +5 -0
- data/lib/connections/version.rb +1 -1
- data/test/connections_test.rb +0 -1
- data/test/dummy/config/routes.rb +1 -57
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +5 -5
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +320 -33
- data/test/dummy/log/test.log +2319 -1935
- metadata +10 -10
- data/README.rdoc +0 -3
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# Connections
|
2
|
+
|
3
|
+
Most social apps needs some kind of follow/like/watch/stalk/etc
|
4
|
+
feature that connects one model to another.
|
5
|
+
|
6
|
+
Instead of having to recreate this functionality for every project we
|
7
|
+
decided to create a gem that easily allows you to add these features
|
8
|
+
using any naming you prefer.
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add the gem to the gemfile:
|
13
|
+
`gem "connections"`
|
14
|
+
|
15
|
+
Install migration:
|
16
|
+
`rake connections:install:migrations`
|
17
|
+
|
18
|
+
This generates a migration that creates a single join table for
|
19
|
+
keeping track of what is connected to what.
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Use `connects_with` and `connectable_with` to add connection capabilities to any model using
|
24
|
+
whatever naming scheme you prefer (follow, like, watch, etc)
|
25
|
+
|
26
|
+
class User < ActiveRecord::Base
|
27
|
+
connects_with :follow, :like
|
28
|
+
connectable_with :follow
|
29
|
+
end
|
30
|
+
|
31
|
+
class Post < ActiveRecord::Base
|
32
|
+
connectable_with :like
|
33
|
+
end
|
34
|
+
|
35
|
+
This will add following methods:
|
36
|
+
|
37
|
+
# Follow
|
38
|
+
user.follow(other_user) # Creates a 'Follow' connection from user -> other_user
|
39
|
+
user.unfollow(other_user) # Removes 'Follow' connection between user -> other_user
|
40
|
+
user.toggle_follow(other_user) # Toggles the connection on/off (useful for toggle buttons)
|
41
|
+
user.follows?(other_user) # Returns true if the user if following other_user
|
42
|
+
user.followings(:user) # Returns a list of all the users the user is following
|
43
|
+
other_user.followers(:user) #Returns a list of all the user's followers
|
44
|
+
|
45
|
+
# Like
|
46
|
+
user.like(post)
|
47
|
+
user.unlike(post)
|
48
|
+
user.toggle_like(post)
|
49
|
+
user.likes?(post)
|
50
|
+
user.likings(:post)
|
51
|
+
post.likers(:user)
|
52
|
+
|
53
|
+
That's it! If you want to add extra functionality to the join model (such
|
54
|
+
as using callbacks etc) you can explicitly define the model in your
|
55
|
+
project like this:
|
56
|
+
|
57
|
+
class Follow < Connections::Connection
|
58
|
+
...
|
59
|
+
end
|
60
|
+
|
61
|
+
## Credits
|
62
|
+
|
63
|
+
This gem was inspired by [socialization](https://github.com/cmer/socialization) that although it didn't quite do what we needed is a pretty useful tool.
|
64
|
+
|
65
|
+
|
66
|
+
## Copyright
|
67
|
+
|
68
|
+
Copyright (c) 2012 Jens Balvig -- Released under the MIT license.
|
data/Rakefile
CHANGED
File without changes
|
@@ -1,11 +1,11 @@
|
|
1
|
-
class
|
1
|
+
class CreateConnectionsConnections < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
create_table :
|
4
|
-
t.
|
5
|
-
t.string :connectable_type
|
3
|
+
create_table :connections_connections do |t|
|
4
|
+
t.integer :connector_id
|
6
5
|
t.integer :connectable_id
|
7
6
|
t.string :connector_type
|
8
|
-
t.
|
7
|
+
t.string :connectable_type
|
8
|
+
t.string :type
|
9
9
|
|
10
10
|
t.timestamps
|
11
11
|
end
|
data/lib/connections.rb
CHANGED
@@ -11,7 +11,7 @@ module Connections
|
|
11
11
|
# user.followers(:user)
|
12
12
|
define_method :"#{t.to_s.sub(/e$/,'')}ers" do |class_name|
|
13
13
|
klass = class_name.to_s.classify.constantize
|
14
|
-
klass.joins(:connections).where("
|
14
|
+
klass.joins(:connections).where("connections_connections.type = ? AND connectable_type = ? AND connectable_id = ?", t.to_s.classify, self.class.table_name.classify, self)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -44,7 +44,7 @@ module Connections
|
|
44
44
|
# user.following(:user)
|
45
45
|
define_method :"#{t.to_s.sub(/e$/,'')}ing" do |class_name|
|
46
46
|
klass = class_name.to_s.classify.constantize
|
47
|
-
klass.joins(:incoming_connections).where("
|
47
|
+
klass.joins(:incoming_connections).where("connections_connections.type = ? AND connector_type = ? AND connector_id = ?", t.to_s.classify, self.class.table_name.classify, self)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
data/lib/connections/version.rb
CHANGED
data/test/connections_test.rb
CHANGED
data/test/dummy/config/routes.rb
CHANGED
@@ -1,58 +1,2 @@
|
|
1
|
-
|
2
|
-
# The priority is based upon order of creation:
|
3
|
-
# first created -> highest priority.
|
4
|
-
|
5
|
-
# Sample of regular route:
|
6
|
-
# match 'products/:id' => 'catalog#view'
|
7
|
-
# Keep in mind you can assign values other than :controller and :action
|
8
|
-
|
9
|
-
# Sample of named route:
|
10
|
-
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
-
|
13
|
-
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
-
# resources :products
|
15
|
-
|
16
|
-
# Sample resource route with options:
|
17
|
-
# resources :products do
|
18
|
-
# member do
|
19
|
-
# get 'short'
|
20
|
-
# post 'toggle'
|
21
|
-
# end
|
22
|
-
#
|
23
|
-
# collection do
|
24
|
-
# get 'sold'
|
25
|
-
# end
|
26
|
-
# end
|
27
|
-
|
28
|
-
# Sample resource route with sub-resources:
|
29
|
-
# resources :products do
|
30
|
-
# resources :comments, :sales
|
31
|
-
# resource :seller
|
32
|
-
# end
|
33
|
-
|
34
|
-
# Sample resource route with more complex sub-resources
|
35
|
-
# resources :products do
|
36
|
-
# resources :comments
|
37
|
-
# resources :sales do
|
38
|
-
# get 'recent', :on => :collection
|
39
|
-
# end
|
40
|
-
# end
|
41
|
-
|
42
|
-
# Sample resource route within a namespace:
|
43
|
-
# namespace :admin do
|
44
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
-
# # (app/controllers/admin/products_controller.rb)
|
46
|
-
# resources :products
|
47
|
-
# end
|
48
|
-
|
49
|
-
# You can have the root of your site routed with "root"
|
50
|
-
# just remember to delete public/index.html.
|
51
|
-
# root :to => 'welcome#index'
|
52
|
-
|
53
|
-
# See how all your routes lay out with "rake routes"
|
54
|
-
|
55
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
-
# match ':controller(/:action(/:id))(.:format)'
|
1
|
+
Rails.application.routes.draw do
|
58
2
|
end
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -10,14 +10,14 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended to check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(:version =>
|
13
|
+
ActiveRecord::Schema.define(:version => 20120311000457) do
|
14
14
|
|
15
|
-
create_table "
|
16
|
-
t.
|
17
|
-
t.string "connectable_type"
|
15
|
+
create_table "connections_connections", :force => true do |t|
|
16
|
+
t.integer "connector_id"
|
18
17
|
t.integer "connectable_id"
|
19
18
|
t.string "connector_type"
|
20
|
-
t.
|
19
|
+
t.string "connectable_type"
|
20
|
+
t.string "type"
|
21
21
|
t.datetime "created_at", :null => false
|
22
22
|
t.datetime "updated_at", :null => false
|
23
23
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,55 +1,342 @@
|
|
1
1
|
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
-
[1m[35m (1.
|
3
|
-
[1m[36m (0.
|
4
|
-
[1m[35m (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")
|
5
40
|
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6
41
|
Migrating to CreateUsers (20120307051243)
|
7
|
-
[1m[35m (0.1ms)[0m begin transaction
|
8
|
-
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
9
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051243')
|
10
|
-
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
11
42
|
Migrating to CreatePosts (20120307051308)
|
12
|
-
[1m[35m (0.1ms)[0m
|
13
|
-
[1m[36m (0.
|
14
|
-
[1m[35m (0.
|
15
|
-
[1m[36m (0.
|
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
|
16
68
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
17
69
|
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
18
70
|
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
19
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
|
20
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)
|
21
98
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
22
|
-
[1m[36m (
|
23
|
-
[1m[35m (
|
24
|
-
[1m[36m (
|
25
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("
|
26
|
-
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
27
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
28
|
-
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120307051308')[0m
|
29
|
-
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051243')
|
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")
|
30
103
|
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
31
104
|
Migrating to CreateUsers (20120307051243)
|
32
105
|
Migrating to CreatePosts (20120307051308)
|
33
|
-
Migrating to
|
34
|
-
[1m[35m (0.
|
35
|
-
[1m[36m (0.
|
36
|
-
[1m[35m (0.
|
37
|
-
[1m[36m (0.
|
38
|
-
[1m[35m (
|
39
|
-
|
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
|
40
167
|
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
41
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("
|
168
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("connections_connections")[0m
|
42
169
|
[1m[35m (0.0ms)[0m PRAGMA index_list("posts")
|
43
170
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
44
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
|
45
200
|
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
46
|
-
[1m[36m (
|
47
|
-
[1m[35m (
|
48
|
-
[1m[36m (
|
49
|
-
[1m[35m (
|
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)
|
50
234
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
51
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")
|
52
302
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
53
|
-
[1m[35m (
|
54
|
-
[1m[36m (
|
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
|
55
305
|
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051308')
|
306
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
307
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
308
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
309
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
310
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
311
|
+
Migrating to CreateUsers (20120307051243)
|
312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
313
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
314
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120307051243')
|
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")
|
339
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
340
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120311000457')
|
341
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120307051243')[0m
|
342
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120307051308')
|