use multiple trusted_device_token
This commit is contained in:
parent
bee9a108c5
commit
b9b83cca3a
4 changed files with 35 additions and 11 deletions
11
db/migrate/20190201164951_create_trusted_device_tokens.rb
Normal file
11
db/migrate/20190201164951_create_trusted_device_tokens.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateTrustedDeviceTokens < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :trusted_device_tokens do |t|
|
||||
t.string :token, null: false
|
||||
t.references :gestionnaire, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :trusted_device_tokens, :token, unique: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue