Class: CreateJwts

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/rails_jwt_api/templates/20211007002344_create_jwts.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/generators/rails_jwt_api/templates/20211007002344_create_jwts.rb', line 2

def change
  create_table :jwts do |t|
    t.string :token
    t.integer :user_id, null: false, foreign_key: true

    t.timestamps
  end
end