applicake/doorkeeper

View on GitHub
lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

class AddPreviousRefreshTokenToAccessTokens < ActiveRecord::Migration<%= migration_version %>
  def change
    add_column(
      :oauth_access_tokens,
      :previous_refresh_token,
      :string,
      default: "",
      null: false
    )
  end
end