Class: Doorkeeper::ConfidentialApplicationsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Doorkeeper::ConfidentialApplicationsGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/doorkeeper/confidential_applications_generator.rb
Overview
Generates migration to add confidential column to Doorkeeper applications table.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
23 24 25 |
# File 'lib/generators/doorkeeper/confidential_applications_generator.rb', line 23 def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end |
Instance Method Details
#confidential_applications ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/generators/doorkeeper/confidential_applications_generator.rb', line 15 def confidential_applications migration_template( "add_confidential_to_applications.rb.erb", "db/migrate/add_confidential_to_applications.rb", migration_version: migration_version, ) end |