Sha256: 2ba000a1a3eeec10685c5c0b94dcda71b5560017c39802a3f772c9d3e21438d3
Contents?: true
Size: 825 Bytes
Versions: 13
Compression:
Stored size: 825 Bytes
Contents
# frozen_string_literal: true require "rails/generators" require "rails/generators/active_record" module Doorkeeper # Generates migration with PKCE required database columns for # Doorkeeper tables. # class PkceGenerator < ::Rails::Generators::Base include ::Rails::Generators::Migration source_root File.expand_path("templates", __dir__) desc "Provide support for PKCE." def pkce migration_template( "enable_pkce_migration.rb.erb", "db/migrate/enable_pkce.rb", migration_version: migration_version ) end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end private def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end
Version data entries
13 entries across 13 versions & 1 rubygems