Class: Doorkeeper::PkceGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/doorkeeper/pkce_generator.rb

Overview

Generates migration with PKCE required database columns for Doorkeeper tables.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object


23
24
25
# File 'lib/generators/doorkeeper/pkce_generator.rb', line 23

def self.next_migration_number(dirname)
  ActiveRecord::Generators::Base.next_migration_number(dirname)
end

Instance Method Details

#pkceObject


15
16
17
18
19
20
21
# File 'lib/generators/doorkeeper/pkce_generator.rb', line 15

def pkce
  migration_template(
    "enable_pkce_migration.rb.erb",
    "db/migrate/enable_pkce.rb",
    migration_version: migration_version,
  )
end