signinable 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/signinable/model_additions.rb +4 -0
- data/lib/signinable/version.rb +1 -1
- metadata +3 -9
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -137
- data/spec/dummy/log/test.log +0 -1418
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d8325bf916e92dc6a85dee3d346c0538f3aa380
|
4
|
+
data.tar.gz: 1739fe9e7b699bab8ff51ab3b747fda9cbc65262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a95ab6cc9bad781f8b5eae2b81832b13c932d5074985404987262c7947a8119f720695533bfb1cdace0baeb35ec8a8156d48bfc231426e6231f9e19bac95db3
|
7
|
+
data.tar.gz: 93e2a5f0cb30aa271ad28291d9841fd63e91fc034d3ff4c04979ea295dd1f4d096101ca0dc3d9f1b4fbf8915073628fa70740b51ab1cfa55f693f409cc3048a0
|
@@ -16,6 +16,10 @@ module Signinable
|
|
16
16
|
|
17
17
|
def authenticate_with_token(token, ip, user_agent)
|
18
18
|
if(signin = Signin.find_by_token(token))
|
19
|
+
if self.signin_expiration.respond_to?(:call)
|
20
|
+
self.signin_expiration = self.signin_expiration.call(signin.signinable)
|
21
|
+
end
|
22
|
+
|
19
23
|
if self.signin_expiration > 0
|
20
24
|
return nil if signin.expired?
|
21
25
|
end
|
data/lib/signinable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signinable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Novozhenets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -122,9 +122,6 @@ files:
|
|
122
122
|
- spec/dummy/config/routes.rb
|
123
123
|
- spec/dummy/db/migrate/20140103165606_create_users.rb
|
124
124
|
- spec/dummy/db/schema.rb
|
125
|
-
- spec/dummy/db/test.sqlite3
|
126
|
-
- spec/dummy/log/development.log
|
127
|
-
- spec/dummy/log/test.log
|
128
125
|
- spec/dummy/public/404.html
|
129
126
|
- spec/dummy/public/422.html
|
130
127
|
- spec/dummy/public/500.html
|
@@ -154,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
151
|
version: '0'
|
155
152
|
requirements: []
|
156
153
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.4.8
|
158
155
|
signing_key:
|
159
156
|
specification_version: 4
|
160
157
|
summary: Token based signin
|
@@ -182,9 +179,6 @@ test_files:
|
|
182
179
|
- spec/dummy/config.ru
|
183
180
|
- spec/dummy/db/migrate/20140103165606_create_users.rb
|
184
181
|
- spec/dummy/db/schema.rb
|
185
|
-
- spec/dummy/db/test.sqlite3
|
186
|
-
- spec/dummy/log/development.log
|
187
|
-
- spec/dummy/log/test.log
|
188
182
|
- spec/dummy/public/404.html
|
189
183
|
- spec/dummy/public/422.html
|
190
184
|
- spec/dummy/public/500.html
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,137 +0,0 @@
|
|
1
|
-
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
2
|
-
[1m[36m (1.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
3
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
4
|
-
[1m[36m (1.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
5
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
6
|
-
[1m[36m (2.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
7
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
8
|
-
[1m[35m (0.8ms)[0m CREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime)
|
9
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")[0m
|
10
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_signins_on_token" ON "signins" ("token")
|
11
|
-
[1m[36m (2.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
12
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
13
|
-
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
14
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15
|
-
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
16
|
-
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
17
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
18
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
19
|
-
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
20
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
21
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
23
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
24
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
26
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
27
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
28
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
29
|
-
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
30
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
31
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM schema_migrations[0m
|
34
|
-
[1m[36m (2.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
35
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
36
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
37
|
-
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
38
|
-
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
39
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
40
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
41
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
42
|
-
[1m[36m (2.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
43
|
-
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
44
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
45
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
46
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
47
|
-
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
48
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
49
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
50
|
-
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
51
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
52
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
53
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
54
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
55
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM schema_migrations[0m
|
56
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM schema_migrations[0m
|
57
|
-
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
58
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
59
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
60
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
61
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
-
Migrating to CreateUsers (20140103165606)
|
63
|
-
[1m[35m (0.1ms)[0m begin transaction
|
64
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
65
|
-
[1m[35mSQL (1.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103165606"]]
|
66
|
-
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
67
|
-
Migrating to CreateSignins (20140103165607)
|
68
|
-
[1m[35m (0.1ms)[0m begin transaction
|
69
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
70
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")
|
71
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_signins_on_token" ON "signins" ("token")[0m
|
72
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103165607"]]
|
73
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
74
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
75
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
76
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
77
|
-
[1m[36m (2.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
78
|
-
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
79
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
80
|
-
Migrating to CreateUsers (20140103165606)
|
81
|
-
[1m[35m (0.1ms)[0m begin transaction
|
82
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
83
|
-
[1m[35mSQL (1.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103165606"]]
|
84
|
-
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
85
|
-
Migrating to CreateSignins (20140103165607)
|
86
|
-
[1m[35m (0.1ms)[0m begin transaction
|
87
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
88
|
-
[1m[35m (0.1ms)[0m CREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")
|
89
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_signins_on_token" ON "signins" ("token")[0m
|
90
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103165607"]]
|
91
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
92
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
93
|
-
[1m[36m (2.2ms)[0m [1mCREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
94
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")
|
95
|
-
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_signins_on_token" ON "signins" ("token")[0m
|
96
|
-
[1m[35m (0.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
97
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
98
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
99
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
100
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140103165607')
|
101
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140103165606')[0m
|
102
|
-
[1m[36m (2.2ms)[0m [1mCREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
103
|
-
[1m[35m (0.8ms)[0m CREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")
|
104
|
-
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_signins_on_token" ON "signins" ("token")[0m
|
105
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
106
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
107
|
-
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
108
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
109
|
-
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140103165607')
|
110
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140103165606')[0m
|
111
|
-
[1m[36m (1.8ms)[0m [1mCREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
112
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")
|
113
|
-
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_signins_on_token" ON "signins" ("token")[0m
|
114
|
-
[1m[35m (0.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
115
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
116
|
-
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
117
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
118
|
-
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140103165607')
|
119
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140103165606')[0m
|
120
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
121
|
-
[1m[35m (0.7ms)[0m CREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")
|
122
|
-
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_signins_on_token" ON "signins" ("token")[0m
|
123
|
-
[1m[35m (0.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
124
|
-
[1m[36m (0.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
125
|
-
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
126
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
127
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140103165607')
|
128
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140103165606')[0m
|
129
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "signins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "signinable_id" integer NOT NULL, "signinable_type" varchar(255) NOT NULL, "token" varchar(255) NOT NULL, "referer" varchar(255) DEFAULT '', "user_agent" varchar(255) DEFAULT '', "ip" varchar(255) NOT NULL, "expiration_time" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
130
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_signins_on_signinable_id_and_signinable_type" ON "signins" ("signinable_id", "signinable_type")
|
131
|
-
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_signins_on_token" ON "signins" ("token")[0m
|
132
|
-
[1m[35m (0.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
133
|
-
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
134
|
-
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
135
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
136
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140103165607')
|
137
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140103165606')[0m
|