Sha256: 130ee8b4ba7da87d1db6bfad798979cebef813c019840920461fa4073c6f9ffd
Contents?: true
Size: 905 Bytes
Versions: 4
Compression:
Stored size: 905 Bytes
Contents
# frozen_string_literal: true require "rails/generators" require "rails/generators/active_record" module Doorkeeper # Generates migration to add confidential column to Doorkeeper # applications table. # class ConfidentialApplicationsGenerator < ::Rails::Generators::Base include ::Rails::Generators::Migration source_root File.expand_path("templates", __dir__) desc "Add confidential column to Doorkeeper applications" def pkce migration_template( "add_confidential_to_applications.rb.erb", "db/migrate/add_confidential_to_applications.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
4 entries across 4 versions & 1 rubygems