polivalente 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20220124153504_create_users.rb +6 -5
- data/lib/polivalente/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ce917df3ed0705a4fee15d90e46ed49968d603b0345169248eb839b6f2b5d1
|
4
|
+
data.tar.gz: c27b1c1ccd2252a77574802618ea0e1ef796b09b40bd992908b7a114ec4b4d46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d9bc8fc6774a833c6ecb8c3da88bc0b6afd155bfd5a19887569963945a0d6944b791429a5ad0610c58b7bf2d54a906f63582509f44e254fbe480f103c6b09ff
|
7
|
+
data.tar.gz: 0fe5a86a732c6857dea84f17614dc4431e69e1ff31f3be5ca0d1794192695b8fe24cbec6a2736743a5a5978317d05c2fdad15a42dcf72ebf006a8cd130d50feb
|
@@ -1,10 +1,10 @@
|
|
1
1
|
class CreateUsers < ActiveRecord::Migration[7.0]
|
2
2
|
def change
|
3
3
|
create_table :users do |t|
|
4
|
-
t.string :first_name, null: false,
|
5
|
-
t.string :last_name, null: false,
|
6
|
-
t.boolean :is_admin, null: false,
|
7
|
-
t.boolean :is_verified, null: false,
|
4
|
+
t.string :first_name, null: false, index: true
|
5
|
+
t.string :last_name, null: false, index: true
|
6
|
+
t.boolean :is_admin, null: false, index: true, default: false
|
7
|
+
t.boolean :is_verified, null: false, index: true, default: false
|
8
8
|
|
9
9
|
## Devise::DatabaseAuthenticatable
|
10
10
|
t.string :email, null: false, default: "", index: { unique: true }
|
@@ -25,9 +25,10 @@ class CreateUsers < ActiveRecord::Migration[7.0]
|
|
25
25
|
t.string :last_sign_in_ip
|
26
26
|
|
27
27
|
## Devise::Confirmable
|
28
|
-
t.string :confirmation_token, unique: true
|
28
|
+
t.string :confirmation_token, index: { unique: true }
|
29
29
|
t.datetime :confirmed_at
|
30
30
|
t.datetime :confirmation_sent_at
|
31
|
+
t.string :unconfirmed_email # Only if using reconfirmable
|
31
32
|
|
32
33
|
## Devise::Lockable
|
33
34
|
t.integer :failed_attempts, default: 0, null: false
|
data/lib/polivalente/version.rb
CHANGED