Sha256: 5d96d43cd2e6b4a48278b303dd193b76e3cbaf509d6a2457e113befd2ce3c15a
Contents?: true
Size: 624 Bytes
Versions: 2
Compression:
Stored size: 624 Bytes
Contents
# frozen_string_literal: true class CreateDeviseApiTables < ActiveRecord::Migration<%= migration_version %> def change create_table :devise_api_tokens<%= table_defaults_for_primary_key_type %> do |t| t.belongs_to :resource_owner, null: false<%= table_defaults_for_primary_key_type %>, polymorphic: true, index: true t.string :access_token, null: false, index: true t.string :refresh_token, null: true, index: true t.integer :expires_in, null: false t.datetime :revoked_at, null: true t.string :previous_refresh_token, null: true, index: true t.timestamps end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-api-0.1.1 | lib/devise/api/generators/templates/migration.rb.erb |
devise-api-0.1.0 | lib/devise/api/generators/templates/migration.rb.erb |