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: 8c3499b8cbcc19be7b13832ca8ba8c46944582833854f4cef7a3805415af072f
4
- data.tar.gz: 886c1c13ec67b3f6575308916b75aff81ba605d5cbe0c259ea59680aa32baf11
3
+ metadata.gz: 121cf90a81e77e493340b5349aead00f2511ffbb5ed9ae2ece60b1c42b5df179
4
+ data.tar.gz: 24eced53d7abec52c76ecd4ebf5185f3d66fc532c1c5cb08e0a84bcf71fa5916
5
5
  SHA512:
6
- metadata.gz: 9f836adb10e63ba6b5a7b9443e97aa38487a7a5b15262ace84e7da44f58e0bf2d402cdaa312d891adad322399b8c89115affc756bcc6c3b9615d9c4601317a63
7
- data.tar.gz: 258c694e8edf70554d2cfbd240f21f9e356e8794bf2f04cc3f0b68486fcdc29c2e5d0595fd363c4048358d2e237c48b5a9c409a5e4fb27ced278abd4a1e447fe
6
+ metadata.gz: 4dde33d3d868f96d4f3ae77087d627fbba457190c2114075129e6ab414379b6debdd4165be69b0c8795c138da100892d063c67f7acbe5655e52367b6c9f0bce3
7
+ data.tar.gz: bf614a1100e17e58c1380ebbdf1422687c2e78050abe970f38366c09365c304f70b3fa2af9ff565d5a89e62c55e7628999a0bb946d5346868044868106f40ef0
@@ -1,12 +1,12 @@
1
- class CreateUsedTokens < ActiveRecord::Migration[6.0]
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[6.0]
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni