Sha256: 8a2308fa9464afcd6e69a66bb30e4c58b3b6ca1b42b31628bba6089d32484e17

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

module Doorkeeper
  module Sequel
    class PreviousRefreshTokenGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      desc 'Support revoke refresh token on access token use'

      def install
        copy_file 'add_previous_refresh_token_to_access_tokens.rb', migration_file_name
      end

      private

      def migration_file_name
        "db/migrate/#{migration_timestamp}_add_previous_refresh_token_to_access_tokens.rb"
      end

      def migration_timestamp
        Time.current.strftime('%Y%m%d%H%M%S')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doorkeeper-sequel-1.2.3 lib/generators/doorkeeper/sequel/previous_refresh_token_generator.rb
doorkeeper-sequel-1.2.2 lib/generators/doorkeeper/sequel/previous_refresh_token_generator.rb
doorkeeper-sequel-1.2.1 lib/generators/doorkeeper/sequel/previous_refresh_token_generator.rb