model_driven_api 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 121cf90a81e77e493340b5349aead00f2511ffbb5ed9ae2ece60b1c42b5df179
|
4
|
+
data.tar.gz: 24eced53d7abec52c76ecd4ebf5185f3d66fc532c1c5cb08e0a84bcf71fa5916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dde33d3d868f96d4f3ae77087d627fbba457190c2114075129e6ab414379b6debdd4165be69b0c8795c138da100892d063c67f7acbe5655e52367b6c9f0bce3
|
7
|
+
data.tar.gz: bf614a1100e17e58c1380ebbdf1422687c2e78050abe970f38366c09365c304f70b3fa2af9ff565d5a89e62c55e7628999a0bb946d5346868044868106f40ef0
|
@@ -1,12 +1,12 @@
|
|
1
|
-
class CreateUsedTokens < ActiveRecord::Migration[
|
1
|
+
class CreateUsedTokens < ActiveRecord::Migration[7.0]
|
2
2
|
def change
|
3
|
-
create_table :used_tokens do |t|
|
3
|
+
create_table :used_tokens, if_not_exists: true do |t|
|
4
4
|
t.string :token
|
5
5
|
t.references :user, null: false, foreign_key: true
|
6
6
|
t.boolean :valid, default: true
|
7
7
|
|
8
8
|
t.timestamps
|
9
9
|
end
|
10
|
-
add_index :used_tokens, :token, unique: true
|
10
|
+
add_index :used_tokens, :token, unique: true, if_not_exists: true
|
11
11
|
end
|
12
12
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class RenameValidToIsValidInUsedToken < ActiveRecord::Migration[
|
1
|
+
class RenameValidToIsValidInUsedToken < ActiveRecord::Migration[7.0]
|
2
2
|
def change
|
3
|
-
change_table :used_tokens do |t|
|
3
|
+
change_table :used_tokens, if_not_exists: true do |t|
|
4
4
|
t.rename :valid, :is_valid
|
5
5
|
end
|
6
6
|
end
|