devise_token_auth 0.1.30.beta1 → 0.1.30.beta2
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.
- checksums.yaml +4 -4
- data/app/controllers/devise_token_auth/concerns/set_user_by_token.rb +12 -6
- data/app/models/devise_token_auth/concerns/user.rb +4 -2
- data/lib/devise_token_auth/version.rb +1 -1
- data/test/dummy/config/application.yml.bk +8 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1060 -0
- data/test/dummy/log/test.log +18321 -0
- data/test/dummy/tmp/generators/app/models/mang.rb +3 -0
- data/test/dummy/tmp/generators/app/models/user.rb +0 -4
- data/test/dummy/tmp/generators/config/routes.rb +9 -0
- data/test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_mangs.rb +54 -0
- data/test/dummy/tmp/generators/db/migrate/{20141028035257_devise_token_auth_create_users.rb → 20141028204705_devise_token_auth_create_users.rb} +0 -0
- metadata +11 -3
@@ -0,0 +1,54 @@
|
|
1
|
+
class DeviseTokenAuthCreateMangs < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table(:mangs) do |t|
|
4
|
+
## Database authenticatable
|
5
|
+
t.string :email
|
6
|
+
t.string :encrypted_password, :null => false, :default => ""
|
7
|
+
|
8
|
+
## Recoverable
|
9
|
+
t.string :reset_password_token
|
10
|
+
t.datetime :reset_password_sent_at
|
11
|
+
|
12
|
+
## Rememberable
|
13
|
+
t.datetime :remember_created_at
|
14
|
+
|
15
|
+
## Trackable
|
16
|
+
t.integer :sign_in_count, :default => 0, :null => false
|
17
|
+
t.datetime :current_sign_in_at
|
18
|
+
t.datetime :last_sign_in_at
|
19
|
+
t.string :current_sign_in_ip
|
20
|
+
t.string :last_sign_in_ip
|
21
|
+
|
22
|
+
## Confirmable
|
23
|
+
t.string :confirmation_token
|
24
|
+
t.datetime :confirmed_at
|
25
|
+
t.datetime :confirmation_sent_at
|
26
|
+
t.string :unconfirmed_email # Only if using reconfirmable
|
27
|
+
|
28
|
+
## Lockable
|
29
|
+
# t.integer :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
|
30
|
+
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
31
|
+
# t.datetime :locked_at
|
32
|
+
|
33
|
+
## User Info
|
34
|
+
t.string :name
|
35
|
+
t.string :nickname
|
36
|
+
t.string :image
|
37
|
+
|
38
|
+
## unique oauth id
|
39
|
+
t.string :provider
|
40
|
+
t.string :uid, :null => false, :default => ""
|
41
|
+
|
42
|
+
## Tokens
|
43
|
+
t.text :tokens
|
44
|
+
|
45
|
+
t.timestamps
|
46
|
+
end
|
47
|
+
|
48
|
+
add_index :mangs, :email
|
49
|
+
add_index :mangs, :uid, :unique => true
|
50
|
+
add_index :mangs, :reset_password_token, :unique => true
|
51
|
+
# add_index :mangs, :confirmation_token, :unique => true
|
52
|
+
# add_index :mangs, :unlock_token, :unique => true
|
53
|
+
end
|
54
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_token_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.30.
|
4
|
+
version: 0.1.30.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lynn Hurley
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- test/dummy/bin/spring
|
163
163
|
- test/dummy/config.ru
|
164
164
|
- test/dummy/config/application.rb
|
165
|
+
- test/dummy/config/application.yml.bk
|
165
166
|
- test/dummy/config/boot.rb
|
166
167
|
- test/dummy/config/database.yml
|
167
168
|
- test/dummy/config/environment.rb
|
@@ -197,9 +198,12 @@ files:
|
|
197
198
|
- test/dummy/public/422.html
|
198
199
|
- test/dummy/public/500.html
|
199
200
|
- test/dummy/public/favicon.ico
|
201
|
+
- test/dummy/tmp/generators/app/models/mang.rb
|
200
202
|
- test/dummy/tmp/generators/app/models/user.rb
|
201
203
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
202
|
-
- test/dummy/tmp/generators/
|
204
|
+
- test/dummy/tmp/generators/config/routes.rb
|
205
|
+
- test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_mangs.rb
|
206
|
+
- test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_users.rb
|
203
207
|
- test/dummy/tmp/restart.txt
|
204
208
|
- test/fixtures/evil_users.yml
|
205
209
|
- test/fixtures/mangs.yml
|
@@ -272,6 +276,7 @@ test_files:
|
|
272
276
|
- test/dummy/bin/rake
|
273
277
|
- test/dummy/bin/spring
|
274
278
|
- test/dummy/config/application.rb
|
279
|
+
- test/dummy/config/application.yml.bk
|
275
280
|
- test/dummy/config/boot.rb
|
276
281
|
- test/dummy/config/database.yml
|
277
282
|
- test/dummy/config/environment.rb
|
@@ -310,9 +315,12 @@ test_files:
|
|
310
315
|
- test/dummy/public/favicon.ico
|
311
316
|
- test/dummy/Rakefile
|
312
317
|
- test/dummy/README.rdoc
|
318
|
+
- test/dummy/tmp/generators/app/models/mang.rb
|
313
319
|
- test/dummy/tmp/generators/app/models/user.rb
|
314
320
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
315
|
-
- test/dummy/tmp/generators/
|
321
|
+
- test/dummy/tmp/generators/config/routes.rb
|
322
|
+
- test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_mangs.rb
|
323
|
+
- test/dummy/tmp/generators/db/migrate/20141028204705_devise_token_auth_create_users.rb
|
316
324
|
- test/dummy/tmp/restart.txt
|
317
325
|
- test/fixtures/evil_users.yml
|
318
326
|
- test/fixtures/mangs.yml
|