graphql_devise 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.travis.yml +9 -3
- data/CHANGELOG.md +11 -1
- data/README.md +4 -12
- data/lib/generators/graphql_devise/install_generator.rb +43 -33
- data/lib/graphql_devise/version.rb +1 -1
- data/spec/dummy/log/development.log +0 -351
- data/spec/dummy/log/test.log +528 -220712
- data/spec/generators/graphql_devise/install_generator_spec.rb +42 -31
- data/spec/spec_helper.rb +1 -1
- metadata +2 -4
- data/spec/dummy/tmp/development_secret.txt +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd40a4f584377ba8e3cbac60b40a6cc5451ca9ed9cbaaf2d958f07e6d684b36b
|
4
|
+
data.tar.gz: ff5087145891c784cce89cf304dad94adc919ffc926f7db9030c15914e97bcec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d0415cf1b11e0b5f80966710fbe8b15ad373dfaea322e4acbb5bea7020cdf8ae85fe2fe2a47b3a236677f1a49e1a9ad2440de1ba65135020839e85e295fa263
|
7
|
+
data.tar.gz: b7d62d5a5607462f9486b5403370c3f62898b009d1519fb1ddc302d1d8d5ea2e6e601e1fb71510ab17f47c5414e091a2e0ca955782288eafad42637ade300f03
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
@@ -47,13 +47,19 @@ jobs:
|
|
47
47
|
rvm: 2.7.1
|
48
48
|
- gemfile: gemfiles/rails6.0_graphql_edge.gemfile
|
49
49
|
rvm: 2.6.6
|
50
|
-
env:
|
50
|
+
env:
|
51
|
+
- SKIP_COVERALLS=true
|
52
|
+
- EAGER_LOAD=true
|
51
53
|
- gemfile: gemfiles/rails6.0_graphql_edge.gemfile
|
52
54
|
rvm: 2.7.1
|
53
|
-
env:
|
55
|
+
env:
|
56
|
+
- SKIP_COVERALLS=true
|
57
|
+
- EAGER_LOAD=true
|
54
58
|
- gemfile: gemfiles/rails_edge_graphql_edge.gemfile
|
55
59
|
rvm: 2.7.1
|
56
|
-
env:
|
60
|
+
env:
|
61
|
+
- SKIP_COVERALLS=true
|
62
|
+
- EAGER_LOAD=true
|
57
63
|
exclude:
|
58
64
|
- gemfile: gemfiles/rails4.2_graphql1.8.gemfile
|
59
65
|
rvm: 2.7.1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [v0.11.
|
3
|
+
## [v0.11.3](https://github.com/graphql-devise/graphql_devise/tree/v0.11.3) (2020-05-22)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.11.2...v0.11.3)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Default `change\_headers\_on\_each\_request` to false [\#76](https://github.com/graphql-devise/graphql_devise/issues/76)
|
10
|
+
- Replace the auth model concern on generator execution [\#53](https://github.com/graphql-devise/graphql_devise/issues/53)
|
11
|
+
- Generator. Use our modules, change defaults [\#91](https://github.com/graphql-devise/graphql_devise/pull/91) ([mcelicalderon](https://github.com/mcelicalderon))
|
12
|
+
|
13
|
+
## [v0.11.2](https://github.com/graphql-devise/graphql_devise/tree/v0.11.2) (2020-05-07)
|
4
14
|
|
5
15
|
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.11.1...v0.11.2)
|
6
16
|
|
data/README.md
CHANGED
@@ -193,16 +193,12 @@ class User < ApplicationRecord
|
|
193
193
|
:confirmable
|
194
194
|
|
195
195
|
# including after calling the `devise` method is important.
|
196
|
-
# include DeviseTokenAuth::Concerns::User # is also valid (generator includes this one).
|
197
196
|
include GraphqlDevise::Concerns::Model
|
198
197
|
end
|
199
198
|
```
|
200
199
|
|
201
200
|
The install generator can do this for you if you specify the `user_class` option.
|
202
201
|
See [Installation](#installation) for details.
|
203
|
-
The generator will include a different module in your model, `DeviseTokenAuth::Concerns::User` which is also correct,
|
204
|
-
we just made an alias on our namespace for consistency and possible extension.
|
205
|
-
Generators have to be updated to generate our module.
|
206
202
|
|
207
203
|
### Customizing Email Templates
|
208
204
|
The approach of this gem is a bit different from DeviseTokenAuth. We have placed our templates in `app/views/graphql_devise/mailer`,
|
@@ -226,7 +222,6 @@ In our example our model is `User`, so it would look like this:
|
|
226
222
|
# app/controllers/my_controller.rb
|
227
223
|
|
228
224
|
class MyController < ApplicationController
|
229
|
-
# include DeviseTokenAuth::Concerns::SetUserByToken # is also valid (generator includes this one).
|
230
225
|
include GraphqlDevise::Concerns::SetUserByToken
|
231
226
|
|
232
227
|
before_action :authenticate_user!
|
@@ -239,9 +234,6 @@ end
|
|
239
234
|
|
240
235
|
The install generator can do this for you because it executes DTA installer.
|
241
236
|
See [Installation](#Installation) for details.
|
242
|
-
The generator will include a different module in your model, `DeviseTokenAuth::Concerns::SetUserByToken` which is also correct,
|
243
|
-
we just made an alias on our namespace for consistency and possible extension.
|
244
|
-
Generators have to be updated to generate our module.
|
245
237
|
|
246
238
|
### Making Requests
|
247
239
|
Here is a list of the available mutations and queries assuming your mounted model is `User`.
|
@@ -290,10 +282,10 @@ as comments. You can also use
|
|
290
282
|
**[DTA's docs](https://devise-token-auth.gitbook.io/devise-token-auth/config/initialization)** as a reference.
|
291
283
|
In this section the most important configurations will be highlighted.
|
292
284
|
|
293
|
-
- **change_headers_on_each_request:** This configurations defaults to `
|
294
|
-
|
295
|
-
Setting this to `
|
296
|
-
|
285
|
+
- **change_headers_on_each_request:** This configurations defaults to `false`. This will allow you to store the
|
286
|
+
credentials for as long as the token life_span permits. And you can send the same credentials in each request.
|
287
|
+
Setting this to `true` means that tokens will change on each request you make, and the new values will be returned
|
288
|
+
in the headers. So your client needs to handle this.
|
297
289
|
- **batch_request_buffer_throttle:** When change_headers_on_each_request is set to true, you might still want your
|
298
290
|
credentials to be valid more than once as you might send parallel request. The duration you set here will
|
299
291
|
determine how long the same credentials work after the first request is received.
|
@@ -10,57 +10,67 @@ module GraphqlDevise
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def execute_dta_installer
|
13
|
+
# Necessary in case of a re-run of the generator, for DTA to detect concerns already included
|
14
|
+
if File.exist?(File.expand_path("app/models/#{user_class.underscore}.rb", destination_root))
|
15
|
+
gsub_file(
|
16
|
+
"app/models/#{user_class.underscore}.rb",
|
17
|
+
'GraphqlDevise::Concerns::Model',
|
18
|
+
'DeviseTokenAuth::Concerns::User'
|
19
|
+
)
|
20
|
+
end
|
21
|
+
gsub_file(
|
22
|
+
'app/controllers/application_controller.rb',
|
23
|
+
'GraphqlDevise::Concerns::SetUserByToken',
|
24
|
+
'DeviseTokenAuth::Concerns::SetUserByToken'
|
25
|
+
)
|
26
|
+
|
13
27
|
generate 'devise_token_auth:install', "#{user_class} #{mount_path}"
|
14
28
|
end
|
15
29
|
|
16
30
|
def mount_resource_route
|
17
31
|
routes_file = 'config/routes.rb'
|
18
|
-
|
19
|
-
gem_helper = 'mount_graphql_devise_for'
|
20
|
-
gem_route = "#{gem_helper} '#{user_class}', at: '#{mount_path}'"
|
32
|
+
gem_route = "mount_graphql_devise_for '#{user_class}', at: '#{mount_path}'"
|
21
33
|
dta_route = "mount_devise_token_auth_for '#{user_class}', at: '#{mount_path}'"
|
22
|
-
file_start = 'Rails.application.routes.draw do'
|
23
|
-
|
24
|
-
if File.exist?(routes_path)
|
25
|
-
current_route = parse_file_for_line(routes_path, gem_route)
|
26
34
|
|
27
|
-
|
28
|
-
|
29
|
-
else
|
30
|
-
current_dta_route = parse_file_for_line(routes_path, dta_route)
|
35
|
+
if file_contains_str?(routes_file, gem_route)
|
36
|
+
gsub_file(routes_file, /^\s+#{Regexp.escape(dta_route + "\n")}/i, '')
|
31
37
|
|
32
|
-
|
33
|
-
replace_line(routes_path, dta_route, gem_route)
|
34
|
-
else
|
35
|
-
insert_text_after_line(routes_path, file_start, gem_route)
|
36
|
-
end
|
37
|
-
end
|
38
|
+
say_status('skipped', "Routes already exist for #{user_class} at #{mount_path}")
|
38
39
|
else
|
39
|
-
|
40
|
+
gsub_file(routes_file, /#{Regexp.escape(dta_route)}/i, gem_route)
|
40
41
|
end
|
41
42
|
end
|
42
43
|
|
43
|
-
|
44
|
+
def replace_model_concern
|
45
|
+
gsub_file(
|
46
|
+
"app/models/#{user_class.underscore}.rb",
|
47
|
+
/^\s+include DeviseTokenAuth::Concerns::User/,
|
48
|
+
' include GraphqlDevise::Concerns::Model'
|
49
|
+
)
|
50
|
+
end
|
44
51
|
|
45
|
-
def
|
46
|
-
gsub_file(
|
47
|
-
|
48
|
-
|
52
|
+
def replace_controller_concern
|
53
|
+
gsub_file(
|
54
|
+
'app/controllers/application_controller.rb',
|
55
|
+
/^\s+include DeviseTokenAuth::Concerns::SetUserByToken/,
|
56
|
+
' include GraphqlDevise::Concerns::SetUserByToken'
|
57
|
+
)
|
49
58
|
end
|
50
59
|
|
51
|
-
def
|
52
|
-
gsub_file(
|
60
|
+
def set_change_headers_on_each_request_false
|
61
|
+
gsub_file(
|
62
|
+
'config/initializers/devise_token_auth.rb',
|
63
|
+
'# config.change_headers_on_each_request = true',
|
64
|
+
'config.change_headers_on_each_request = false'
|
65
|
+
)
|
53
66
|
end
|
54
67
|
|
55
|
-
|
56
|
-
|
68
|
+
private
|
69
|
+
|
70
|
+
def file_contains_str?(filename, regex_str)
|
71
|
+
path = File.join(destination_root, filename)
|
57
72
|
|
58
|
-
File.
|
59
|
-
f.each_line do |line|
|
60
|
-
match = line if line =~ /(#{Regexp.escape(str)})/mi
|
61
|
-
end
|
62
|
-
end
|
63
|
-
match
|
73
|
+
File.read(path) =~ /(#{Regexp.escape(regex_str)})/i
|
64
74
|
end
|
65
75
|
end
|
66
76
|
end
|
@@ -1,351 +0,0 @@
|
|
1
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
-
↳ bin/rails:14
|
3
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
4
|
-
↳ bin/rails:14
|
5
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
6
|
-
↳ bin/rails:14
|
7
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
8
|
-
↳ bin/rails:14
|
9
|
-
Migrating to CreateUsers (20190815114303)
|
10
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
11
|
-
↳ bin/rails:14
|
12
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
13
|
-
↳ db/migrate/20190815114303_create_users.rb:3
|
14
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190815114303"]]
|
15
|
-
↳ bin/rails:14
|
16
|
-
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
17
|
-
↳ bin/rails:14
|
18
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
19
|
-
↳ bin/rails:14
|
20
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
21
|
-
↳ bin/rails:14
|
22
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-08-24 17:25:07.126983"], ["updated_at", "2019-08-24 17:25:07.126983"]]
|
23
|
-
↳ bin/rails:14
|
24
|
-
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
25
|
-
↳ bin/rails:14
|
26
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
27
|
-
↳ bin/rails:14
|
28
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
29
|
-
↳ bin/rails:14
|
30
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
31
|
-
↳ bin/rails:14
|
32
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
33
|
-
↳ bin/rails:14
|
34
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
35
|
-
↳ bin/rails:14
|
36
|
-
Migrating to CreateUsers (20190815114303)
|
37
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
38
|
-
↳ bin/rails:14
|
39
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
40
|
-
↳ db/migrate/20190815114303_create_users.rb:3
|
41
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190815114303"]]
|
42
|
-
↳ bin/rails:14
|
43
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
44
|
-
↳ bin/rails:14
|
45
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
46
|
-
↳ bin/rails:14
|
47
|
-
[1m[35m (1.9ms)[0m [1m[36mbegin transaction[0m
|
48
|
-
↳ bin/rails:14
|
49
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-08-24 17:25:59.450692"], ["updated_at", "2019-08-24 17:25:59.450692"]]
|
50
|
-
↳ bin/rails:14
|
51
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
52
|
-
↳ bin/rails:14
|
53
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
54
|
-
↳ bin/rails:14
|
55
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
56
|
-
↳ bin/rails:14
|
57
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
58
|
-
↳ bin/rails:14
|
59
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
60
|
-
↳ bin/rails:14
|
61
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
62
|
-
↳ bin/rails:14
|
63
|
-
Migrating to CreateUsers (20190815114303)
|
64
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65
|
-
↳ bin/rails:14
|
66
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "allow_password_change" boolean DEFAULT 0, "remember_created_at" datetime, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" varchar, "locked_at" datetime, "name" varchar, "email" varchar, "tokens" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
67
|
-
↳ db/migrate/20190815114303_create_users.rb:3
|
68
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
69
|
-
↳ db/migrate/20190815114303_create_users.rb:40
|
70
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_uid_and_provider" ON "users" ("uid", "provider")[0m
|
71
|
-
↳ db/migrate/20190815114303_create_users.rb:41
|
72
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
73
|
-
↳ db/migrate/20190815114303_create_users.rb:42
|
74
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")[0m
|
75
|
-
↳ db/migrate/20190815114303_create_users.rb:43
|
76
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
77
|
-
↳ db/migrate/20190815114303_create_users.rb:44
|
78
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190815114303"]]
|
79
|
-
↳ bin/rails:14
|
80
|
-
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
81
|
-
↳ bin/rails:14
|
82
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
83
|
-
↳ bin/rails:14
|
84
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
85
|
-
↳ bin/rails:14
|
86
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-08-24 18:11:40.272846"], ["updated_at", "2019-08-24 18:11:40.272846"]]
|
87
|
-
↳ bin/rails:14
|
88
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
89
|
-
↳ bin/rails:14
|
90
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
91
|
-
↳ bin/rails:14
|
92
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
93
|
-
↳ bin/rails:14
|
94
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
95
|
-
↳ bin/rails:14
|
96
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
97
|
-
↳ bin/rails:14
|
98
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
99
|
-
↳ bin/rails:14
|
100
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
101
|
-
↳ bin/rails:14
|
102
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
103
|
-
↳ bin/rails:14
|
104
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
105
|
-
↳ bin/rails:14
|
106
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
107
|
-
↳ bin/rails:14
|
108
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
109
|
-
↳ bin/rails:14
|
110
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
111
|
-
↳ bin/rails:14
|
112
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
113
|
-
↳ bin/rails:14
|
114
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
115
|
-
↳ bin/rails:14
|
116
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
117
|
-
↳ bin/rails:14
|
118
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
119
|
-
↳ bin/rails:14
|
120
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
121
|
-
↳ bin/rails:14
|
122
|
-
Migrating to CreateUsers (20190815114303)
|
123
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
124
|
-
↳ bin/rails:14
|
125
|
-
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "allow_password_change" boolean DEFAULT 0, "remember_created_at" datetime, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" varchar, "locked_at" datetime, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "last_sign_in_ip" varchar, "sign_in_count" integer, "name" varchar, "email" varchar, "tokens" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
126
|
-
↳ db/migrate/20190815114303_create_users.rb:3
|
127
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
128
|
-
↳ db/migrate/20190815114303_create_users.rb:46
|
129
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_uid_and_provider" ON "users" ("uid", "provider")[0m
|
130
|
-
↳ db/migrate/20190815114303_create_users.rb:47
|
131
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
132
|
-
↳ db/migrate/20190815114303_create_users.rb:48
|
133
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")[0m
|
134
|
-
↳ db/migrate/20190815114303_create_users.rb:49
|
135
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
136
|
-
↳ db/migrate/20190815114303_create_users.rb:50
|
137
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190815114303"]]
|
138
|
-
↳ bin/rails:14
|
139
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
140
|
-
↳ bin/rails:14
|
141
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
142
|
-
↳ bin/rails:14
|
143
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
144
|
-
↳ bin/rails:14
|
145
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-08-24 20:40:58.132035"], ["updated_at", "2019-08-24 20:40:58.132035"]]
|
146
|
-
↳ bin/rails:14
|
147
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
148
|
-
↳ bin/rails:14
|
149
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
150
|
-
↳ bin/rails:14
|
151
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
152
|
-
↳ bin/rails:14
|
153
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
154
|
-
↳ bin/rails:14
|
155
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
156
|
-
↳ bin/rails:14
|
157
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
158
|
-
↳ bin/rails:14
|
159
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
160
|
-
↳ bin/rails:14
|
161
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
162
|
-
↳ bin/rails:14
|
163
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
164
|
-
↳ bin/rails:14
|
165
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
166
|
-
↳ bin/rails:14
|
167
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
168
|
-
↳ bin/rails:14
|
169
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
170
|
-
↳ bin/rails:14
|
171
|
-
Migrating to CreateUsers (20190815114303)
|
172
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
173
|
-
↳ bin/rails:14
|
174
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "allow_password_change" boolean DEFAULT 0, "remember_created_at" datetime, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" varchar, "locked_at" datetime, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "last_sign_in_ip" varchar, "current_sign_in_ip" varchar, "sign_in_count" integer, "name" varchar, "email" varchar, "tokens" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
175
|
-
↳ db/migrate/20190815114303_create_users.rb:3
|
176
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
177
|
-
↳ db/migrate/20190815114303_create_users.rb:47
|
178
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_uid_and_provider" ON "users" ("uid", "provider")[0m
|
179
|
-
↳ db/migrate/20190815114303_create_users.rb:48
|
180
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
181
|
-
↳ db/migrate/20190815114303_create_users.rb:49
|
182
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")[0m
|
183
|
-
↳ db/migrate/20190815114303_create_users.rb:50
|
184
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
185
|
-
↳ db/migrate/20190815114303_create_users.rb:51
|
186
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190815114303"]]
|
187
|
-
↳ bin/rails:14
|
188
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
189
|
-
↳ bin/rails:14
|
190
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
191
|
-
↳ bin/rails:14
|
192
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
193
|
-
↳ bin/rails:14
|
194
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-08-24 20:42:15.104018"], ["updated_at", "2019-08-24 20:42:15.104018"]]
|
195
|
-
↳ bin/rails:14
|
196
|
-
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
197
|
-
↳ bin/rails:14
|
198
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
199
|
-
↳ bin/rails:14
|
200
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
201
|
-
↳ bin/rails:14
|
202
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
203
|
-
↳ bin/rails:14
|
204
|
-
Migrating to AddAuthAvailableToUsers (20190824215150)
|
205
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
206
|
-
↳ bin/rails:14
|
207
|
-
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "users" ADD "auth_available" boolean DEFAULT 1 NOT NULL[0m
|
208
|
-
↳ /Users/mcelicalderon/dev/graphql_devise/db/migrate/20190824215150_add_auth_available_to_users.rb:3
|
209
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190824215150"]]
|
210
|
-
↳ bin/rails:14
|
211
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
212
|
-
↳ bin/rails:14
|
213
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
214
|
-
↳ bin/rails:14
|
215
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
216
|
-
↳ bin/rails:14
|
217
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
218
|
-
↳ bin/rails:14
|
219
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
220
|
-
↳ bin/rails:14
|
221
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
222
|
-
↳ bin/rails:14
|
223
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
224
|
-
↳ bin/rails:14
|
225
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
226
|
-
↳ bin/rails:14
|
227
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
228
|
-
↳ bin/rails:14
|
229
|
-
Migrating to CreateUsers (20190815114303)
|
230
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
231
|
-
↳ bin/rails:14
|
232
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "allow_password_change" boolean DEFAULT 0, "remember_created_at" datetime, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "failed_attempts" integer DEFAULT 0 NOT NULL, "unlock_token" varchar, "locked_at" datetime, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "last_sign_in_ip" varchar, "current_sign_in_ip" varchar, "sign_in_count" integer, "name" varchar, "email" varchar, "tokens" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
233
|
-
↳ db/migrate/20190815114303_create_users.rb:3
|
234
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
235
|
-
↳ db/migrate/20190815114303_create_users.rb:47
|
236
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_uid_and_provider" ON "users" ("uid", "provider")[0m
|
237
|
-
↳ db/migrate/20190815114303_create_users.rb:48
|
238
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
239
|
-
↳ db/migrate/20190815114303_create_users.rb:49
|
240
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")[0m
|
241
|
-
↳ db/migrate/20190815114303_create_users.rb:50
|
242
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_unlock_token" ON "users" ("unlock_token")[0m
|
243
|
-
↳ db/migrate/20190815114303_create_users.rb:51
|
244
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190815114303"]]
|
245
|
-
↳ bin/rails:14
|
246
|
-
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
247
|
-
↳ bin/rails:14
|
248
|
-
Migrating to AddAuthAvailableToUsers (20190824215150)
|
249
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
250
|
-
↳ bin/rails:14
|
251
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "users" ADD "auth_available" boolean DEFAULT 1 NOT NULL[0m
|
252
|
-
↳ db/migrate/20190824215150_add_auth_available_to_users.rb:3
|
253
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190824215150"]]
|
254
|
-
↳ bin/rails:14
|
255
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
256
|
-
↳ bin/rails:14
|
257
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
258
|
-
↳ bin/rails:14
|
259
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
260
|
-
↳ bin/rails:14
|
261
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-08-24 22:11:59.642446"], ["updated_at", "2019-08-24 22:11:59.642446"]]
|
262
|
-
↳ bin/rails:14
|
263
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
264
|
-
↳ bin/rails:14
|
265
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
266
|
-
↳ bin/rails:14
|
267
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
268
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
269
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
270
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
271
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
272
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
273
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
274
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
275
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
276
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
277
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
278
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "users"[0m
|
279
|
-
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
280
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
281
|
-
Migrating to CreateAdmins (20190916012505)
|
282
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
283
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "admins" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "allow_password_change" boolean DEFAULT 0, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "email" varchar, "tokens" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
284
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_email" ON "admins" ("email")[0m
|
285
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_uid_and_provider" ON "admins" ("uid", "provider")[0m
|
286
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_reset_password_token" ON "admins" ("reset_password_token")[0m
|
287
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_confirmation_token" ON "admins" ("confirmation_token")[0m
|
288
|
-
[1m[36mprimary::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190916012505"]]
|
289
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
290
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
291
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
292
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
293
|
-
[1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
294
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
295
|
-
Migrating to CreateGuests (20191013213045)
|
296
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
297
|
-
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "guests" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "allow_password_change" boolean DEFAULT 0, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "email" varchar, "tokens" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
298
|
-
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
299
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
300
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
301
|
-
Migrating to CreateGuests (20191013213045)
|
302
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
303
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "guests" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "allow_password_change" boolean DEFAULT 0, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "email" varchar, "tokens" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
304
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_guests_on_email" ON "guests" ("email")[0m
|
305
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_guests_on_uid_and_provider" ON "guests" ("uid", "provider")[0m
|
306
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_guests_on_reset_password_token" ON "guests" ("reset_password_token")[0m
|
307
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_guests_on_confirmation_token" ON "guests" ("confirmation_token")[0m
|
308
|
-
[1m[36mprimary::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20191013213045"]]
|
309
|
-
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
310
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
311
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
312
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
313
|
-
[1m[35m (3.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
314
|
-
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "hi@tomarket.farm"], ["LIMIT", 1]]
|
315
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "users"[0m
|
316
|
-
[1m[35m (1.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
317
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
318
|
-
[1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
319
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
320
|
-
Migrating to CreateUsersCustomers (20200321121807)
|
321
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
322
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "users_customers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
323
|
-
[1m[36mprimary::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20200321121807"]]
|
324
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
325
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
326
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
327
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
328
|
-
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
329
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
330
|
-
[1m[35m (2.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
331
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
332
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
333
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
334
|
-
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
335
|
-
Migrating to CreateUsersCustomers (20200321121807)
|
336
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
337
|
-
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE "users_customers"[0m
|
338
|
-
[1m[36mprimary::SchemaMigration Destroy (0.2ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ?[0m [["version", "20200321121807"]]
|
339
|
-
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
340
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
341
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
342
|
-
[1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
343
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
344
|
-
Migrating to CreateUsersCustomers (20200321121807)
|
345
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
346
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "users_customers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar DEFAULT 'email' NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "email" varchar, "tokens" text, "name" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
347
|
-
[1m[36mprimary::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20200321121807"]]
|
348
|
-
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
349
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
350
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
351
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|